tacklebox-cli 0.2.3__tar.gz → 0.2.5__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.
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/PKG-INFO +3 -4
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/pyproject.toml +1 -2
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/commands/clipboard.py +1 -1
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/commands/spectacle.py +4 -4
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/version.py +2 -2
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/.gitignore +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/LICENSE.md +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/README.md +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/__init__.py +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/commands/__init__.py +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/commands/version.py +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/entrypoint.py +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/sync.py +0 -0
- {tacklebox_cli-0.2.3 → tacklebox_cli-0.2.5}/tacklebox/utils.py +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tacklebox-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: A small collection of CLI utilities.
|
|
5
5
|
Project-URL: Homepage, https://c.csw.im/cswimr/tacklebox
|
|
6
6
|
Project-URL: Issues, https://c.csw.im/cswimr/tacklebox/issues
|
|
7
|
-
Project-URL: source_archive, https://c.csw.im/cswimr/tacklebox/archive/
|
|
7
|
+
Project-URL: source_archive, https://c.csw.im/cswimr/tacklebox/archive/5b62637e5d3dc489d40003c023e2493415a35c2f.tar.gz
|
|
8
8
|
Author-email: cswimr <seaswimmerthefsh@gmail.com>
|
|
9
9
|
License: The MIT License (MIT)
|
|
10
10
|
=====================
|
|
@@ -34,11 +34,10 @@ License: The MIT License (MIT)
|
|
|
34
34
|
License-File: LICENSE.md
|
|
35
35
|
Classifier: License :: OSI Approved :: MIT License
|
|
36
36
|
Classifier: Programming Language :: Python
|
|
37
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
38
37
|
Classifier: Programming Language :: Python :: 3.11
|
|
39
38
|
Classifier: Programming Language :: Python :: 3.12
|
|
40
39
|
Classifier: Programming Language :: Python :: 3.13
|
|
41
|
-
Requires-Python: >=3.
|
|
40
|
+
Requires-Python: >=3.11
|
|
42
41
|
Requires-Dist: desktop-notifier>=6.1.0
|
|
43
42
|
Requires-Dist: platformdirs>=4.3.0
|
|
44
43
|
Requires-Dist: zipline-py[cli]>=0.27.0
|
|
@@ -3,12 +3,11 @@ name = "tacklebox-cli"
|
|
|
3
3
|
description = "A small collection of CLI utilities."
|
|
4
4
|
authors = [{ name = "cswimr", email = "seaswimmerthefsh@gmail.com" }]
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
requires-python = ">=3.
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
7
|
license = { file = "LICENSE.md" }
|
|
8
8
|
classifiers = [
|
|
9
9
|
"License :: OSI Approved :: MIT License",
|
|
10
10
|
"Programming Language :: Python",
|
|
11
|
-
"Programming Language :: Python :: 3.10",
|
|
12
11
|
"Programming Language :: Python :: 3.11",
|
|
13
12
|
"Programming Language :: Python :: 3.12",
|
|
14
13
|
"Programming Language :: Python :: 3.13",
|
|
@@ -5,7 +5,7 @@ import subprocess
|
|
|
5
5
|
import sys
|
|
6
6
|
import tempfile
|
|
7
7
|
from datetime import datetime, timezone
|
|
8
|
-
from enum import
|
|
8
|
+
from enum import IntEnum, StrEnum
|
|
9
9
|
from pathlib import Path
|
|
10
10
|
from shutil import which
|
|
11
11
|
from typing import Annotated
|
|
@@ -50,7 +50,7 @@ def _read_spectacle_config() -> tuple[str, VideoFormat]:
|
|
|
50
50
|
if not path.exists():
|
|
51
51
|
return "png", VideoFormat.WEBM
|
|
52
52
|
|
|
53
|
-
config = configparser.ConfigParser()
|
|
53
|
+
config = configparser.ConfigParser(strict=False)
|
|
54
54
|
config.read(path)
|
|
55
55
|
|
|
56
56
|
preferred_image_format = config.get("ImageSave", "preferredImageFormat", fallback="png").lower()
|
|
@@ -60,7 +60,7 @@ def _read_spectacle_config() -> tuple[str, VideoFormat]:
|
|
|
60
60
|
return preferred_image_format, preferred_video_format
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
class SpectacleMode(
|
|
63
|
+
class SpectacleMode(StrEnum):
|
|
64
64
|
REGION = "region"
|
|
65
65
|
DESKTOP = "desktop"
|
|
66
66
|
MONITOR = "monitor"
|
|
@@ -73,7 +73,7 @@ class SpectacleMode(str, Enum):
|
|
|
73
73
|
"""Generate autocompletion strings for Typer."""
|
|
74
74
|
completions: list[tuple[str, str] | str] = []
|
|
75
75
|
for mode in SpectacleMode:
|
|
76
|
-
if mode.
|
|
76
|
+
if mode.startswith(incomplete):
|
|
77
77
|
completions.append((mode, mode.completion_string) if mode.completion_string else mode)
|
|
78
78
|
return completions
|
|
79
79
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|