caudex 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.
Potentially problematic release.
This version of caudex might be problematic. Click here for more details.
- caudex/__init__.py +20 -0
- caudex/__main__.py +13 -0
- caudex/api.py +1050 -0
- caudex/cli.py +2169 -0
- caudex/identity.py +170 -0
- caudex/migrate.py +164 -0
- caudex/notebook.py +249 -0
- caudex/paths.py +297 -0
- caudex/py.typed +0 -0
- caudex/runtime.py +210 -0
- caudex/session.py +166 -0
- caudex/ui.py +395 -0
- caudex-0.2.0.dist-info/METADATA +339 -0
- caudex-0.2.0.dist-info/RECORD +18 -0
- caudex-0.2.0.dist-info/WHEEL +5 -0
- caudex-0.2.0.dist-info/entry_points.txt +2 -0
- caudex-0.2.0.dist-info/licenses/LICENSE +201 -0
- caudex-0.2.0.dist-info/top_level.txt +1 -0
caudex/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
caudex — run Kaggle GPU/CPU notebooks from your terminal.
|
|
3
|
+
|
|
4
|
+
Formerly kaggle-bridge (command: kbr).
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from .identity import VERSION as __version__
|
|
8
|
+
|
|
9
|
+
# One-time import of a kaggle-bridge 0.1.x profile. This lives in __init__
|
|
10
|
+
# rather than in cli() because package import is the only ordering guarantee
|
|
11
|
+
# that holds for every entry point — console script, python -m, the frozen
|
|
12
|
+
# binary, and a test that imports caudex.paths without touching Click.
|
|
13
|
+
# It is best-effort by design: a failed migration must never stop the CLI from
|
|
14
|
+
# starting, so every error is swallowed here and the tool falls back to a
|
|
15
|
+
# fresh profile.
|
|
16
|
+
try:
|
|
17
|
+
from . import migrate as _migrate
|
|
18
|
+
_migrate.run_once()
|
|
19
|
+
except Exception:
|
|
20
|
+
pass
|
caudex/__main__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Support ``python -m caudex``.
|
|
2
|
+
|
|
3
|
+
The package docstring and migrate.py both name ``python -m`` as a supported
|
|
4
|
+
entry point, but without this module it raises ``No module named
|
|
5
|
+
caudex.__main__``. Importing the package here also means the one-time profile
|
|
6
|
+
migration in ``__init__`` runs for this entry point exactly as it does for the
|
|
7
|
+
console script and the frozen binary.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from .cli import cli
|
|
11
|
+
|
|
12
|
+
if __name__ == "__main__":
|
|
13
|
+
cli()
|