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 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()