nebu 0.1.111__tar.gz → 0.1.112__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.111/src/nebu.egg-info → nebu-0.1.112}/PKG-INFO +1 -1
  2. {nebu-0.1.111 → nebu-0.1.112}/pyproject.toml +1 -1
  3. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/processors/processor.py +9 -0
  4. {nebu-0.1.111 → nebu-0.1.112/src/nebu.egg-info}/PKG-INFO +1 -1
  5. {nebu-0.1.111 → nebu-0.1.112}/LICENSE +0 -0
  6. {nebu-0.1.111 → nebu-0.1.112}/README.md +0 -0
  7. {nebu-0.1.111 → nebu-0.1.112}/setup.cfg +0 -0
  8. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/__init__.py +0 -0
  9. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/auth.py +0 -0
  10. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/builders/builder.py +0 -0
  11. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/builders/models.py +0 -0
  12. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/cache.py +0 -0
  13. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/config.py +0 -0
  14. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/containers/container.py +0 -0
  15. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/containers/models.py +0 -0
  16. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/data.py +0 -0
  17. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/errors.py +0 -0
  18. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/logging.py +0 -0
  19. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/meta.py +0 -0
  20. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/namespaces/models.py +0 -0
  21. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/namespaces/namespace.py +0 -0
  22. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/orign.py +0 -0
  23. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/processors/consumer.py +0 -0
  24. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/processors/consumer_process_worker.py +0 -0
  25. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/processors/decorate.py +0 -0
  26. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/processors/default.py +0 -0
  27. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/processors/models.py +0 -0
  28. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/redis/models.py +0 -0
  29. {nebu-0.1.111 → nebu-0.1.112}/src/nebu/services/service.py +0 -0
  30. {nebu-0.1.111 → nebu-0.1.112}/src/nebu.egg-info/SOURCES.txt +0 -0
  31. {nebu-0.1.111 → nebu-0.1.112}/src/nebu.egg-info/dependency_links.txt +0 -0
  32. {nebu-0.1.111 → nebu-0.1.112}/src/nebu.egg-info/requires.txt +0 -0
  33. {nebu-0.1.111 → nebu-0.1.112}/src/nebu.egg-info/top_level.txt +0 -0
  34. {nebu-0.1.111 → nebu-0.1.112}/tests/test_bucket.py +0 -0
  35. {nebu-0.1.111 → nebu-0.1.112}/tests/test_containers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.111
3
+ Version: 0.1.112
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.111"
3
+ version = "0.1.112"
4
4
  description = "A globally distributed container runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10.14"
@@ -330,6 +330,11 @@ class Processor(Generic[InputType, OutputType]):
330
330
  logger.info(f"Log fetching is already running for {processor_name}.")
331
331
 
332
332
  # Attempt to parse into OutputType if conditions are met
333
+ print(f">>> wait: {wait}")
334
+ print(f">>> self.schema_: {self.schema_}")
335
+ print(">>> type(self.schema_): ", type(self.schema_))
336
+ print(f">>> isinstance(self.schema_, type): {isinstance(self.schema_, type)}")
337
+ print(f">>> isinstance(raw_content, dict): {isinstance(raw_content, dict)}")
333
338
  if (
334
339
  wait
335
340
  and self.schema_
@@ -337,16 +342,20 @@ class Processor(Generic[InputType, OutputType]):
337
342
  and issubclass(self.schema_, BaseModel) # type: ignore
338
343
  and isinstance(raw_content, dict)
339
344
  ): # Check if raw_content is a dict
345
+ print(f">>> raw_content: {raw_content}")
340
346
  try:
341
347
  # self.schema_ is assumed to be the Pydantic model class for OutputType
342
348
  # Parse raw_content instead of the full response
343
349
  parsed_model = self.schema_.model_validate(raw_content)
350
+ print(f">>> parsed_model: {parsed_model}")
344
351
  # Cast to OutputType to satisfy the linter with generics
345
352
  parsed_output: OutputType = cast(OutputType, parsed_model)
353
+ print(f">>> parsed_output: {parsed_output}")
346
354
  return parsed_output
347
355
  except (
348
356
  Exception
349
357
  ) as e: # Consider pydantic.ValidationError for more specific handling
358
+ print(f">>> error: {e}")
350
359
  schema_name = getattr(self.schema_, "__name__", str(self.schema_))
351
360
  logger.error(
352
361
  f"Processor {processor_name}: Failed to parse 'content' field into output type {schema_name}. "
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.111
3
+ Version: 0.1.112
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