Flipt Client Evaluation SDK
Project description
Flipt Client Python
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
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
flipt_client-0.0.2.tar.gz
(19.0 MB
view details)
Built Distribution
File details
Details for the file flipt_client-0.0.2.tar.gz
.
File metadata
- Download URL: flipt_client-0.0.2.tar.gz
- Upload date:
- Size: 19.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a96abfd9b6143150775cc91fb7beca0aa7a2c210fb2532f3808a7d14080802 |
|
MD5 | a0c0955ffe45a7ed0d0b9818a675a833 |
|
BLAKE2b-256 | bb5e9122b571d29bc93940e281db9762f8fa8d4b3f0bc7b30983df5c36b46f8b |
File details
Details for the file flipt_client-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: flipt_client-0.0.2-py3-none-any.whl
- Upload date:
- Size: 19.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae03d390ce130240d6bc32899e662adcfde279e1a1ce624d0a2c3c061d296ac |
|
MD5 | 1e018b5086e43b5dcf3403ef64700b50 |
|
BLAKE2b-256 | 147e29e76ce875445121dd87d08782fd580050d4288797d73ba2db945dde11f1 |