Observed since 21 Oct, 09:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python client for AgileConfig with WebSocket updates and environment fallback
Python client for AgileConfig. The client loads configuration over HTTP, listens for reload notifications over WebSocket, and falls back to os.environ when the server is unavailable.
python -m pip install agileconfig-python
from agileconfig_python import AgileConfigLoader
loader = AgileConfigLoader(
url="wss://config.example.com/ws",
app_id="my-app",
secret="your-secret",
env="DEV",
)
database_host = str(loader.get_var("host", prefix="database"))
loader.stop()
The initial HTTP request populates the cache. When AgileConfig publishes a reload event, the cache is refreshed. If the server cannot be reached within the configured timeout, get_var_value reads the variable name from the process environment and ignores its prefix.
AgileConfigLoader is a process-wide singleton. Creating it multiple times in the same Python process returns the same instance and does not reinitialize it.
Important implications:
AgileConfigLoader(...) call with different credentials or URL will switch connections. The first initialization wins for the process lifetime.loader.stop() stops the shared background listener for the singleton. Other parts of your app using the same loader will stop receiving updates.stop() during teardown to avoid background-thread leakage across test cases.AgileConfigLoader(url, app_id, secret, env) creates the singleton loader and starts its listener.loader.get_var_value(var_name, prefix="") returns the current value, or an environment fallback.loader.get_var(var_name, prefix="") returns a lazy string-like proxy that reads the latest value when converted with str().loader.stop() closes the WebSocket and stops the listener thread.python -m pip install --upgrade pip build
python -m pip install -e .
python -m unittest discover -s unit_tests -v
python -m build
The live integration tests embedded in the source require an AgileConfig server and are not run by the offline unit-test command.
version in pyproject.toml.python -m build.python -m twine check dist/*.v0.1.0.twine upload dist/*.Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.5 | 24 Sept 2026 | 2 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 09:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:fb2b64e36d6136d155f3e7bdbe6b902c86134b138c71c71ceecc0053ff2105a9