fastled 1.2.68__py3-none-any.whl → 1.2.69__py3-none-any.whl
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.
- fastled/__init__.py +1 -1
- fastled/app.py +3 -0
- fastled/compile_server_impl.py +295 -285
- fastled/docker_manager.py +925 -828
- fastled/keyz.py +75 -22
- fastled/open_browser.py +3 -13
- fastled/project_init.py +129 -129
- fastled/server_flask.py +152 -152
- fastled/site/build.py +449 -449
- fastled/util.py +9 -0
- {fastled-1.2.68.dist-info → fastled-1.2.69.dist-info}/METADATA +400 -400
- {fastled-1.2.68.dist-info → fastled-1.2.69.dist-info}/RECORD +16 -16
- {fastled-1.2.68.dist-info → fastled-1.2.69.dist-info}/WHEEL +0 -0
- {fastled-1.2.68.dist-info → fastled-1.2.69.dist-info}/entry_points.txt +0 -0
- {fastled-1.2.68.dist-info → fastled-1.2.69.dist-info}/licenses/LICENSE +0 -0
- {fastled-1.2.68.dist-info → fastled-1.2.69.dist-info}/top_level.txt +0 -0
fastled/util.py
CHANGED
@@ -8,3 +8,12 @@ def hash_file(file_path: Path) -> str:
|
|
8
8
|
for chunk in iter(lambda: f.read(4096), b""):
|
9
9
|
hasher.update(chunk)
|
10
10
|
return hasher.hexdigest()
|
11
|
+
|
12
|
+
|
13
|
+
def banner_string(msg: str) -> str:
|
14
|
+
"""
|
15
|
+
Return `msg` surrounded by a border of # characters, including
|
16
|
+
leading and trailing newlines.
|
17
|
+
"""
|
18
|
+
border = "#" * (len(msg) + 4)
|
19
|
+
return f"\n{border}\n# {msg}\n{border}\n"
|