nebu 0.1.67__tar.gz → 0.1.70__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 (33) hide show
  1. {nebu-0.1.67/src/nebu.egg-info → nebu-0.1.70}/PKG-INFO +1 -1
  2. {nebu-0.1.67 → nebu-0.1.70}/pyproject.toml +1 -1
  3. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/processors/consumer.py +6 -0
  4. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/processors/decorate.py +20 -0
  5. {nebu-0.1.67 → nebu-0.1.70/src/nebu.egg-info}/PKG-INFO +1 -1
  6. {nebu-0.1.67 → nebu-0.1.70}/LICENSE +0 -0
  7. {nebu-0.1.67 → nebu-0.1.70}/README.md +0 -0
  8. {nebu-0.1.67 → nebu-0.1.70}/setup.cfg +0 -0
  9. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/__init__.py +0 -0
  10. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/auth.py +0 -0
  11. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/builders/builder.py +0 -0
  12. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/builders/models.py +0 -0
  13. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/cache.py +0 -0
  14. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/config.py +0 -0
  15. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/containers/container.py +0 -0
  16. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/containers/decorator.py +0 -0
  17. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/containers/models.py +0 -0
  18. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/containers/server.py +0 -0
  19. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/data.py +0 -0
  20. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/meta.py +0 -0
  21. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/namespaces/models.py +0 -0
  22. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/namespaces/namespace.py +0 -0
  23. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/processors/default.py +0 -0
  24. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/processors/models.py +0 -0
  25. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/processors/processor.py +0 -0
  26. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/processors/remote.py +0 -0
  27. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/redis/models.py +0 -0
  28. {nebu-0.1.67 → nebu-0.1.70}/src/nebu/services/service.py +0 -0
  29. {nebu-0.1.67 → nebu-0.1.70}/src/nebu.egg-info/SOURCES.txt +0 -0
  30. {nebu-0.1.67 → nebu-0.1.70}/src/nebu.egg-info/dependency_links.txt +0 -0
  31. {nebu-0.1.67 → nebu-0.1.70}/src/nebu.egg-info/requires.txt +0 -0
  32. {nebu-0.1.67 → nebu-0.1.70}/src/nebu.egg-info/top_level.txt +0 -0
  33. {nebu-0.1.67 → nebu-0.1.70}/tests/test_containers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.67
3
+ Version: 0.1.70
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.67"
3
+ version = "0.1.70"
4
4
  description = "A globally distributed container runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10.14"
@@ -165,6 +165,12 @@ def load_or_reload_user_code(
165
165
  )
166
166
 
167
167
 
168
+ # Print all environment variables before starting
169
+ print("===== ENVIRONMENT VARIABLES =====")
170
+ for key, value in sorted(os.environ.items()):
171
+ print(f"{key}={value}")
172
+ print("=================================")
173
+
168
174
  # --- Get Environment Variables ---
169
175
  try:
170
176
  # Core function info
@@ -450,6 +450,26 @@ def processor(
450
450
  raise ValueError("Nebu server configuration or API key not found.")
451
451
  api_key = current_server.api_key
452
452
  print("[DEBUG Decorator] Nebu API key loaded successfully.")
453
+
454
+ # Add additional environment variables from current configuration
455
+ all_env.append(V1EnvVar(key="AGENTSEA_API_KEY", value=api_key))
456
+
457
+ # Get server URL and auth server URL from current configuration
458
+ server_url = (
459
+ current_server.server
460
+ if current_server
461
+ else GlobalConfig.get_server_url()
462
+ )
463
+ auth_server_url = current_server.auth_server if current_server else None
464
+
465
+ if server_url:
466
+ all_env.append(V1EnvVar(key="NEBULOUS_SERVER", value=server_url))
467
+
468
+ if auth_server_url:
469
+ all_env.append(
470
+ V1EnvVar(key="AGENTSEA_AUTH_SERVER", value=auth_server_url)
471
+ )
472
+
453
473
  except Exception as e:
454
474
  print(f"ERROR: Failed to load Nebu configuration or API key: {e}")
455
475
  raise RuntimeError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.67
3
+ Version: 0.1.70
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