nebu 0.1.112__tar.gz → 0.1.114__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 (35) hide show
  1. {nebu-0.1.112/src/nebu.egg-info → nebu-0.1.114}/PKG-INFO +1 -1
  2. {nebu-0.1.112 → nebu-0.1.114}/pyproject.toml +1 -1
  3. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/processors/processor.py +10 -0
  4. {nebu-0.1.112 → nebu-0.1.114/src/nebu.egg-info}/PKG-INFO +1 -1
  5. {nebu-0.1.112 → nebu-0.1.114}/LICENSE +0 -0
  6. {nebu-0.1.112 → nebu-0.1.114}/README.md +0 -0
  7. {nebu-0.1.112 → nebu-0.1.114}/setup.cfg +0 -0
  8. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/__init__.py +0 -0
  9. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/auth.py +0 -0
  10. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/builders/builder.py +0 -0
  11. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/builders/models.py +0 -0
  12. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/cache.py +0 -0
  13. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/config.py +0 -0
  14. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/containers/container.py +0 -0
  15. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/containers/models.py +0 -0
  16. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/data.py +0 -0
  17. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/errors.py +0 -0
  18. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/logging.py +0 -0
  19. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/meta.py +0 -0
  20. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/namespaces/models.py +0 -0
  21. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/namespaces/namespace.py +0 -0
  22. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/orign.py +0 -0
  23. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/processors/consumer.py +0 -0
  24. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/processors/consumer_process_worker.py +0 -0
  25. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/processors/decorate.py +0 -0
  26. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/processors/default.py +0 -0
  27. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/processors/models.py +0 -0
  28. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/redis/models.py +0 -0
  29. {nebu-0.1.112 → nebu-0.1.114}/src/nebu/services/service.py +0 -0
  30. {nebu-0.1.112 → nebu-0.1.114}/src/nebu.egg-info/SOURCES.txt +0 -0
  31. {nebu-0.1.112 → nebu-0.1.114}/src/nebu.egg-info/dependency_links.txt +0 -0
  32. {nebu-0.1.112 → nebu-0.1.114}/src/nebu.egg-info/requires.txt +0 -0
  33. {nebu-0.1.112 → nebu-0.1.114}/src/nebu.egg-info/top_level.txt +0 -0
  34. {nebu-0.1.112 → nebu-0.1.114}/tests/test_bucket.py +0 -0
  35. {nebu-0.1.112 → nebu-0.1.114}/tests/test_containers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.112
3
+ Version: 0.1.114
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.112"
3
+ version = "0.1.114"
4
4
  description = "A globally distributed container runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10.14"
@@ -133,24 +133,34 @@ class Processor(Generic[InputType, OutputType]):
133
133
  self._log_thread: Optional[threading.Thread] = None
134
134
 
135
135
  # Attempt to infer OutputType if schema_ is not provided
136
+ print(">>> self.schema_: ", self.schema_)
137
+ print("self.__dict__: ", self.__dict__)
136
138
  if self.schema_ is None and hasattr(self, "__orig_class__"):
137
139
  type_args = get_args(self.__orig_class__) # type: ignore
140
+ print(">>> type_args: ", type_args)
138
141
  if len(type_args) == 2:
139
142
  output_type_candidate = type_args[1]
143
+ print(">>> output_type_candidate: ", output_type_candidate)
140
144
  # Check if it looks like a Pydantic model class
141
145
  if isinstance(output_type_candidate, type) and issubclass(
142
146
  output_type_candidate, BaseModel
143
147
  ):
148
+ print(">>> output_type_candidate is a Pydantic model class")
144
149
  logger.debug(
145
150
  f"Inferred OutputType {output_type_candidate.__name__} from generic arguments."
146
151
  )
147
152
  self.schema_ = output_type_candidate
148
153
  else:
154
+ print(">>> output_type_candidate is not a Pydantic model class")
149
155
  logger.debug(
150
156
  f"Second generic argument {output_type_candidate} is not a Pydantic BaseModel. "
151
157
  "Cannot infer OutputType."
152
158
  )
153
159
  else:
160
+ print(
161
+ "Could not infer OutputType from generic arguments: wrong number of type args found "
162
+ f"(expected 2, got {len(type_args) if type_args else 0})."
163
+ )
154
164
  logger.debug(
155
165
  "Could not infer OutputType from generic arguments: wrong number of type args found "
156
166
  f"(expected 2, got {len(type_args) if type_args else 0})."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.112
3
+ Version: 0.1.114
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
File without changes
File without changes
File without changes