packflow 0.3.1rc2__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. {packflow-0.3.1rc2 → packflow-0.4.0}/PKG-INFO +43 -3
  2. {packflow-0.3.1rc2 → packflow-0.4.0}/README.md +28 -0
  3. {packflow-0.3.1rc2 → packflow-0.4.0}/pyproject.toml +37 -19
  4. packflow-0.4.0/src/packflow/_frames.py +376 -0
  5. packflow-0.4.0/src/packflow/_splash.py +56 -0
  6. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/backend/base.py +8 -7
  7. packflow-0.4.0/src/packflow/backend/configuration.py +67 -0
  8. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/backend/validation.py +19 -1
  9. packflow-0.4.0/src/packflow/cli.py +257 -0
  10. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/constants.py +0 -1
  11. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/data/templates/minimal/README.md +1 -1
  12. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/data/templates/minimal/inference.py +9 -1
  13. packflow-0.3.1rc2/src/packflow/data/templates/minimal/test_inference.py → packflow-0.4.0/src/packflow/data/templates/minimal/tests.py +12 -10
  14. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/loaders/base.py +14 -3
  15. packflow-0.4.0/src/packflow/loaders/config.py +431 -0
  16. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/loaders/local.py +10 -3
  17. packflow-0.4.0/src/packflow/project.py +439 -0
  18. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/utils/data.py +22 -18
  19. packflow-0.3.1rc2/src/packflow/backend/configuration.py +0 -153
  20. packflow-0.3.1rc2/src/packflow/cli.py +0 -53
  21. packflow-0.3.1rc2/src/packflow/data/templates/minimal/validate.py +0 -30
  22. packflow-0.3.1rc2/src/packflow/loaders/config.py +0 -151
  23. packflow-0.3.1rc2/src/packflow/project.py +0 -92
  24. {packflow-0.3.1rc2 → packflow-0.4.0}/LICENSE +0 -0
  25. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/__init__.py +0 -0
  26. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/backend/__init__.py +0 -0
  27. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/backend/metrics.py +0 -0
  28. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/backend/preprocessors.py +0 -0
  29. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/data/templates/minimal/LICENSE.txt +0 -0
  30. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/data/templates/minimal/MODEL_CARD.md +0 -0
  31. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/data/templates/minimal/packflow.yaml +0 -0
  32. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/data/templates/minimal/requirements.txt +0 -0
  33. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/exceptions.py +0 -0
  34. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/loaders/__init__.py +0 -0
  35. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/loaders/module.py +0 -0
  36. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/loaders/utils.py +0 -0
  37. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/logger.py +0 -0
  38. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/utils/__init__.py +0 -0
  39. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/utils/normalize/__init__.py +0 -0
  40. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/utils/normalize/base.py +0 -0
  41. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/utils/normalize/handlers.py +0 -0
  42. {packflow-0.3.1rc2 → packflow-0.4.0}/src/packflow/utils/normalize/normalize.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: packflow
3
- Version: 0.3.1rc2
3
+ Version: 0.4.0
4
4
  Summary: AI/ML inference SDK for streaming data
5
5
  License: MIT License
6
6
 
@@ -30,14 +30,26 @@ Classifier: Programming Language :: Python :: 3.12
30
30
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
31
31
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
32
32
  Classifier: Topic :: System :: Distributed Computing
33
- Requires-Dist: PyYaml
33
+ Provides-Extra: dev
34
+ Requires-Dist: PyYaml (>=6.0)
35
+ Requires-Dist: black[jupyter] (>=25.1.0) ; extra == "dev"
34
36
  Requires-Dist: click (>=8.0.0)
37
+ Requires-Dist: codespell (>=2.3.0) ; extra == "dev"
35
38
  Requires-Dist: deepmerge (>=2.0,<3.0)
36
39
  Requires-Dist: flatten-dict (>=0.4.2,<1.0.0)
37
40
  Requires-Dist: loguru (>=0.7.3,<0.8.0)
38
41
  Requires-Dist: numpy (<2.3)
42
+ Requires-Dist: packaging (>=21.0)
43
+ Requires-Dist: pandas (>=2.3.0) ; extra == "dev"
44
+ Requires-Dist: pathspec (>=0.12.0,<2.0.0)
45
+ Requires-Dist: pillow (>=11.3.0) ; extra == "dev"
46
+ Requires-Dist: pre-commit (>=4.2.0) ; extra == "dev"
39
47
  Requires-Dist: pydantic (>=2.11.0,<3.0.0)
40
- Project-URL: Documentation, https://github.com/dow-cdao/packflow
48
+ Requires-Dist: pytest (>=8.4.1) ; extra == "dev"
49
+ Requires-Dist: pytest-cov (>=6.2.1) ; extra == "dev"
50
+ Requires-Dist: questionary (>=2.1.0,<3.0.0)
51
+ Requires-Dist: torch (>=2.12.0) ; extra == "dev"
52
+ Project-URL: Documentation, https://dow-cdao.github.io/packflow/
41
53
  Project-URL: Homepage, https://github.com/dow-cdao/packflow
42
54
  Project-URL: Repository, https://github.com/dow-cdao/packflow
43
55
  Description-Content-Type: text/markdown
@@ -139,6 +151,34 @@ backend({"sample": "data"})
139
151
  # >> {"sample": "data"}
