Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openfeature_flagd_core-1.0.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openfeature_flagd_core-1.0.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

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

Hashes for openfeature_flagd_core-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e843d395de54dbc83d4d46fcee6cbc276204f3dfe5e8cc24ae3ea7247479c232
MD5 8bb6cc194cfcb8a8a42206326df8a526
BLAKE2b-256 19f2c32dcef17e160963ae1b0b6ee26535c5f12c306f645aa4ba7f9b9efec7b0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openfeature_flagd_core-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openfeature_flagd_core-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c140259806c20e5fcda40452425131be6b58e4d790d7faa830d9cd89333e13ef
MD5 d28914fe5f4303f2157f2d8870c43eaf
BLAKE2b-256 a70074300b66ba2629076b4f0772ab9b59b5c1342d11ff9b1f730306c615d90c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page