nebu 0.1.58__tar.gz → 0.1.59__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.
Files changed (31) hide show
  1. {nebu-0.1.58/src/nebu.egg-info → nebu-0.1.59}/PKG-INFO +1 -1
  2. {nebu-0.1.58 → nebu-0.1.59}/pyproject.toml +1 -1
  3. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/processors/processor.py +4 -3
  4. {nebu-0.1.58 → nebu-0.1.59/src/nebu.egg-info}/PKG-INFO +1 -1
  5. {nebu-0.1.58 → nebu-0.1.59}/LICENSE +0 -0
  6. {nebu-0.1.58 → nebu-0.1.59}/README.md +0 -0
  7. {nebu-0.1.58 → nebu-0.1.59}/setup.cfg +0 -0
  8. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/__init__.py +0 -0
  9. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/auth.py +0 -0
  10. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/builders/builder.py +0 -0
  11. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/builders/models.py +0 -0
  12. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/cache.py +0 -0
  13. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/config.py +0 -0
  14. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/containers/container.py +0 -0
  15. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/containers/decorator.py +0 -0
  16. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/containers/models.py +0 -0
  17. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/containers/server.py +0 -0
  18. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/data.py +0 -0
  19. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/meta.py +0 -0
  20. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/processors/consumer.py +0 -0
  21. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/processors/decorate.py +0 -0
  22. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/processors/default.py +0 -0
  23. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/processors/models.py +0 -0
  24. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/processors/remote.py +0 -0
  25. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/redis/models.py +0 -0
  26. {nebu-0.1.58 → nebu-0.1.59}/src/nebu/services/service.py +0 -0
  27. {nebu-0.1.58 → nebu-0.1.59}/src/nebu.egg-info/SOURCES.txt +0 -0
  28. {nebu-0.1.58 → nebu-0.1.59}/src/nebu.egg-info/dependency_links.txt +0 -0
  29. {nebu-0.1.58 → nebu-0.1.59}/src/nebu.egg-info/requires.txt +0 -0
  30. {nebu-0.1.58 → nebu-0.1.59}/src/nebu.egg-info/top_level.txt +0 -0
  31. {nebu-0.1.58 → nebu-0.1.59}/tests/test_containers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.58
3
+ Version: 0.1.59
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nebu"
3
- version = "0.1.58"
3
+ version = "0.1.59"
4
4
  description = "A globally distributed container runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10.14"
@@ -20,6 +20,7 @@ from nebu.processors.models import (
20
20
  )
21
21
 
22
22
  InputType = TypeVar("InputType", bound=BaseModel)
23
+ OutputType = TypeVar("OutputType", bound=BaseModel)
23
24
 
24
25
 
25
26
  def _fetch_and_print_logs(log_url: str, api_key: str, processor_name: str):
@@ -80,7 +81,7 @@ def _fetch_and_print_logs(log_url: str, api_key: str, processor_name: str):
80
81
  )
81
82
 
82
83
 
83
- class Processor(Generic[InputType]):
84
+ class Processor(Generic[InputType, OutputType]):
84
85
  """
85
86
  A class for managing Processor instances.
86
87
  """
@@ -212,7 +213,7 @@ class Processor(Generic[InputType]):
212
213
  wait: bool = False,
213
214
  logs: bool = False,
214
215
  api_key: Optional[str] = None,
215
- ) -> Dict[str, Any]:
216
+ ) -> OutputType | Dict[str, Any] | None:
216
217
  """
217
218
  Allows the Processor instance to be called like a function, sending data.
218
219
  """
@@ -224,7 +225,7 @@ class Processor(Generic[InputType]):
224
225
  wait: bool = False,
225
226
  logs: bool = False,
226
227
  api_key: Optional[str] = None,
227
- ) -> Dict[str, Any]:
228
+ ) -> OutputType | Dict[str, Any] | None:
228
229
  """
229
230
  Send data to the processor and optionally stream logs in the background.
230
231
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.58
3
+ Version: 0.1.59
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
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