nacho-python 0.0.2__py3-none-any.whl → 0.1.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.
- nacho/__init__.py +12 -5
- nacho/_version.py +1 -2
- nacho/cli/__init__.py +3 -5
- nacho/cli/main.py +591 -479
- nacho/client.py +252 -0
- nacho/config.py +82 -53
- nacho/env.py +58 -31
- nacho/event.py +69 -103
- nacho/schema.py +10 -24
- nacho/server/__init__.py +4 -4
- nacho/server/app.py +210 -119
- nacho/server/auth.py +104 -29
- nacho/server/models.py +37 -24
- nacho/server/runtime.py +299 -80
- nacho/server/ui/index.html +1100 -473
- nacho/storage/__init__.py +14 -3
- nacho/storage/base.py +39 -1
- nacho/storage/file.py +6 -5
- nacho/storage/remote.py +170 -110
- nacho/utils/__init__.py +1 -2
- nacho/utils/io.py +35 -41
- nacho/utils/path.py +51 -32
- nacho_python-0.1.0.dist-info/METADATA +822 -0
- nacho_python-0.1.0.dist-info/RECORD +28 -0
- {nacho_python-0.0.2.dist-info → nacho_python-0.1.0.dist-info}/WHEEL +1 -1
- nacho_python-0.0.2.dist-info/METADATA +0 -605
- nacho_python-0.0.2.dist-info/RECORD +0 -27
- {nacho_python-0.0.2.dist-info → nacho_python-0.1.0.dist-info}/entry_points.txt +0 -0
- {nacho_python-0.0.2.dist-info → nacho_python-0.1.0.dist-info}/licenses/LICENSE +0 -0
- {nacho_python-0.0.2.dist-info → nacho_python-0.1.0.dist-info}/top_level.txt +0 -0
nacho/__init__.py
CHANGED
|
@@ -6,16 +6,16 @@ from .event import EventType
|
|
|
6
6
|
from .schema import HAS_SCHEMA_DEPS, ValidationError
|
|
7
7
|
from .storage import (
|
|
8
8
|
HAS_REMOTE_DEPS,
|
|
9
|
+
AuthError,
|
|
10
|
+
ConflictError,
|
|
9
11
|
FileStorageBackend,
|
|
12
|
+
NotFoundError,
|
|
13
|
+
RemoteError,
|
|
14
|
+
RemoteStorageBackend,
|
|
10
15
|
StorageBackend,
|
|
11
16
|
StorageError,
|
|
12
17
|
)
|
|
13
18
|
|
|
14
|
-
try:
|
|
15
|
-
from .storage import RemoteStorageBackend
|
|
16
|
-
except ImportError: # pragma: no cover - optional 'remote' extra not installed
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
19
|
try:
|
|
20
20
|
from .server.app import NachoOrchestrator
|
|
21
21
|
|
|
@@ -30,6 +30,10 @@ __all__ = [
|
|
|
30
30
|
"ValidationError",
|
|
31
31
|
"StorageBackend",
|
|
32
32
|
"StorageError",
|
|
33
|
+
"RemoteError",
|
|
34
|
+
"AuthError",
|
|
35
|
+
"NotFoundError",
|
|
36
|
+
"ConflictError",
|
|
33
37
|
"FileStorageBackend",
|
|
34
38
|
"RemoteStorageBackend",
|
|
35
39
|
"NachoOrchestrator",
|
|
@@ -37,3 +41,6 @@ __all__ = [
|
|
|
37
41
|
"HAS_REMOTE_DEPS",
|
|
38
42
|
"HAS_SERVER_DEPS",
|
|
39
43
|
]
|
|
44
|
+
if not HAS_SERVER_DEPS:
|
|
45
|
+
# Keep __all__ truthful so `from nacho import *` never hits an undefined name.
|
|
46
|
+
__all__.remove("NachoOrchestrator")
|
nacho/_version.py
CHANGED
nacho/cli/__init__.py
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"""Nacho CLI package.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Re-exports the console entry point (pyproject's script points at
|
|
4
|
+
``nacho.cli.main:main_cli`` directly).
|
|
4
5
|
"""
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
from .main import main_cli as _main_cli
|
|
8
|
-
|
|
9
|
-
return _main_cli(*args, **kwargs)
|
|
7
|
+
from .main import main_cli
|
|
10
8
|
|
|
11
9
|
__all__ = ["main_cli"]
|