OpenFeature flagd evaluator core implementation
Project description
OpenFeature flagd Core
Reference implementation of the flagd evaluator -- flag parsing, targeting rules (JSON logic), and custom operators (fractional, sem_ver, starts_with, ends_with). Mirrors the Java flagd-core module.
It is part of the OpenFeature Python SDK contrib project.
Installation
pip install openfeature-flagd-core
Usage
from openfeature.contrib.tools.flagd.core import FlagdCore
core = FlagdCore()
core.set_flags('{"flags": {"my-flag": {"state": "ENABLED", "variants": {"on": true}, "defaultVariant": "on"}}}')
result = core.resolve_boolean_value("my-flag", False)
License
Apache 2.0 - See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openfeature_flagd_core-1.0.0.tar.gz.
File metadata
- Download URL: openfeature_flagd_core-1.0.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e843d395de54dbc83d4d46fcee6cbc276204f3dfe5e8cc24ae3ea7247479c232
|
|
| MD5 |
8bb6cc194cfcb8a8a42206326df8a526
|
|
| BLAKE2b-256 |
19f2c32dcef17e160963ae1b0b6ee26535c5f12c306f645aa4ba7f9b9efec7b0
|
Provenance
The following attestation bundles were made for openfeature_flagd_core-1.0.0.tar.gz:
Publisher:
release.yml on open-feature/python-sdk-contrib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openfeature_flagd_core-1.0.0.tar.gz -
Subject digest:
e843d395de54dbc83d4d46fcee6cbc276204f3dfe5e8cc24ae3ea7247479c232 - Sigstore transparency entry: 1413670167
- Sigstore integration time:
-
Permalink:
open-feature/python-sdk-contrib@4f95c87fb9fd08424089793929697b88eee0c0e6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/open-feature
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4f95c87fb9fd08424089793929697b88eee0c0e6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file openfeature_flagd_core-1.0.0-py3-none-any.whl.
File metadata
- Download URL: openfeature_flagd_core-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c140259806c20e5fcda40452425131be6b58e4d790d7faa830d9cd89333e13ef
|
|
| MD5 |
d28914fe5f4303f2157f2d8870c43eaf
|
|
| BLAKE2b-256 |
a70074300b66ba2629076b4f0772ab9b59b5c1342d11ff9b1f730306c615d90c
|
Provenance
The following attestation bundles were made for openfeature_flagd_core-1.0.0-py3-none-any.whl:
Publisher:
release.yml on open-feature/python-sdk-contrib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openfeature_flagd_core-1.0.0-py3-none-any.whl -
Subject digest:
c140259806c20e5fcda40452425131be6b58e4d790d7faa830d9cd89333e13ef - Sigstore transparency entry: 1413670237
- Sigstore integration time:
-
Permalink:
open-feature/python-sdk-contrib@4f95c87fb9fd08424089793929697b88eee0c0e6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/open-feature
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4f95c87fb9fd08424089793929697b88eee0c0e6 -
Trigger Event:
push
-
Statement type: