|
1 | | -Based on the analysis, here's the updated requirements.txt with comments grouped by purpose/category: |
2 | | -
|
3 | | -```txt |
4 | | -# ============================================ |
5 | | -# CORE TERMINAL/CASINO FRAMEWORK DEPENDENCIES |
6 | | -# ============================================ |
7 | | -
|
8 | | -# Terminal output styling and colors |
9 | | -colorama==0.4.6 # Used by casino/utils.py for colored terminal output |
10 | | -
|
11 | | -# Enhanced logging with colors |
12 | | -coloredlogs==15.0.1 # Formatted logging output |
13 | | -humanfriendly==10.0 # Human-readable logging (coloredlogs dependency) |
14 | | -
|
15 | | -# Input handling for enhanced user interaction |
16 | | -keyboard==0.13.5 # Keyboard input detection and handling |
17 | | -
|
18 | | -# Windows terminal enhancement |
19 | | -pyreadline3==3.4.1 # Readline functionality for Windows terminals |
20 | | -
|
21 | | -
|
22 | | -# ============================================ |
23 | | -# AUDIO/VISUAL & GAME PRESENTATION |
24 | | -# ============================================ |
25 | | -
|
26 | | -# Game audio and visual effects |
27 | | -pygame==2.6.1 # Sound effects and audio playback for casino games |
28 | | -
|
29 | | -# Screen automation and GUI interaction |
30 | | -PyAutoGUI==0.9.54 # Screen automation and GUI control |
31 | | -PyGetWindow==0.0.9 # Window management (PyAutoGUI dependency) |
32 | | -PyMsgBox==1.0.9 # Message boxes (PyAutoGUI dependency) |
33 | | -PyRect==0.2.0 # Rectangle operations (PyAutoGUI dependency) |
34 | | -PyScreeze==0.1.29 # Screenshot functionality (PyAutoGUI dependency) |
35 | | -pytweening==1.0.7 # Tweening animations (PyAutoGUI dependency) |
36 | | -pyperclip==1.8.2 # Clipboard operations (PyAutoGUI dependency) |
37 | | -pyscreenshot==3.1 # Screenshot capture (PyAutoGUI dependency) |
38 | | -mss==9.0.1 # Fast screenshot capture (PyAutoGUI dependency) |
39 | | -MouseInfo==0.1.3 # Mouse position info (PyAutoGUI dependency) |
40 | | -EasyProcess==1.1 # Process management (PyAutoGUI dependency) |
41 | | -entrypoint2==1.1 # Entry point utilities (PyAutoGUI dependency) |
42 | | -
|
43 | | -
|
44 | | -# ============================================ |
45 | | -# CARD IMAGE PROCESSING (rembg dependencies) |
46 | | -# ============================================ |
47 | | -
|
48 | | -# Background removal for card images |
49 | | -rembg==2.0.56 # Remove backgrounds from card images |
50 | | -
|
51 | | -# Image processing libraries |
52 | | -Pillow==10.0.1 # Image manipulation (rembg dependency) |
53 | | -opencv-python-headless==4.9.0.80 # Computer vision (rembg dependency) |
54 | | -scikit-image==0.22.0 # Image processing algorithms (rembg dependency) |
55 | | -imageio==2.34.0 # Image I/O operations (rembg dependency) |
56 | | -tifffile==2024.2.12 # TIFF image support (rembg dependency) |
57 | | -
|
58 | | -# Machine learning/AI for image processing |
59 | | -onnxruntime==1.17.1 # ONNX model runtime (rembg dependency) |
60 | | -numpy==1.26.4 # Numerical computing (rembg dependency) |
61 | | -scipy==1.12.0 # Scientific computing (rembg dependency) |
62 | | -
|
63 | | -# Performance optimization |
64 | | -numba==0.59.1 # JIT compilation for performance (rembg dependency) |
65 | | -llvmlite==0.42.0 # LLVM compiler infrastructure (numba dependency) |
66 | | -
|
67 | | -# Data fetching and management |
68 | | -pooch==1.8.1 # Data file fetcher (rembg dependency) |
69 | | -
|
70 | | -# Advanced image matting |
71 | | -PyMatting==1.1.12 # Alpha matting for image composition (rembg dependency) |
72 | | -
|
73 | | -# Protocol and serialization |
74 | | -protobuf==5.26.1 # Protocol buffers (rembg dependency) |
75 | | -flatbuffers==24.3.25 # FlatBuffers serialization (rembg dependency) |
76 | | -
|
77 | | -# Mathematical computations |
78 | | -sympy==1.12 # Symbolic mathematics (rembg dependency) |
79 | | -mpmath==1.3.0 # Arbitrary-precision arithmetic (sympy dependency) |
80 | | -
|
81 | | -
|
82 | | -# ============================================ |
83 | | -# DATA HANDLING & ANALYTICS |
84 | 1 | # ============================================ |
85 | | -
|
86 | | -# Data analysis and statistics |
87 | | -pandas==2.1.1 # Data manipulation and analysis for game statistics |
88 | | -
|
89 | | -# Timezone and date handling |
90 | | -python-dateutil==2.8.2 # Date parsing (pandas dependency) |
91 | | -pytz==2023.3.post1 # Timezone support (pandas dependency) |
92 | | -tzdata==2023.3 # Timezone database (pandas dependency) |
93 | | -six==1.16.0 # Python 2/3 compatibility (pandas dependency) |
94 | | -
|
95 | | -
|
| 2 | +# Terminal Casino - Requirements |
96 | 3 | # ============================================ |
97 | | -# NETWORK & EXTERNAL COMMUNICATION |
| 4 | +# Organized by purpose. See each section for |
| 5 | +# which part of the project uses the package. |
98 | 6 | # ============================================ |
99 | 7 |
|
100 | | -# HTTP requests for external services |
101 | | -requests==2.31.0 # HTTP requests for API calls or data fetching |
102 | | -certifi==2024.2.2 # SSL certificates (requests dependency) |
103 | | -charset-normalizer==3.3.2 # Character encoding (requests dependency) |
104 | | -idna==3.6 # Internationalized Domain Names (requests dependency) |
105 | | -urllib3==2.2.1 # HTTP client (requests dependency) |
106 | | -
|
107 | | -
|
108 | | -# ============================================ |
109 | | -# CONFIGURATION & VALIDATION |
110 | | -# ============================================ |
111 | | -
|
112 | | -# Configuration schema validation |
113 | | -jsonschema==4.21.1 # JSON schema validation for config files |
114 | | -attrs==23.2.0 # Classes without boilerplate (jsonschema dependency) |
115 | | -referencing==0.34.0 # JSON reference resolution (jsonschema dependency) |
116 | | -rpds-py==0.18.0 # Persistent data structures (jsonschema dependency) |
117 | | -jsonschema-specifications==2023.12.1 # JSON schema specs (jsonschema dependency) |
118 | | -
|
119 | | -
|
120 | | -# ============================================ |
121 | | -# UTILITIES & MISC TOOLS |
122 | | -# ============================================ |
123 | | -
|
124 | | -# Graph algorithms and data structures |
125 | | -networkx==3.2.1 # Graph theory algorithms (potential for game logic) |
126 | | -
|
127 | | -# Package version handling |
128 | | -packaging==24.0 # Version parsing and comparison |
129 | | -
|
130 | | -# Platform-specific directory handling |
131 | | -platformdirs==4.2.0 # Platform-appropriate directories |
132 | | -
|
133 | | -# Progress bars and loading indicators |
134 | | -tqdm==4.66.2 # Progress bars for long operations |
135 | | -
|
136 | | -# Lazy loading optimization |
137 | | -lazy_loader==0.3 # Lazy loading of modules/resources |
138 | | -``` |
| 8 | +# ------------------------------------------ |
| 9 | +# Core Framework (used by all games) |
| 10 | +# ------------------------------------------ |
| 11 | + |
| 12 | +# Terminal colors and styled output (casino/utils.py) |
| 13 | +colorama==0.4.6 |
| 14 | + |
| 15 | +# Logging |
| 16 | +coloredlogs==15.0.1 |
| 17 | +humanfriendly==10.0 # coloredlogs dependency |
| 18 | + |
| 19 | +# Keyboard input handling |
| 20 | +keyboard==0.13.5 |
| 21 | + |
| 22 | +# Windows readline support |
| 23 | +pyreadline3==3.4.1 |
| 24 | + |
| 25 | +# ------------------------------------------ |
| 26 | +# Audio & Game Display |
| 27 | +# ------------------------------------------ |
| 28 | + |
| 29 | +# Sound effects and audio (used across all games) |
| 30 | +pygame==2.6.1 |
| 31 | + |
| 32 | +# ------------------------------------------ |
| 33 | +# Screen Automation (PyAutoGUI + dependencies) |
| 34 | +# ------------------------------------------ |
| 35 | + |
| 36 | +PyAutoGUI==0.9.54 |
| 37 | +MouseInfo==0.1.3 # PyAutoGUI dependency |
| 38 | +PyGetWindow==0.0.9 # PyAutoGUI dependency |
| 39 | +PyMsgBox==1.0.9 # PyAutoGUI dependency |
| 40 | +PyRect==0.2.0 # PyAutoGUI dependency |
| 41 | +PyScreeze==0.1.29 # PyAutoGUI dependency |
| 42 | +pytweening==1.0.7 # PyAutoGUI dependency |
| 43 | +pyperclip==1.8.2 # PyAutoGUI dependency |
| 44 | +pyscreenshot==3.1 # PyAutoGUI dependency |
| 45 | +mss==9.0.1 # PyAutoGUI dependency |
| 46 | +EasyProcess==1.1 # pyscreenshot dependency |
| 47 | +entrypoint2==1.1 # pyscreenshot dependency |
| 48 | + |
| 49 | +# ------------------------------------------ |
| 50 | +# Card Image Processing (casino/card_assets.py) |
| 51 | +# Used by: Blackjack, Poker, UNO (card rendering) |
| 52 | +# ------------------------------------------ |
| 53 | + |
| 54 | +# Background removal for card assets |
| 55 | +rembg==2.0.56 |
| 56 | +onnxruntime==1.17.1 # rembg dependency |
| 57 | +opencv-python-headless==4.9.0.80 # rembg dependency |
| 58 | +Pillow==10.0.1 # rembg dependency |
| 59 | +PyMatting==1.1.12 # rembg dependency |
| 60 | +scikit-image==0.22.0 # rembg dependency |
| 61 | +imageio==2.34.0 # scikit-image dependency |
| 62 | +lazy_loader==0.3 # scikit-image dependency |
| 63 | +tifffile==2024.2.12 # scikit-image dependency |
| 64 | +pooch==1.8.1 # scikit-image dependency |
| 65 | + |
| 66 | +# Scientific computing (rembg/scikit-image dependencies) |
| 67 | +numpy==1.26.4 |
| 68 | +scipy==1.12.0 |
| 69 | +numba==0.59.1 |
| 70 | +llvmlite==0.42.0 # numba dependency |
| 71 | +networkx==3.2.1 # scikit-image dependency |
| 72 | + |
| 73 | +# Protobuf / ONNX model support |
| 74 | +protobuf==5.26.1 # onnxruntime dependency |
| 75 | +flatbuffers==24.3.25 # onnxruntime dependency |
| 76 | +sympy==1.12 # onnxruntime dependency |
| 77 | +mpmath==1.3.0 # sympy dependency |
| 78 | + |
| 79 | +# ------------------------------------------ |
| 80 | +# Data & Statistics |
| 81 | +# ------------------------------------------ |
| 82 | + |
| 83 | +# Data handling (casino/stats.py) |
| 84 | +pandas==2.1.1 |
| 85 | +python-dateutil==2.8.2 # pandas dependency |
| 86 | +pytz==2023.3.post1 # pandas dependency |
| 87 | +tzdata==2023.3 # pandas dependency |
| 88 | +six==1.16.0 # python-dateutil dependency |
| 89 | + |
| 90 | +# ------------------------------------------ |
| 91 | +# Configuration & Validation |
| 92 | +# ------------------------------------------ |
| 93 | + |
| 94 | +jsonschema==4.21.1 |
| 95 | +jsonschema-specifications==2023.12.1 # jsonschema dependency |
| 96 | +attrs==23.2.0 # jsonschema dependency |
| 97 | +referencing==0.34.0 # jsonschema dependency |
| 98 | +rpds-py==0.18.0 # jsonschema dependency |
| 99 | + |
| 100 | +# ------------------------------------------ |
| 101 | +# HTTP & Networking |
| 102 | +# ------------------------------------------ |
| 103 | + |
| 104 | +requests==2.31.0 |
| 105 | +certifi==2024.2.2 # requests dependency |
| 106 | +charset-normalizer==3.3.2 # requests dependency |
| 107 | +idna==3.6 # requests dependency |
| 108 | +urllib3==2.2.1 # requests dependency |
| 109 | + |
| 110 | +# ------------------------------------------ |
| 111 | +# Miscellaneous |
| 112 | +# ------------------------------------------ |
| 113 | + |
| 114 | +packaging==24.0 |
| 115 | +platformdirs==4.2.0 |
| 116 | +tqdm==4.66.2 # Progress bars |
0 commit comments