generic-ml-cache-cli 0.2.0__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.
- generic_ml_cache_cli/__init__.py +28 -0
- generic_ml_cache_cli/__main__.py +10 -0
- generic_ml_cache_cli/cli.py +869 -0
- generic_ml_cache_cli/config.py +347 -0
- generic_ml_cache_cli-0.2.0.dist-info/METADATA +96 -0
- generic_ml_cache_cli-0.2.0.dist-info/RECORD +10 -0
- generic_ml_cache_cli-0.2.0.dist-info/WHEEL +4 -0
- generic_ml_cache_cli-0.2.0.dist-info/entry_points.txt +2 -0
- generic_ml_cache_cli-0.2.0.dist-info/licenses/LICENSE +201 -0
- generic_ml_cache_cli-0.2.0.dist-info/licenses/NOTICE +8 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Daniel Slobozian
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
"""generic-ml-cache-cli: the terminal UI over generic-ml-cache-core.
|
|
4
|
+
|
|
5
|
+
A thin inbound driver: it reads configuration (an INI file), provides the data
|
|
6
|
+
source (store location), and maps the ``gmlcache`` terminal commands onto the
|
|
7
|
+
core library's public APIs. All the engine logic and adapters live in
|
|
8
|
+
generic-ml-cache-core, on which this package depends.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from importlib.metadata import PackageNotFoundError
|
|
14
|
+
from importlib.metadata import version as _pkg_version
|
|
15
|
+
|
|
16
|
+
try:
|
|
17
|
+
__version__ = _pkg_version("generic-ml-cache-cli")
|
|
18
|
+
except PackageNotFoundError: # running from an uninstalled source tree
|
|
19
|
+
__version__ = "0+unknown"
|
|
20
|
+
|
|
21
|
+
from generic_ml_cache_core import ( # noqa: E402 # re-export the stable surface
|
|
22
|
+
ClientAdapter,
|
|
23
|
+
UnknownClient,
|
|
24
|
+
get_adapter,
|
|
25
|
+
register,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
__all__ = ["__version__", "register", "get_adapter", "ClientAdapter", "UnknownClient"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Daniel Slobozian
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
"""Enable ``python -m generic_ml_cache``."""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
from generic_ml_cache_cli.cli import main
|
|
8
|
+
|
|
9
|
+
if __name__ == "__main__":
|
|
10
|
+
raise SystemExit(main())
|