Flagcel OpenFeature Provider for Python
OpenFeature provider for Flagcel with local CEL evaluation. The provider polls
Flagcel for evaluation definitions, compiles rules with cel-expr-python, and
evaluates flags in-process.
python -m pip install flagcel-openfeature
from openfeature import api
from openfeature.evaluation_context import EvaluationContext
from flagcel_openfeature import FlagcelProvider
provider = FlagcelProvider(
endpoint="http://localhost:8080/api/v1",
api_key="fc_example_secret",
)
api.set_provider(provider)
client = api.get_client("checkout-service")
enabled = client.get_boolean_value(
"new-checkout",
False,
EvaluationContext(
targeting_key="u_123",
attributes={"user": {"id": "u_123", "country": "US"}},
),
)
Behavior
- Requires Python 3.11+.
- Fetches
GET /eval/definitionsrelative to the configured endpoint. - Sends
Authorization: Bearer <api_key>when an API key is configured; the API key selects the evaluation environment. - Polls definitions every 30 seconds by default.
- Uses
ETagandIf-None-Matchto avoid reloading unchanged definitions. - Evaluates flags locally with CEL expressions from the latest definitions.
- Returns OpenFeature defaults with provider-not-ready details if no definitions have loaded.
- Keeps using last-known definitions after later refresh failures.
- Maps Flagcel reason, variant, and value type into OpenFeature resolution details.
Configure the polling interval in seconds:
provider = FlagcelProvider(
endpoint="http://localhost:8080/api/v1",
api_key="fc_example_secret",
poll_interval=10.0,
)
Metadata
Release files for flagcel-openfeature 0.1.1
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 | Actions |
|---|---|---|---|---|
| flagcel_openfeature-0.1.1.tar.gz | 11.0 kB | With provenance | Details for flagcel_openfeature-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flagcel_openfeature-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for flagcel_openfeature-0.1.1-py3-none-any.whl |
Total release size: 20.1 kB
Release files / flagcel_openfeature-0.1.1.tar.gz
| Download URL | flagcel_openfeature-0.1.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a5031ed4db571c05a2f19f716c9c9ed5a23eb93ad2b1e5c1bf1d3633b8f0838
|
|
BLAKE2b-256 checksum How to use checksums |
1d85a958c32646e955640df55aefc1b3a00103a7b4572845ad787f51fe00c5e2
|
| 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 Jun 17, 2026.
Transparency logRelease files / flagcel_openfeature-0.1.1-py3-none-any.whl
| Download URL | flagcel_openfeature-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9de5bef1abe7035e9eb487e11a0fcfe058db3f0219b79f44e459bbb0a4b9669f
|
|
BLAKE2b-256 checksum How to use checksums |
dabce730a8b4190fa2c42e33714c2bfe808371ca80deb581e2e1d5c6cdbffcf2
|
| 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 Jun 17, 2026.
Transparency logSecurity for flagcel-openfeature 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.
Attestation for flagcel_openfeature-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 Jun 17, 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.