Konfigo Python SDK
Python client SDK for Konfigo Realtime Config. It mirrors the .NET SDK concepts:
- config groups and keys are declared with decorators;
- class/key schemas are discovered and sent to the backend as a version;
- config values are stored as string entries with per-key generations;
- stale and equal-generation updates are ignored;
- subscription events with generation
1are treated as initial state and do not overwrite the already loaded snapshot.
Install
pip install -e .
For the gRPC adapter, install the grpc extra — the service_pb2 / service_pb2_grpc modules are pre-generated from protos/service.proto and ship with the package:
pip install -e ".[grpc]"
Declaring Options
from dataclasses import dataclass
from konfigo import config_group, config_key
@config_group(key="Payments", group_name="Payments", description="Payment gateway")
@dataclass
class PaymentsOptions:
provider: str = config_key(default_value="Stripe")
timeout_seconds: int = config_key(default_value="30")
Runtime Usage
from konfigo import KonfigoClient, RealtimeConfigOptions, bind_config, discover_definitions
from konfigo.grpc_transport import GrpcRealtimeConfigTransport
options = RealtimeConfigOptions(
is_enabled=True,
service_id="orders",
version="1.0.0",
url="realtime-config.internal:443",
)
transport = GrpcRealtimeConfigTransport(options.url)
definitions = discover_definitions(PaymentsOptions)
client = await KonfigoClient.create(
options=options,
transport=transport,
definitions=definitions,
)
task = client.start_background_task()
payments = bind_config(client.store.snapshot(), PaymentsOptions)
Framework integrations can subscribe to client.store.subscribe(...) and rebind dataclasses when values change.
Release files for konfigo 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| konfigo-0.0.7.tar.gz | 13.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| konfigo-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.4 kB
Release files / konfigo-0.0.7.tar.gz
| Download URL | konfigo-0.0.7.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1900873da2c317efeb19085e13d0ee39b10c1cd42eab419919c36bc9a5da209
|
|
BLAKE2b-256 checksum How to use checksums |
0e6b491f2116a69373044c2515759fa8b5bd481aba556f002231d597d0c23f9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 13, 2026.
Transparency logRelease files / konfigo-0.0.7-py3-none-any.whl
| Download URL | konfigo-0.0.7-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce3a366351dccf9fafce8d7fe6cd5cbed6fb5cd3b4efdd2afae0af8df44814f9
|
|
BLAKE2b-256 checksum How to use checksums |
9de4b8451f6d4045032c47d30a9d0ac6c47e6e79704d16930f383101c7f05c7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 13, 2026.
Transparency log