llama-deploy-appserver 0.3.0a16__py3-none-any.whl → 0.3.0a17__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.
@@ -62,14 +62,23 @@ def load_environment_variables(config: DeploymentConfig, source_root: Path) -> N
62
62
  """
63
63
  Load environment variables from the deployment config.
64
64
  """
65
+ for key, value in parse_environment_variables(config, source_root).items():
66
+ if value:
67
+ os.environ[key] = value
68
+
69
+
70
+ def parse_environment_variables(
71
+ config: DeploymentConfig, source_root: Path
72
+ ) -> dict[str, str]:
73
+ """
74
+ Parse environment variables from the deployment config.
75
+ """
65
76
  env_vars = {**config.env} if config.env else {}
66
77
  for env_file in config.env_files or []:
67
78
  env_file_path = source_root / env_file
68
79
  values = dotenv_values(env_file_path)
69
80
  env_vars.update(**values)
70
- for key, value in env_vars.items():
71
- if value:
72
- os.environ[key] = value
81
+ return env_vars
73
82
 
74
83
 
75
84
  @functools.cache
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: llama-deploy-appserver
3
- Version: 0.3.0a16
3
+ Version: 0.3.0a17
4
4
  Summary: Application server components for LlamaDeploy
5
5
  Author: Massimiliano Pippi
6
6
  Author-email: Massimiliano Pippi <mpippi@gmail.com>
@@ -10,7 +10,7 @@ Requires-Dist: pydantic-settings>=2.10.1
10
10
  Requires-Dist: uvicorn>=0.24.0
11
11
  Requires-Dist: fastapi>=0.100.0
12
12
  Requires-Dist: websockets>=12.0
13
- Requires-Dist: llama-deploy-core>=0.3.0a16,<0.4.0
13
+ Requires-Dist: llama-deploy-core>=0.3.0a17,<0.4.0
14
14
  Requires-Dist: httpx>=0.28.1
15
15
  Requires-Dist: prometheus-fastapi-instrumentator>=7.1.0
16
16
  Requires-Dist: packaging>=25.0
@@ -15,7 +15,7 @@ llama_deploy/appserver/routers/ui_proxy.py,sha256=f63c36c201070594a4011320192d72
15
15
  llama_deploy/appserver/settings.py,sha256=7f1f481216b29614a94783c81cb49f0790d66e9e0cacef407da4ed3c8fcbbeeb,3484
16
16
  llama_deploy/appserver/stats.py,sha256=1f3989f6705a6de3e4d61ee8cdd189fbe04a2c53ec5e720b2e5168acc331427f,691
17
17
  llama_deploy/appserver/types.py,sha256=4edc991aafb6b8497f068d12387455df292da3ff8440223637641ab1632553ec,2133
18
- llama_deploy/appserver/workflow_loader.py,sha256=9ea1c40ce63c5b17893864dc1c020d53e8e8faf94295465ec63dd0b265497ae0,13906
19
- llama_deploy_appserver-0.3.0a16.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
20
- llama_deploy_appserver-0.3.0a16.dist-info/METADATA,sha256=ec6a2038bdd78581ae49dee3be0008a47ea155661acdfd1a0bfd29458b175f27,848
21
- llama_deploy_appserver-0.3.0a16.dist-info/RECORD,,
18
+ llama_deploy/appserver/workflow_loader.py,sha256=c15890a00976e022edcdf2af04bf699c02fba020bb06c47960a4911e08255501,14146
19
+ llama_deploy_appserver-0.3.0a17.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
20
+ llama_deploy_appserver-0.3.0a17.dist-info/METADATA,sha256=fdf4f754be72fd115b268a7fe3da393fb244e5fc5445128ece530518a1ef0502,848
21
+ llama_deploy_appserver-0.3.0a17.dist-info/RECORD,,