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 auth token 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.0.3.tar.gz (17.1 MB view details)

Uploaded Source

Built Distribution

flipt_client-0.0.3-py3-none-any.whl (17.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flipt_client-0.0.3.tar.gz
  • Upload date:
  • Size: 17.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.7 Linux/6.2.0-1018-azure

File hashes

Hashes for flipt_client-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6fcf019ed5ec868ef007b034b9b9d3c87694f514ddbb14096891d3ff57db132e
MD5 e3b8067ed4fb9175cc15a2614b211e61
BLAKE2b-256 240740c070a656f061510e5fe64fabace2a54ce78f336d6f4ed463d8e54b71ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flipt_client-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.7 Linux/6.2.0-1018-azure

File hashes

Hashes for flipt_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d876d1a34d92339d4f646320c609ba6ce47684947b1bebe57214f3dcba40be
MD5 179b7f39a7c29ea3f2e8e52fcde7c946
BLAKE2b-256 c0b47f5ae3d1172c9cbc98d483343b09d8dc21f67398833acacb03de5ba69245

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