Skip to main content

Flipt Client Evaluation SDK

Project description

Flipt Client Python

pypi

The flipt-client-python directory contains the Python source code for the Flipt client-side evaluation client.

Installation

pip install flipt-client

Usage

In your Python code you can import this client and use it as so:

from flipt_client import FliptEvaluationClient

# "namespace" and "engine_opts" are two keyword arguments that this constructor accepts
# namespace: which namespace to fetch flag state from
# engine_opts: follows the model EngineOpts in the models.py file. Configures the url of the upstream Flipt instance, the interval in which to fetch new flag state, and the authentication method if your upstream Flipt instance requires it
flipt_evaluation_client = FliptEvaluationClient()

variant_result = flipt_evaluation_client.evaluate_variant(flag_key="flag1", entity_id="entity", context={"fizz": "buzz"})

print(variant_result)

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

flipt_client-0.4.2.tar.gz (15.2 MB view details)

Uploaded Source

Built Distribution

flipt_client-0.4.2-py3-none-any.whl (15.3 MB view details)

Uploaded Python 3

File details

Details for the file flipt_client-0.4.2.tar.gz.

File metadata

  • Download URL: flipt_client-0.4.2.tar.gz
  • Upload date:
  • Size: 15.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.8 Linux/6.5.0-1016-azure

File hashes

Hashes for flipt_client-0.4.2.tar.gz
Algorithm Hash digest
SHA256 30406fe6ee0e85e7c653843b0b2c2d65bc22659e98ac0f6abe5252f359ac249c
MD5 769bf29f03c22b15af4103abd9311ddd
BLAKE2b-256 3ea1c12b3245a11e21532fc3cb3bcf045c44898a5b8b1d136deb497e6416d38e

See more details on using hashes here.

File details

Details for the file flipt_client-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: flipt_client-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.8 Linux/6.5.0-1016-azure

File hashes

Hashes for flipt_client-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 faeba2348c6425e21de64d07a88fcc7538cc0c0f40c1a4f69b64253b27b3be7c
MD5 ea44277eb754fc62c25686adce4b56cb
BLAKE2b-256 096d8c13ca915a56e41297eafb412bc2ba4c8348a8f6dc4244eac8e482157a75

See more details on using hashes here.

Supported by

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