nebu 0.1.67__py3-none-any.whl → 0.1.70__py3-none-any.whl

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.
@@ -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
@@ -12,16 +12,16 @@ nebu/containers/models.py,sha256=0j6NGy4yto-enRDh_4JH_ZTbHrLdSpuMOqNQPnIrwC4,681
12
12
  nebu/containers/server.py,sha256=yFa2Y9PzBn59E1HftKiv0iapPonli2rbGAiU6r-wwe0,2513
13
13
  nebu/namespaces/models.py,sha256=EqUOpzhVBhvJw2P92ONDUbIgC31M9jMmcaG5vyOrsWg,497
14
14
  nebu/namespaces/namespace.py,sha256=Q_EDH7BgQrTkaDh_l4tbo22qpq-uARfIk8ZPBLjITGY,4967
15
- nebu/processors/consumer.py,sha256=zMQrRcf_IJfpovCF1f2Tn8rZu8nXhBjcj9VXs4TaT8U,33646
16
- nebu/processors/decorate.py,sha256=rzasgz_kq6yQosoABawu5yhkBj7i12Ah9ntBIVxEyrk,52928
15
+ nebu/processors/consumer.py,sha256=wFxPwLXCrRM8eD4nd6pQsGW46e06rbkoF5YZihodjVk,33857
16
+ nebu/processors/decorate.py,sha256=1Z0kQSxB1EjzKzC7BnYfiYxx3n66vERE7MiX_Aj33JM,53683
17
17
  nebu/processors/default.py,sha256=W4slJenG59rvyTlJ7gRp58eFfXcNOTT2Hfi6zzJAobI,365
18
18
  nebu/processors/models.py,sha256=y40HoW-MEzDWB2dm_tsYlUy3Nf3s6eiLC0iGO9BoNog,3956
19
19
  nebu/processors/processor.py,sha256=PsLs-Oo0bcvqoDKHErpOaic25y8uvTQ8KxtyFwLptW0,16165
20
20
  nebu/processors/remote.py,sha256=TeAIPGEMqnDIb7H1iett26IEZrBlcbPB_-DSm6jcH1E,1285
21
21
  nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
22
22
  nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- nebu-0.1.67.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
24
- nebu-0.1.67.dist-info/METADATA,sha256=rqV2aBIE4_l09W4gHVOLmgzR0xf3SQ1M2Ony8b0zQg4,1731
25
- nebu-0.1.67.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
26
- nebu-0.1.67.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
27
- nebu-0.1.67.dist-info/RECORD,,
23
+ nebu-0.1.70.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
24
+ nebu-0.1.70.dist-info/METADATA,sha256=-qnWpIjYFUrm2goKDFdfswoAI8IH_onT5YWALGxR7MI,1731
25
+ nebu-0.1.70.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
26
+ nebu-0.1.70.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
27
+ nebu-0.1.70.dist-info/RECORD,,
File without changes