cuneus 0.2.3__tar.gz → 0.2.4__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.
- {cuneus-0.2.3 → cuneus-0.2.4}/PKG-INFO +1 -1
- {cuneus-0.2.3 → cuneus-0.2.4}/pyproject.toml +1 -1
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/cli.py +8 -5
- {cuneus-0.2.3 → cuneus-0.2.4}/.gitignore +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/.python-version +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/README.md +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/__init__.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/core/__init__.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/core/application.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/core/execptions.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/core/extensions.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/core/logging.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/core/settings.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/ext/__init__.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/ext/health.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/src/cuneus/py.typed +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/tests/test_integration.py +0 -0
- {cuneus-0.2.3 → cuneus-0.2.4}/uv.lock +0 -0
|
@@ -13,9 +13,16 @@ from .core.settings import Settings
|
|
|
13
13
|
|
|
14
14
|
def import_from_string(import_str: str) -> Any:
|
|
15
15
|
"""Import an object from a module:attribute string."""
|
|
16
|
+
# Ensure cwd is in path for local imports
|
|
17
|
+
cwd = str(Path.cwd())
|
|
18
|
+
if cwd not in sys.path:
|
|
19
|
+
sys.path.insert(0, cwd)
|
|
20
|
+
|
|
16
21
|
module_path, _, attr = import_str.partition(":")
|
|
17
22
|
if not attr:
|
|
18
|
-
|
|
23
|
+
raise ValueError(
|
|
24
|
+
f"module_path missing function {import_str} expecting 'module.path:name'"
|
|
25
|
+
)
|
|
19
26
|
|
|
20
27
|
module = importlib.import_module(module_path)
|
|
21
28
|
return getattr(module, attr)
|
|
@@ -40,10 +47,6 @@ def get_user_cli() -> click.Group | None:
|
|
|
40
47
|
def cli(ctx: click.Context) -> None:
|
|
41
48
|
"""Cuneus CLI - FastAPI application framework."""
|
|
42
49
|
ctx.ensure_object(dict)
|
|
43
|
-
# Ensure cwd is in path for local imports
|
|
44
|
-
cwd = str(Path.cwd())
|
|
45
|
-
if cwd not in sys.path:
|
|
46
|
-
sys.path.insert(0, cwd)
|
|
47
50
|
|
|
48
51
|
|
|
49
52
|
@cli.command()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|