OpenDecree Python SDK
Python SDK for OpenDecree — schema-driven configuration management.
Install
pip install opendecree
Quick Start
from opendecree import ConfigClient
with ConfigClient("localhost:9090", subject="myapp") as client:
# Get config values (default: string)
fee = client.get("tenant-id", "payments.fee")
# Typed gets via overload
retries = client.get("tenant-id", "payments.retries", int)
enabled = client.get("tenant-id", "payments.enabled", bool)
# Set values
client.set("tenant-id", "payments.fee", "0.5%")
Watch for Changes
with ConfigClient("localhost:9090", subject="myapp") as client:
with client.watch("tenant-id") as watcher:
fee = watcher.field("payments.fee", float, default=0.01)
enabled = watcher.field("payments.enabled", bool, default=False)
if enabled:
print(f"Current fee: {fee.value}")
@fee.on_change
def on_fee_change(old: float, new: float):
print(f"Fee changed: {old} -> {new}")
Async
from opendecree import AsyncConfigClient
async with AsyncConfigClient("localhost:9090", subject="myapp") as client:
val = await client.get("tenant-id", "payments.fee")
retries = await client.get("tenant-id", "payments.retries", int)
Documentation
For detailed concepts (schemas, typed values, versioning, auth), see the main OpenDecree docs.
Requirements
- Python 3.11+
- A running OpenDecree server (v0.3.0+)
License
Apache License 2.0 — see LICENSE.
Metadata
Release files for opendecree 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| opendecree-0.1.0.tar.gz | 65.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opendecree-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 138.4 kB
Release files / opendecree-0.1.0.tar.gz
| Download URL | opendecree-0.1.0.tar.gz |
|---|---|
| Size | 65.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74b4c338ac8f46aecc48feb82ade5e2a8d95dc4d50391790221be73579b7a95a
|
|
BLAKE2b-256 checksum How to use checksums |
d209c7adebf8fff522d44fc9ff0ddcbe7eca2f66aff161061ad5041e0463c028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.
Transparency logRelease files / opendecree-0.1.0-py3-none-any.whl
| Download URL | opendecree-0.1.0-py3-none-any.whl |
|---|---|
| Size | 72.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cc7a683f596929209bb8b1f773be2ccd604181a75007ce4cfa772f148a43334
|
|
BLAKE2b-256 checksum How to use checksums |
cce29dc65e90089fb9f1ca90b7e071e3864de66b20f4ef48e891106330118215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.
Transparency logSecurity for opendecree 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for opendecree-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.