Skip to main content

Konfigo Python SDK

Python PyPI Typed CI/CD Version License: MIT

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 1 are 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.

Metadata

Release files for konfigo 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for konfigo 0.0.8
File Size Uploaded
konfigo-0.0.8.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for konfigo 0.0.8
File Interpreter ABI Platform
konfigo-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 29.3 kB

Release files / konfigo-0.0.8.tar.gz

Download URL konfigo-0.0.8.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e070ac6cd89cd7f662e2ebd0d38422c80a3780b5eaeae525b2300225806fdd76
BLAKE2b-256 checksum
How to use checksums
9b629e97f7d8c6cc5e3734ffb209ce74ff74e1978180752ce8b287d43ba891ac
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 Oct 11, 2026.

Transparency log

Release files / konfigo-0.0.8-py3-none-any.whl

Download URL konfigo-0.0.8-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcbb49fe7d42b773f5b9a52c23053bdf129ac17081243373c7886fe16f94fe7d
BLAKE2b-256 checksum
How to use checksums
6927194b77e07949a54a2ea4c66eebc7b93b22fffc83141fc8e46166832384a0
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 Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page