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 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
@@ -1,4 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
1
  """Version information for Nacho."""
3
2
 
4
- __version__ = "0.0.2"
3
+ __version__ = "0.1.0"
nacho/cli/__init__.py CHANGED
@@ -1,11 +1,9 @@
1
1
  """Nacho CLI package.
2
2
 
3
- This package provides the command-line interface for Nacho.
3
+ Re-exports the console entry point (pyproject's script points at
4
+ ``nacho.cli.main:main_cli`` directly).
4
5
  """
5
6
 
6
- def main_cli(*args, **kwargs):
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"]