140
152
  ```
141
153
 
154
+ ## Recent Changes
155
+
156
+ ### 0.4.0
157
+
158
+ Recent updates include improvements to configuration structure and new CLI capabilities:
159
+
160
+ - **New:** Interactive `packflow create` command with guided prompts for project setup
161
+ - Renamed `backend.validate()` to `backend.check_io()` for clarity
162
+ - Project templates simplified for better first-run experience
163
+ - Added `tests.py` to project templates with integrated validation and testing
164
+ - Removed standalone `validate.py` from templates
165
+ - Default `PackflowConfig` version now set to `0.1.0` when not specified
166
+ - Added `questionary` dependency for interactive CLI prompts
167
+ - Custom configuration keys in `packflow.yaml` should now be placed under an `extra:` field for cleaner validation
168
+ - Backend configuration can now be defined directly in `packflow.yaml` instead of separate JSON files
169
+ - Name validation relaxed to allow numbers and hyphens (not as first character)
170
+ - New `packflow validate` and `packflow --version` commands
171
+ - Environment variables can be specified in `packflow.yaml` and are set automatically during packflow operations
172
+ - `packflow export` now respects `.gitignore` patterns
173
+ - `verbose` defaults to `false` to reduce log output
174
+ - Backend configuration supports `output_keys` field to declare expected output fields
175
+
176
+ For projects using custom top-level keys in `packflow.yaml`, nest them under `extra:` to maintain compatibility with current validation.
177
+
178
+ ### 0.3.0
179
+
180
+ - Initial release
181
+
142
182
  ## Contributing
143
183
 
144
184
  Contributions to Packflow are welcomed and highly encouraged! Please refer to the [CONTRIBUTING.md](https://github.com/dow-cdao/packflow/blob/master/CONTRIBUTING.md) guide for more information and guidelines for contributing to Packflow.
@@ -95,6 +95,34 @@ backend({"sample": "data"})
95
95
  # >> {"sample": "data"}
96
96
  ```
97
97
 
98
+ ## Recent Changes
99
+
100
+ ### 0.4.0
101
+
102
+ Recent updates include improvements to configuration structure and new CLI capabilities:
103
+
104
+ - **New:** Interactive `packflow create` command with guided prompts for project setup
105
+ - Renamed `backend.validate()` to `backend.check_io()` for clarity
106
+ - Project templates simplified for better first-run experience
107
+ - Added `tests.py` to project templates with integrated validation and testing
108
+ - Removed standalone `validate.py` from templates
109
+ - Default `PackflowConfig` version now set to `0.1.0` when not specified
110
+ - Added `questionary` dependency for interactive CLI prompts
111
+ - Custom configuration keys in `packflow.yaml` should now be placed under an `extra:` field for cleaner validation
112
+ - Backend configuration can now be defined directly in `packflow.yaml` instead of separate JSON files
113
+ - Name validation relaxed to allow numbers and hyphens (not as first character)
114
+ - New `packflow validate` and `packflow --version` commands
115
+ - Environment variables can be specified in `packflow.yaml` and are set automatically during packflow operations
116
+ - `packflow export` now respects `.gitignore` patterns
117
+ - `verbose` defaults to `false` to reduce log output
118
+ - Backend configuration supports `output_keys` field to declare expected output fields
119
+
120
+ For projects using custom top-level keys in `packflow.yaml`, nest them under `extra:` to maintain compatibility with current validation.
121
+
122
+ ### 0.3.0
123
+
124
+ - Initial release
125
+
98
126
  ## Contributing
99
127
 
