Skip to main content

ConfigCat OpenFeature Provider for Python

CI PyPI PyPI

This repository contains an OpenFeature provider that allows ConfigCat to be used with the OpenFeature Python SDK.

Installation

pip install configcat-openfeature-provider

Usage

The ConfigCatProvider constructor takes the SDK key and an optional ConfigCatOptions argument containing the additional configuration options for the ConfigCat Python SDK:

from configcatclient import ConfigCatOptions, PollingMode
from openfeature import api
from configcat_openfeature_provider import ConfigCatProvider

# Configure the OpenFeature API with the ConfigCat provider.
api.set_provider(
    ConfigCatProvider(
        "<YOUR-CONFIGCAT-SDK-KEY>",
        # Configure the ConfigCat SDK.
        ConfigCatOptions(
            polling_mode=PollingMode.auto_poll(60),
        ),
    )
)

# Create a client.
client = api.get_client()

# Evaluate a feature flag.
is_awesome_feature_enabled = client.get_boolean_value("isAwesomeFeatureEnabled", False)

For more information about all the configuration options, see the Python SDK documentation.

Need help?

https://configcat.com/support

Contributing

Contributions are welcome. For more info please read the Contribution Guideline.

About ConfigCat

ConfigCat is a feature flag and configuration management service that lets you separate releases from deployments. You can turn your features ON/OFF using ConfigCat Dashboard even after they are deployed. ConfigCat lets you target specific groups of users based on region, email or any other custom user attribute.

ConfigCat is a hosted feature flag service. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.

Metadata

Release files for configcat-openfeature-provider 1.1.0

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

Source distribution (sdist)

Source distribution for configcat-openfeature-provider 1.1.0
File Size Uploaded
configcat_openfeature_provider-1.1.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for configcat-openfeature-provider 1.1.0
File Interpreter ABI Platform
configcat_openfeature_provider-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / configcat_openfeature_provider-1.1.0.tar.gz

Download URL configcat_openfeature_provider-1.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e37c59daea390732621c076be98636f1c98a906483fc615dd97e7a0fe2dc86d9
BLAKE2b-256 checksum
How to use checksums
4364561e3fad952e1ed7094677b767da1cdd82ec173134779780d9aaf7b4f0c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / configcat_openfeature_provider-1.1.0-py3-none-any.whl

Download URL configcat_openfeature_provider-1.1.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d08023dd81b8bba95eb5d10998d1aa0914cee219375f532b725bbb84494aeb1
BLAKE2b-256 checksum
How to use checksums
be3afaacf89c16248ac26aca880c714c4c3f137b2964bb959e8286d44a548a2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

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