nebu 0.1.78__tar.gz → 0.1.79__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 (36) hide show
  1. {nebu-0.1.78/src/nebu.egg-info → nebu-0.1.79}/PKG-INFO +1 -1
  2. {nebu-0.1.78 → nebu-0.1.79}/pyproject.toml +1 -1
  3. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/processors/decorate.py +8 -4
  4. {nebu-0.1.78 → nebu-0.1.79/src/nebu.egg-info}/PKG-INFO +1 -1
  5. {nebu-0.1.78 → nebu-0.1.79}/LICENSE +0 -0
  6. {nebu-0.1.78 → nebu-0.1.79}/README.md +0 -0
  7. {nebu-0.1.78 → nebu-0.1.79}/setup.cfg +0 -0
  8. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/__init__.py +0 -0
  9. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/auth.py +0 -0
  10. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/builders/builder.py +0 -0
  11. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/builders/models.py +0 -0
  12. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/cache.py +0 -0
  13. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/config.py +0 -0
  14. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/containers/container.py +0 -0
  15. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/containers/decorator.py +0 -0
  16. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/containers/models.py +0 -0
  17. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/containers/server.py +0 -0
  18. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/data.py +0 -0
  19. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/errors.py +0 -0
  20. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/meta.py +0 -0
  21. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/namespaces/models.py +0 -0
  22. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/namespaces/namespace.py +0 -0
  23. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/orign.py +0 -0
  24. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/processors/consumer.py +0 -0
  25. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/processors/consumer_process_worker.py +0 -0
  26. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/processors/default.py +0 -0
  27. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/processors/models.py +0 -0
  28. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/processors/processor.py +0 -0
  29. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/processors/remote.py +0 -0
  30. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/redis/models.py +0 -0
  31. {nebu-0.1.78 → nebu-0.1.79}/src/nebu/services/service.py +0 -0
  32. {nebu-0.1.78 → nebu-0.1.79}/src/nebu.egg-info/SOURCES.txt +0 -0
  33. {nebu-0.1.78 → nebu-0.1.79}/src/nebu.egg-info/dependency_links.txt +0 -0
  34. {nebu-0.1.78 → nebu-0.1.79}/src/nebu.egg-info/requires.txt +0 -0
  35. {nebu-0.1.78 → nebu-0.1.79}/src/nebu.egg-info/top_level.txt +0 -0
  36. {nebu-0.1.78 → nebu-0.1.79}/tests/test_containers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.78
3
+ Version: 0.1.79
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.78"
3
+ version = "0.1.79"
4
4
  description = "A globally distributed container runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10.14"
@@ -390,7 +390,8 @@ def processor(
390
390
  ports: Optional[List[V1PortRequest]] = None,
391
391
  proxy_port: Optional[int] = None,
392
392
  health_check: Optional[V1ContainerHealthCheck] = None,
393
- execution_mode: str = "inline", # Added parameter
393
+ execution_mode: str = "inline",
394
+ config: Optional[GlobalConfig] = None,
394
395
  ):
395
396
  def decorator(
396
397
  func: Callable[[Any], Any],
@@ -410,6 +411,9 @@ def processor(
410
411
  processor_name = func.__name__
411
412
  all_volumes = volumes or [] # Initialize volumes list
412
413
 
414
+ # Use a local variable for config resolution
415
+ effective_config = config
416
+
413
417
  # --- Get Decorated Function File Path and Directory ---
414
418
  print("[DEBUG Decorator] Getting source file path for decorated function...")
415
419
  func_file_path: Optional[str] = None
@@ -445,9 +449,9 @@ def processor(
445
449
  # --- Get API Key ---
446
450
  print("[DEBUG Decorator] Loading Nebu configuration...")
447
451
  try:
448
- pass
449
- config = GlobalConfig.read()
450
- current_server = config.get_current_server_config()
452
+ if not effective_config:
453
+ effective_config = GlobalConfig.read()
454
+ current_server = effective_config.get_current_server_config()
451
455
  if not current_server or not current_server.api_key:
452
456
  raise ValueError("Nebu server configuration or API key not found.")
453
457
  api_key = current_server.api_key
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.78
3
+ Version: 0.1.79
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