Skip to main content

confeature-client (Python)

Python SDK for Confeature — a drop-in replacement for ConfigCat's official configcat-client Python SDK. Migrate by changing the import name and the SDK key value; no code changes needed.

Install

# Using uv (recommended)
uv add confeature-client

# Using pip
pip install confeature-client

PyPI publish is deferred to a future release; for now, build the wheel from this repository (uv build in apps/sdk-python/) and install via pip install dist/confeature_client-*.whl.

Requires Python 3.10+.

Quickstart

from confeature_client import ConfeatureClient, User

with ConfeatureClient(sdk_key="configcat-sdk-1/...") as client:
    user = User(identifier="alice@example.com")
    enabled = client.get_value("feature.dark-mode", default=False, user=user)
    print(f"dark mode: {enabled}")

Polling modes

Mirrors configcat-client: pick one of AutoPoll() (default, daemon thread polls every 60s), LazyLoad() (fetch on first stale read), or ManualPoll() (only on explicit client.force_refresh()).

from confeature_client import ConfeatureClient, ManualPoll

client = ConfeatureClient(sdk_key="...", polling_mode=ManualPoll())
client.force_refresh()

Flag overrides

Use FlagOverrides(MapOverrideDataSource({...}), OverrideBehaviour.LOCAL_ONLY) to bypass the network entirely (tests, local dev):

from confeature_client import (
    ConfeatureClient,
    FlagOverrides,
    MapOverrideDataSource,
    OverrideBehaviour,
)

client = ConfeatureClient(
    sdk_key="...",
    flag_overrides=FlagOverrides(
        data_source=MapOverrideDataSource({"feature.x": True}),
        behaviour=OverrideBehaviour.LOCAL_ONLY,
    ),
)
assert client.get_value("feature.x", default=False) is True

LOCAL_OVER_REMOTE and REMOTE_OVER_LOCAL are accepted at the type level but raise NotImplementedError at evaluation time (deferred per the parent monorepo's spec 031 §R8).

Migrate from ConfigCat

- import configcatclient
+ from confeature_client import ConfeatureClient
- client = configcatclient.create_client("YOUR-CONFIGCAT-KEY")
+ client = ConfeatureClient(sdk_key="YOUR-CONFEATURE-KEY")

Confeature SDK keys have ConfigCat's own shape, configcat-sdk-1/<22>/<22>, so a key copied from the Confeature dashboard also works in the stock configcat-client. Keys minted before that, confeature-sdk-1-<32>-<32>, are still accepted (is_valid_confeature_key_format checks both).

Method signatures, polling options, flag-overrides semantics, and User field names all mirror configcat-client. The corpus parity tier (tests/parity/test_parity_corpus.py) gates byte-identical output across 58 (flag, user, default) tuples.

Documentation & support

License

MIT. See LICENSE at the package root.

Metadata

Release files for confeature-client 0.1.1

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

Source distribution (sdist)

Source distribution for confeature-client 0.1.1
File Size Uploaded Provenance Actions
confeature_client-0.1.1.tar.gz 57.6 kB With provenance Details for confeature_client-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for confeature-client 0.1.1
File Interpreter ABI Platform Actions
confeature_client-0.1.1-py3-none-any.whl Python 3 none any Details for confeature_client-0.1.1-py3-none-any.whl

Total release size: 126.4 kB

Release files / confeature_client-0.1.1.tar.gz

Download URL confeature_client-0.1.1.tar.gz
Size 57.6 kB
Tags Source
SHA-256 checksum
How to use checksums
550b9854403552b24b5163a3909b5eee2f1546acdc4379bc3891b358cfd83e83
BLAKE2b-256 checksum
How to use checksums
b7315bfd992105d0148d03dd0a63515ea3e56a56c224f09447ab0d35f7ea9375
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 Nov 18, 2026.

Transparency log

Release files / confeature_client-0.1.1-py3-none-any.whl

Download URL confeature_client-0.1.1-py3-none-any.whl
Size 68.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2467c8883d528af52a199dea7f31420818637e6621281b9ea03ed4117ca24d2e
BLAKE2b-256 checksum
How to use checksums
f947f0a8f3865abd9b09e6f7d21287c82ae455405f1454003ba1e1ff90844bee
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 Nov 18, 2026.

Transparency log

Security for confeature-client 0.1.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for confeature_client-0.1.1.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 Nov 18, 2026.

Transparency log

A 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.

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