100
128
  Contributions to Packflow are welcomed and highly encouraged! Please refer to the [CONTRIBUTING.md](https://github.com/dow-cdao/packflow/blob/master/CONTRIBUTING.md) guide for more information and guidelines for contributing to Packflow.
@@ -34,19 +34,46 @@ classifiers = [
34
34
  "Topic :: System :: Distributed Computing",
35
35
  ]
36
36
  dependencies = [
37
- "deepmerge (>=2.0,<3.0)",
38
- "flatten-dict (>=0.4.2,<1.0.0)",
39
- "loguru (>=0.7.3,<0.8.0)",
40
- "numpy (<2.3)",
41
- "pydantic (>=2.11.0,<3.0.0)",
42
- "click (>=8.0.0)",
43
- "PyYaml"
37
+ "deepmerge>=2.0,<3.0",
38
+ "flatten-dict>=0.4.2,<1.0.0",
39
+ "loguru>=0.7.3,<0.8.0",
40
+ "numpy<2.3",
41
+ "packaging>=21.0",
42
+ "pydantic>=2.11.0,<3.0.0",
43
+ "click>=8.0.0",
44
+ "pathspec>=0.12.0,<2.0.0",
45
+ "PyYaml>=6.0",
46
+ "questionary>=2.1.0,<3.0.0"
44
47
  ]
45
48
 
49
+ [project.optional-dependencies]
50
+ # NOTE: Keep synchronized with [tool.poetry.group.dev.dependencies] below
51
+ dev = [
52
+ "pre-commit>=4.2.0",
53
+ "black[jupyter]>=25.1.0",
54
+ "codespell>=2.3.0",
55
+ "pytest>=8.4.1",
56
+ "pytest-cov>=6.2.1",
57
+ "pandas>=2.3.0",
58
+ "torch>=2.12.0",
59
+ "pillow>=11.3.0"
60
+ ]
61
+
62
+ [tool.poetry.group.dev.dependencies]
63
+ # NOTE: Keep synchronized with [project.optional-dependencies] above
64
+ pre-commit = "^4.2.0"
65
+ black = {version = "^25.1.0", extras = ["jupyter"]}
66
+ codespell = "^2.3.0"
67
+ pytest = "^8.4.1"
68
+ pytest-cov = "^6.2.1"
69
+ pandas = "^2.3.0"
70
+ torch = "^2.7.1"
71
+ pillow = "^11.3.0"
72
+
46
73
  [project.urls]
47
74
  homepage = "https://github.com/dow-cdao/packflow"
48
75
  repository = "https://github.com/dow-cdao/packflow"
49
- documentation = "https://github.com/dow-cdao/packflow"
76
+ documentation = "https://dow-cdao.github.io/packflow/"
50
77
 
51
78
 
52
79
  [build-system]
@@ -55,7 +82,7 @@ build-backend = "poetry.core.masonry.api"
55
82
 
56
83
 
57
84
  [tool.poetry]
58
- version = "0.3.1rc2"
85
+ version = "0.4.0"
59
86
  exclude = [
60
87
  "tests",
61
88
  "docs",
@@ -65,18 +92,9 @@ exclude = [
65
92
 
66
93
 
67
94
  [tool.poetry.dependencies]
68
- python = '>=3.10,<4.0'
95
+ python = '>=3.10,<3.15.0'
69
96
 
70
97
 
71
- [tool.poetry.group.dev.dependencies]
72
- pre-commit = "^4.2.0"
73
- black = {version = "^25.1.0", extras = ["jupyter"]}
74
- pytest = "^8.4.1"
75
- pytest-cov = "^6.2.1"
76
- pandas = "^2.3.0"
77
- torch = "^2.7.1"
78
- tensorflow = "^2.19.0"
79
- pillow = "^11.3.0"
80
98
 
81
99
 
82
100
  [tool.poetry.scripts]
@@ -0,0 +1,376 @@
1
+ # Auto-generated by tools/bake_frames.py — do not edit.
2
+ ANIM_HEIGHT = 9
3
+
4
+ ROWS = [
5
+ " ",
6
+ "⣿ ",
7
+ "░ ",
8
+ "▒⣿⣿░ ",
9
+ "⣿░░⣿ ",
10
+ "░░⣿ ",
11
+ "░⣿ ",
12
+ "███░ ",
13
+ "▓▒░▒▒░ ",
14
+ "⣿░░░ ",
15
+ "░░ ",
16
+ " █▒ ",
17
+ "░▒████ ",
18
+ "⣿▒▓▓▓▓▒░ ",
19
+ "⣿░▒░░░░ ",
20
+ " ▒░█▓⣿ ",
21
+ "░▒▒▒▓███ ",
22
+ "░⣿░▒██▓█▒ ",
23
+ "▒⣿░▒▒▒▒░▒░ ",
24
+ "░▒▒░▒ ",
25
+ " ░▒░░░░░▓▓⣿ ",
26
+ " ░░⣿░▒▓▓██▒ ",
27
+ " ░░⣿░▒▓▓▓▓▒ ",
28
+ " ░▒░░░░░░░░ ",
29
+ " ░░░░ ",
30
+ " ░░⣿▒▒▒░▒█░ ",
31
+ " ░▒⣿⣿░▒█▓██░ ",
32
+ " ░░░▒▒▒▒▒▓▒ ",
33
+ " ░░░░ ",
34
+ " ░░ ",
35
+ " ░⣿⣿░░░⣿░▓ ",
36
+ " ░▒░⣿⣿░▓▓▓██░ ",
37
+ " ░░░░░▒▒▓▓ ",
38
+ " ░░ ",
39
+ " ░░░ ",
40
+ " ⣿⣿⣿⣿░░░░ ",
41
+ " ░▒░⣿⣿░▓▓▒▓█░ ",
42
+ " ░░░░▒▓█▓ ",
43
+ " ░░░ ",
44
+ " ⣿░░ ",
45
+ " ░░⣿⣿⣿⣿⣿░░ ",
46
+ " ░▒░⣿░▓█░▒█▒ ",
47
+ " ░░░▒██▒▓▒ ",
48
+ " ░░⣿ ",
49
+ " ⣿⣿⣿░⣿ ",
50
+ " ⣿░░⣿⣿⣿⣿⣿░░ ",
51
+ " ⣿░░⣿▒▓░░░░ ",
52
+ " ░░░▒██▒▓▒⣿ ",
53
+ " ⣿░░⣿▒ ",
54
+ " ░░⣿⣿⣿⣿⣿░░⣿ ",
55
+ " ⣿░░⣿░⣿⣿░░⣿ ",
56
+ " ⣿░░░▓█▒▒▒░ ",
57
+ " ⣿░░⣿▓█▒▒▓░ ",
58
+ " ░⣿⣿⣿⣿⣿⣿ ",
59
+ " ⣿░░⣿⣿⣿⣿░▒⣿ ",
60
+ " ⣿▒░░▓█▒░▒⣿ ",
61
+ " ⣿⣿▓█░▒▓ ",
62
+ " ⣿░⣿⣿ ",
63
+ " ⣿░░⣿⣿⣿⣿⣿░░ ",
64
+ " ⣿▒░⣿▒▒░⣿⣿▒⣿ ",
65
+ " ░⣿⣿▒██▒▒░⣿ ",
66
+ " ⣿░▓░ ",
67
+ " ░░⣿ ",
68
+ " ░░░⣿⣿⣿⣿⣿░ ",
69
+ " ⣿▒▒░▒▓▒⣿⣿░▒⣿ ",
70
+ " ░░▓██▓▒░░ ",
71
+ " ⣿▒▓ ",
72
+ " ░░ ",
73
+ " ░░░░⣿⣿⣿⣿ ",
74
+ " ░▒▒▒▓▓░⣿⣿░▒░ ",
75
+ " ▒███▓░░░ ",
76
+ " ▒▓ ",
77
+ " ░░░ ",
78
+ " ░░░▒░⣿⣿░ ",
79
+ " ░▒▓▒▓▓▒⣿⣿░▒░ ",
80
+ " ████▒░░░ ",
81
+ " ░█░ ",
82
+ " ░░▒ ",
83
+ " ░░░░▒▒░⣿░ ",
84
+ " ░▓▓▓█▓░⣿⣿▓░ ",
85
+ " ███▒▒░░░░ ",
86
+ " ▒█░ ",
87
+ " ▒▒▒▒░ ",
88
+ " ░▒░▒▒▒▒░⣿▒ ",
89
+ " ▒█▓██▒░⣿░▒ ",
90
+ " ███▓▒▒▒░▒░ ",
91
+ " ⣿▓█░░ ",
92
+ " ░⣿░⣿░░░▒░ ",
93
+ " ▓▒▒▓▒░⣿⣿░ ",
94
+ " ▓██▓▓░░⣿▒ ",
95
+ " ⣿▓█⣿░░░░░ ",
96
+ " ░░░░░░░░▒░ ",
97
+ " ▒▓▓▓▓▒░⣿░░ ",
98
+ " ▒██▓▓▒░⣿░░ ",
99
+ " ⣿▓█░░░░░▒░ ",
100
+ " ⣿░░⣿░░░░░ ",
101
+ " ▒▓▓▓▒░░⣿▒ ",
102
+ " ▓█▓▓▒░⣿⣿░ ",
103
+ " ▒▓⣿⣿░░░▒░ ",
104
+ " ░░░░░ ",
105
+ " ▓▒▒▒▒▒░░▒░ ",
106
+ " ▓████▒░⣿░░ ",
107
+ " ░▒█▒▒▒▒░⣿▒ ",
108
+ " ░░░▒░ ",
109
+ " ░░░░ ",
110
+ " ▒▓▒▒▒▒░░░░ ",
111
+ " ░█▓▓▓▒░⣿⣿▒░ ",
112
+ " ▒▓░░▒▒░⣿░░ ",
113
+ " ░░▒░ ",
114
+ " ░░░ ",
115
+ " ▓▒░░░░░░░ ",
116
+ " ░█▓▓▓▒⣿⣿⣿▒░ ",
117
+ " ░▓░⣿░░⣿⣿░ ",
118
+ " ░░░ ",
119
+ " █▓▒▒░░░░ ",
120
+ " ░██▓▓▓░⣿⣿░▒░ ",
121
+ " ░⣿░▒░⣿⣿░ ",
122
+ " ░░░ ",
123
+ " ⣿░░ ",
124
+ " █▓▒░░░░░ ",
125
+ " ░██▒▓▓░⣿⣿░▒⣿ ",
126
+ " ░⣿░░⣿⣿⣿⣿ ",
127
+ " ░░ ",
128
+ " ▓█▓▒░░░░ ",
129
+ " ░█▓▒▓▓░⣿⣿░▒░ ",
130
+ " ⣿░░░⣿⣿⣿⣿ ",
131
+ " ⣿░░ ",
132
+ " ░░░░⣿⣿⣿⣿ ",
133
+ " ⣿░░ ",
134
+ " ▓██▓░░░░ ",
135
+ " ░█▓░▓▓░⣿⣿▒▒░ ",
136
+ " ░░░⣿⣿⣿⣿⣿ ",
137
+ " ░░░ ",
138
+ " ░░ ",
139
+ " ▒▓██▓▒░░░ ",
140
+ " ░█▓░▓█░░⣿▒▒░ ",
141
+ " ░░░⣿⣿⣿⣿⣿░ ",
142
+ " ⣿░░ ",
143
+ " ▒▓▒██▒░░░ ",
144
+ " ▒█▒░▓▓░⣿░▒░ ",
145
+ " ░░░⣿⣿⣿⣿░░ ",
146
+ " ░░⣿ ",
147
+ " ⣿░░ ",
148
+ " ░▓▒▓█▒░░░ ",
149
+ " ░█░░▓▒░⣿░▒░ ",
150
+ " ░░⣿⣿⣿⣿⣿░░ ",
151
+ " ░░⣿ ",
152
+ " ⣿⣿░⣿ ",
153
+ " ▒▓▒▓█▓░░░⣿ ",
154
+ " ░▓░░▓▒░⣿⣿▒⣿ ",
155
+ " ⣿░░⣿⣿⣿⣿⣿░░ ",
156
+ " ░░⣿⣿ ",
157
+ " ⣿⣿░░ ",
158
+ " ░▓▒▓█▓░░░⣿ ",
159
+ " ░▒░░▓▒░⣿⣿▒⣿ ",
160
+ " ▒⣿░░⣿ ",
161
+ " ⣿▒▓▒██▒░░░ ",
162
+ " ░▒⣿▒▓▒⣿░░░ ",
163
+ " ░░⣿⣿⣿⣿⣿░░⣿ ",
164
+ " ⣿░⣿⣿⣿ ",
165
+ " ▒⣿⣿░⣿ ",
166
+ " ▒▓▒██▒░░░ ",
167
+ " ░░⣿░▓▒⣿░░⣿ ",
168
+ " ▒▒█▒⣿░░ ",
169
+ " ⣿▓▓▒██░░░⣿ ",
170
+ " ⣿░░⣿░░⣿░▒⣿ ",
171
+ " ░⣿⣿⣿⣿⣿░ ",
172
+ " ▒▒▒█▓⣿░░ ",
173
+ " ▓▓▒██░░░⣿ ",
174
+ " ⣿░░⣿░░⣿░▒ ",
175
+ " ░⣿⣿⣿⣿⣿░░ ",
176
+ " ▒▒▒█▓░░░⣿ ",
177
+ " ▓▓▒██▒░░⣿ ",
178
+ " ⣿░░⣿░░⣿░▒ ",
179
+ " ⣿░⣿⣿⣿⣿⣿░░ ",
180
+ " ⣿▓▒▒██▒░░░ ",
181
+ " ░░⣿⣿░⣿⣿░▒⣿ ",
182
+ " ░░⣿⣿⣿⣿⣿░░ ",
183
+ " ⣿▒▒░██░░░⣿ ",
184
+ " ░░⣿⣿⣿⣿⣿░░⣿ ",
185
+ " ▒▓░▓█░░░⣿ ",
186
+ " ⣿▓▒░██▒░░░ ",
187
+ " ░▓▒▒█▓⣿░░ ",
188
+ " ░▓▒▒█▓░░░⣿ ",
189
+ " ⣿░░⣿⣿░⣿░▒⣿ ",
190
+ " ░░⣿⣿⣿⣿⣿░⣿ ",
191
+ " ░▓▒▒█▓⣿░░⣿ ",
192
+ " ░▒▒▒█▓░░░⣿ ",
193
+ " ⣿░░⣿⣿░⣿░░⣿ ",
194
+ " ⣿░░⣿⣿⣿⣿⣿░░ ",
195
+ " ⣿▒▒▒█▓░░░⣿ ",
196
+ " ⣿░░⣿⣿⣿⣿⣿░⣿ ",
197
+ " ⣿░░⣿⣿⣿⣿░░⣿ ",
198
+ " ⣿▓▒▒█▓⣿░░⣿ ",
199
+ " ⣿░⣿⣿⣿⣿⣿░░⣿ ",
200
+ " ⣿▓▒▒█▓░░░⣿ ",
201
+ " ⣿░⣿⣿⣿░⣿░░⣿ ",
202
+ " ░▓▒▒█▓░░░⣿ ",
203
+ " ░▒░▒██░░░░ ",
204
+ " ░░░⣿⣿░⣿░░░ ",
205
+ " ⣿░⣿⣿⣿⣿⣿░░⣿ ",
206
+ " █ ",
207
+ " ░▓▒▒█▓░░░⣿ █ ",
208
+ " █ ░▒░▒██░░░░ █ ",
209
+ " █ █ █ ░░░⣿⣿░⣿░░░ █ █ █ ",
210
+ " █ █ █ ⣿░⣿⣿⣿⣿⣿░░⣿ █ ",
211
+ " ▐▌ ▀ ▐▌ ",
212
+ " ▐▌ █ ▐▌ ",
213
+ " ▄ ▄ ▄ ▐▌ ░▓▒▒█▓░░░⣿ █ ▐▌ ▄ ",
214
+ " ▐█▀▀▀ ▄ ▀▀▀ ▀▀▀▀ ▐▌▄ ░▒░▒██░░░░ ▀█▀▀ ▐▌ ▀▀▀ ",
215
+ " ▐▌ █ █ ▐▌ █ ▐ ░░░⣿⣿░⣿░░░ █ ▐▌ █ █ ",
216
+ " ▐█▄▄▄ █▄▄▄ ▌ █▄▄▄▄ ▐▌ ▀ ⣿░⣿⣿⣿⣿⣿░░⣿ █ ▐▌ ▄▄▄ ",
217
+ " ▐▌ ",
218
+ " ▐▌ ▛▀ ▐▌ ",
219
+ " ▐█▀▀▀▜▄ ▛▀▀▀▜▟ ▛▀▀▀▀ ▐▌▄▛ ░▒░▒██░░░░ ▀█▀▀ ▐▌ ▛▀▀▀▜ ▜ ▜ ▛ ",
220
+ " ▐▌ █ █ ▐▌ █ ▐▛▜ ░░░⣿⣿░⣿░░░ █ ▐▌ █ █ ▜ ▛▜ ▛ ",
221
+ " ▐█▄▄▄▟ █▄▄▄▟▜▌ █▄▄▄▄ ▐▌ ▀▙ ⣿░⣿⣿⣿⣿⣿░░⣿ █ ▐▌ ▙▄▄▄▟ ▜▛ ▜▛ ",
222
+ " ▐▌ ▗▛▀ ▐▌ ",
223
+ " ▄▖ ▄▖ ▄▖ ▐▌ ░▓▒▒█▓░░░⣿ █ ▐▌ ▗▄▖ ",
224
+ " ▐█▀▀▀▜▄ ▗▛▀▀▀▜▟▘ ▗▛▀▀▀▀ ▐▌▄▛▘ ░▒░▒██░░░░ ▀█▀▀ ▐▌ ▗▛▀▀▀▜▖ ▜▖ ▜▖ ▗▛ ",
225
+ " ▐▌ █ █ ▐▌ █ ▐▛▜▖ ░░░⣿⣿░⣿░░░ █ ▐▌ █ █ ▜▖▗▛▜▖▗▛ ",
226
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ ⣿░⣿⣿⣿⣿⣿░░⣿ █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ ",
227
+ " ▝▘ ",
228
+ " ▐▌ \x1b[37m▄▄▄\x1b[0m ",
229
+ " ▐▌ \x1b[37m▄▄▄▄▄▄\x1b[0m ",
230
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄\x1b[0m ",
231
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
232
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
233
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
234
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
235
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
236
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
237
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
238
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
239
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[0m ",
240
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ ⣿░⣿⣿⣿\x1b[38;5;180m⣿\x1b[0m⣿░░⣿ █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ ",
241
+ " ▐▌ █ █ ▐▌ █ ▐▛▜▖ ░░░⣿⣿\x1b[38;5;180m░\x1b[0m⣿░░░ █ ▐▌ █ █ ▜▖▗▛▜▖▗▛ ",
242
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ ⣿░⣿⣿\x1b[38;5;180m⣿⣿⣿\x1b[0m░░⣿ █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ ",
243
+ " ▐█▀▀▀▜▄ ▗▛▀▀▀▜▟▘ ▗▛▀▀▀▀ ▐▌▄▛▘ ░▒░▒█\x1b[38;5;180m█\x1b[0m░░░░ ▀█▀▀ ▐▌ ▗▛▀▀▀▜▖ ▜▖ ▜▖ ▗▛ ",
244
+ " ▐▌ █ █ ▐▌ █ ▐▛▜▖ ░░░⣿\x1b[38;5;180m⣿░⣿\x1b[0m░░░ █ ▐▌ █ █ ▜▖▗▛▜▖▗▛ ",
245
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ ⣿░⣿\x1b[38;5;180m⣿⣿⣿⣿░\x1b[0m░⣿ █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ ",
246
+ " ▄▖ ▄▖ ▄▖ ▐▌ ░▓▒▒█\x1b[38;5;180m▓\x1b[0m░░░⣿ █ ▐▌ ▗▄▖ ",
247
+ " ▐█▀▀▀▜▄ ▗▛▀▀▀▜▟▘ ▗▛▀▀▀▀ ▐▌▄▛▘ ░▒░\x1b[38;5;180m▒██░░\x1b[0m░░ ▀█▀▀ ▐▌ ▗▛▀▀▀▜▖ ▜▖ ▜▖ ▗▛ ",
248
+ " ▐▌ █ █ ▐▌ █ ▐▛▜▖ ░░░\x1b[38;5;180m⣿⣿░⣿░\x1b[0m░░ █ ▐▌ █ █ ▜▖▗▛▜▖▗▛ ",
249
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ ⣿░\x1b[38;5;180m⣿⣿⣿⣿⣿░░\x1b[0m⣿ █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ ",
250
+ " ▄▖ ▄▖ ▄▖ ▐▌ ░▓▒\x1b[38;5;180m▒█▓░░\x1b[0m░⣿ █ ▐▌ ▗▄▖ ",
251
+ " ▐█▀▀▀▜▄ ▗▛▀▀▀▜▟▘ ▗▛▀▀▀▀ ▐▌▄▛▘ ░▒\x1b[38;5;180m░▒██░░░\x1b[0m░ ▀█▀▀ ▐▌ ▗▛▀▀▀▜▖ ▜▖ ▜▖ ▗▛ ",
252
+ " ▐▌ █ █ ▐▌ █ ▐▛▜▖ ░░\x1b[38;5;180m░⣿⣿░⣿░░\x1b[0m░ █ ▐▌ █ █ ▜▖▗▛▜▖▗▛ ",
253
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ ⣿\x1b[38;5;180m░⣿⣿⣿⣿⣿░░⣿\x1b[0m █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ ",
254
+ " ▄▖ ▄▖ ▄▖ ▐▌ ░\x1b[38;5;180m▓▒▒█▓░░░⣿\x1b[0m █ ▐▌ ▗▄▖ ",
255
+ " ▐█▀▀▀▜▄ ▗▛▀▀▀▜▟▘ ▗▛▀▀▀▀ ▐▌▄▛▘ ░\x1b[38;5;180m▒░▒██░░░░\x1b[0m ▀█▀▀ ▐▌ ▗▛▀▀▀▜▖ ▜▖ ▜▖ ▗▛ ",
256
+ " ▐▌ █ █ ▐▌ █ ▐▛▜▖ ░\x1b[38;5;180m░░⣿⣿░⣿░░░\x1b[0m █ ▐▌ █ █ ▜▖▗▛▜▖▗▛ ",
257
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ \x1b[38;5;180m⣿░⣿⣿⣿⣿⣿░░⣿\x1b[0m █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ ",
258
+ " ▄▖ ▄▖ ▄▖ ▐▌ \x1b[38;5;180m░▓▒▒█▓░░░⣿\x1b[0m █ ▐▌ ▗▄▖ ",
259
+ " ▐█▀▀▀▜▄ ▗▛▀▀▀▜▟▘ ▗▛▀▀▀▀ ▐▌▄▛▘ \x1b[38;5;180m░▒░▒██░░░░\x1b[0m ▀█▀▀ ▐▌ ▗▛▀▀▀▜▖ ▜▖ ▜▖ ▗▛ ",
260
+ " ▐▌ █ █ ▐▌ █ ▐▛▜▖ \x1b[38;5;180m░░░⣿⣿░⣿░░░\x1b[0m █ ▐▌ █ █ ▜▖▗▛▜▖▗▛ ",
261
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄\x1b[0m ",
262
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄\x1b[0m ",
263
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄\x1b[0m ",
264
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
265
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
266
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
267
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
268
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
269
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
270
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
271
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
272
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄\x1b[0m ",
273
+ " ▐█▄▄▄▟▘ ▝█▄▄▄▟▜▌ ▝█▄▄▄▄ ▐▌ ▀▙ \x1b[38;5;180m⣿░⣿⣿⣿⣿⣿░░⣿\x1b[0m █ ▐▌ ▝▙▄▄▄▟▘ ▜▛ ▜▛ \x1b[36m▄\x1b[0m ",
274
+ " ▐▌ \x1b[37m▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟\x1b[36m▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██▙▄\x1b[0m ",
275
+ " ▝▘ \x1b[36m█▀▘\x1b[0m ",
276
+ ]
277
+
278
+ FRAMES = [
279
+ (0.03333333333333333, (0, 0, 0, 1, 2, 2, 1, 0, 0)),
280
+ (0.03333333333333333, (0, 0, 0, 3, 4, 5, 6, 0, 0)),
281
+ (0.03333333333333333, (0, 0, 1, 7, 8, 9, 10, 0, 0)),
282
+ (0.03333333333333333, (0, 0, 11, 12, 13, 14, 10, 0, 0)),
283
+ (0.03333333333333333, (0, 0, 15, 16, 17, 18, 19, 0, 0)),
284
+ (0.03333333333333333, (0, 0, 0, 20, 21, 22, 23, 0, 0)),
285
+ (0.03333333333333333, (0, 0, 24, 25, 26, 27, 28, 0, 0)),
286
+ (0.03333333333333333, (0, 0, 29, 30, 31, 32, 33, 0, 0)),
287
+ (0.03333333333333333, (0, 0, 34, 35, 36, 37, 38, 0, 0)),
288
+ (0.03333333333333333, (0, 0, 39, 40, 41, 42, 43, 0, 0)),
289
+ (0.03333333333333333, (0, 0, 44, 45, 46, 47, 48, 0, 0)),
290
+ (0.03333333333333333, (0, 0, 0, 49, 50, 51, 52, 0, 0)),
291
+ (0.03333333333333333, (0, 0, 0, 53, 54, 55, 56, 0, 0)),
292
+ (0.03333333333333333, (0, 0, 57, 58, 59, 60, 61, 0, 0)),
293
+ (0.03333333333333333, (0, 0, 62, 63, 64, 65, 66, 0, 0)),
294
+ (0.03333333333333333, (0, 0, 67, 68, 69, 70, 71, 0, 0)),
295
+ (0.03333333333333333, (0, 0, 72, 73, 74, 75, 76, 0, 0)),
296
+ (0.03333333333333333, (0, 0, 77, 78, 79, 80, 81, 0, 0)),
297
+ (0.03333333333333333, (0, 0, 82, 83, 84, 85, 86, 0, 0)),
298
+ (0.03333333333333333, (0, 0, 0, 87, 88, 89, 90, 0, 0)),
299
+ (0.03333333333333333, (0, 0, 0, 91, 92, 93, 94, 0, 0)),
300
+ (0.03333333333333333, (0, 0, 0, 95, 96, 97, 98, 0, 0)),
301
+ (0.03333333333333333, (0, 0, 99, 100, 101, 102, 103, 0, 0)),
302
+ (0.03333333333333333, (0, 0, 104, 105, 106, 107, 108, 0, 0)),
303
+ (0.03333333333333333, (0, 0, 109, 110, 111, 112, 113, 0, 0)),
304
+ (0.03333333333333333, (0, 0, 109, 114, 115, 116, 117, 0, 0)),
305
+ (0.03333333333333333, (0, 0, 118, 119, 120, 121, 113, 0, 0)),
306
+ (0.03333333333333333, (0, 0, 122, 123, 124, 125, 122, 0, 0)),
307
+ (0.03333333333333333, (0, 0, 126, 123, 124, 127, 113, 0, 0)),
308
+ (0.03333333333333333, (0, 0, 128, 129, 130, 131, 132, 0, 0)),
309
+ (0.03333333333333333, (0, 0, 133, 134, 135, 136, 122, 0, 0)),
310
+ (0.03333333333333333, (0, 0, 137, 138, 139, 140, 141, 0, 0)),
311
+ (0.03333333333333333, (0, 0, 142, 143, 144, 145, 146, 0, 0)),
312
+ (0.03333333333333333, (0, 0, 147, 148, 149, 150, 151, 0, 0)),
313
+ (0.03333333333333333, (0, 0, 152, 153, 154, 150, 151, 0, 0)),
314
+ (0.03333333333333333, (0, 0, 155, 156, 157, 158, 159, 0, 0)),
315
+ (0.03333333333333333, (0, 0, 160, 161, 162, 145, 159, 0, 0)),
316
+ (0.03333333333333333, (0, 0, 0, 163, 164, 165, 166, 0, 0)),
317
+ (0.03333333333333333, (0, 0, 0, 167, 168, 169, 170, 0, 0)),
318
+ (0.03333333333333333, (0, 0, 0, 171, 172, 173, 174, 0, 0)),
319
+ (0.03333333333333333, (0, 0, 0, 171, 175, 176, 177, 0, 0)),
320
+ (0.03333333333333333, (0, 0, 0, 178, 175, 176, 179, 0, 0)),
321
+ (0.03333333333333333, (0, 0, 0, 180, 181, 176, 177, 0, 0)),
322
+ (0.03333333333333333, (0, 0, 0, 182, 183, 184, 185, 0, 0)),
323
+ (0.03333333333333333, (0, 0, 0, 186, 187, 188, 189, 0, 0)),
324
+ (0.03333333333333333, (0, 0, 0, 186, 187, 188, 189, 0, 0)),
325
+ (0.03333333333333333, (0, 0, 0, 186, 190, 188, 191, 0, 0)),
326
+ (0.03333333333333333, (0, 0, 0, 186, 190, 188, 191, 0, 0)),
327
+ (0.03333333333333333, (0, 0, 0, 186, 190, 188, 192, 0, 0)),
328
+ (0.03333333333333333, (0, 0, 0, 193, 190, 188, 194, 0, 0)),
329
+ (0.03333333333333333, (0, 0, 0, 195, 190, 188, 194, 0, 0)),
330
+ (0.03333333333333333, (0, 0, 0, 195, 190, 196, 194, 0, 0)),
331
+ (0.03333333333333333, (0, 0, 0, 195, 190, 196, 194, 0, 0)),
332
+ (0.03333333333333333, (0, 0, 0, 195, 190, 196, 194, 0, 0)),
333
+ (0.03333333333333333, (0, 0, 0, 197, 198, 199, 200, 0, 0)),
334
+ (0.06, (0, 0, 201, 202, 203, 204, 205, 0, 0)),
335
+ (0.06, (0, 0, 201, 202, 203, 204, 205, 0, 0)),
336
+ (0.06, (0, 206, 207, 208, 209, 210, 211, 212, 0)),
337
+ (0.06, (0, 206, 207, 208, 209, 210, 211, 212, 0)),
338
+ (0.06, (0, 213, 207, 208, 214, 215, 216, 212, 0)),
339
+ (0.06, (0, 213, 207, 208, 214, 215, 216, 212, 0)),
340
+ (0.06, (0, 217, 207, 218, 219, 220, 221, 212, 222)),
341
+ (0.06, (0, 217, 207, 218, 219, 220, 221, 212, 222)),
342
+ (0.06, (0, 217, 207, 218, 219, 220, 221, 212, 222)),
343
+ (0.06, (0, 217, 207, 218, 219, 220, 221, 212, 222)),
344
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 223, 222)),
345
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 224, 222)),
346
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 225, 222)),
347
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 226, 222)),
348
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 227, 222)),
349
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 228, 222)),
350
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 229, 222)),
351
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 230, 222)),
352
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 231, 222)),
353
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 232, 222)),
354
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 233, 222)),
355
+ (0.03333333333333333, (0, 217, 207, 218, 219, 220, 221, 234, 222)),
356
+ (0.04, (0, 217, 207, 218, 219, 220, 235, 234, 222)),
357
+ (0.04, (0, 217, 207, 218, 219, 236, 237, 234, 222)),
358
+ (0.04, (0, 217, 207, 218, 238, 239, 240, 234, 222)),
359
+ (0.04, (0, 217, 207, 241, 242, 243, 244, 234, 222)),
360
+ (0.04, (0, 217, 207, 245, 246, 247, 248, 234, 222)),
361
+ (0.04, (0, 217, 207, 249, 250, 251, 252, 234, 222)),
362
+ (0.04, (0, 217, 207, 253, 254, 255, 252, 234, 222)),
363
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 256, 222)),
364
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 257, 222)),
365
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 258, 222)),
366
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 259, 222)),
367
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 260, 222)),
368
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 261, 222)),
369
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 262, 222)),
370
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 263, 222)),
371
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 264, 222)),
372
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 265, 222)),
373
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 266, 222)),
374
+ (0.03333333333333333, (0, 217, 207, 253, 254, 255, 252, 267, 222)),
375
+ (1.2, (0, 217, 207, 253, 254, 255, 268, 269, 270)),
376
+ ]
@@ -0,0 +1,56 @@
1
+ """
2
+ packflow roll-in splash animation.
3
+
4
+ Runtime deps: stdlib only.
5
+ Frame data is in _frames.py — a plain Python file generated by
6
+ tools/bake_frames.py.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import os
12
+ import sys
13
+ import time
14
+
15
+
16
+ def _can_animate() -> bool:
17
+ if not sys.stdout.isatty():
18
+ return False
19
+ if os.environ.get("CI") or os.environ.get("NO_COLOR"):
20
+ return False
21
+ if os.environ.get("TERM") in ("dumb", ""):
22
+ return False
23
+ if "ipykernel" in sys.modules or "IPython" in sys.modules:
24
+ return False
25
+ return True
26
+
27
+
28
+ def roll_in(force: bool = False) -> None:
29
+ """Play the packflow roll-in animation.
30
+
31
+ Args:
32
+ force: Skip environment guards. Used by ``packflow roll``.
33
+ """
34
+ if not force and not _can_animate():
35
+ return
36
+
37
+ try:
38
+ from packflow._frames import ANIM_HEIGHT, FRAMES, ROWS
39
+ except ImportError:
40
+ return
41
+
42
+ sys.stdout.write("\n" * ANIM_HEIGHT + "\033[?25l")
43
+ sys.stdout.flush()
44
+ try:
45
+ for delay, row_indices in FRAMES:
46
+ sys.stdout.write(f"\033[{ANIM_HEIGHT}A")
47
+ for idx in row_indices:
48
+ sys.stdout.write(ROWS[idx] + "\n")
49
+ sys.stdout.flush()
50
+ if delay > 0:
51
+ time.sleep(delay)
52
+ except KeyboardInterrupt:
53
+ pass
54
+ finally:
55
+ sys.stdout.write("\033[?25h")
56
+ sys.stdout.flush()