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.5.0.tar.gz (13.3 MB view details)

Uploaded Source

Built Distribution

flipt_client-0.5.0-py3-none-any.whl (13.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flipt_client-0.5.0.tar.gz
  • Upload date:
  • Size: 13.3 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.5.0.tar.gz
Algorithm Hash digest
SHA256 9e505f390630334138eba3bb422cc2253fefc3b3a34f2e30ff79ea07e8ad313c
MD5 e5e0e92a597e8221285b1f2b9a744a4f
BLAKE2b-256 7e1f3d6131f01f1201b3adfb48ca14734967a402e4f8f24af10785ac3a25035f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flipt_client-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 13.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15438e4e613a82af7845e5583b8bff2e7051967d68d7ec3cba42627d63061601
MD5 d96101db2d88aa7940ea532491f39d71
BLAKE2b-256 23ac2dfab7a6e9b412fcf6e132e2d394288324ad8656dd1226b43a8aeab54dfc

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