Flipt Server SDK
Project description
Flipt Python
This directory contains the Python source code for the Flipt server-side client.
Documentation
API documentation is available at https://www.flipt.io/docs/reference/overview.
Installation
pip install flipt=={version}
Usage
In your Python code you can import this client and use it as so:
from flipt import FliptClient
from flipt.evaluation import BatchEvaluationRequest, EvaluationRequest
flipt_client = FliptClient()
variant_flag = flipt_client.evaluation.variant(
EvaluationRequest(
namespace_key="default",
flag_key="flagll",
entity_id="entity",
context={"fizz": "buzz"},
)
)
print(variant_flag)
There is a more detailed example in the examples directory.
For developers
After adding new code, please don't forget to add unit tests for new features.
To format the code, check it with linters and run tests, use the make check
command.
Please keep the Python PEP8 in mind while adding new code.
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-1.3.0.tar.gz
(5.3 kB
view details)
Built Distribution
flipt-1.3.0-py3-none-any.whl
(9.0 kB
view details)
File details
Details for the file flipt-1.3.0.tar.gz
.
File metadata
- Download URL: flipt-1.3.0.tar.gz
- Upload date:
- Size: 5.3 kB
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 328c62f4fd31892cddd9b11fb97d730e597d1f31f4b385e8d689dea9e310dbe7 |
|
MD5 | 82a78c783e36b7d31eeeb9e029e0f095 |
|
BLAKE2b-256 | e958eea245f64629e68375d0e0530b23dd3a2d3677abd9d31ee215e38a6392e6 |
File details
Details for the file flipt-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: flipt-1.3.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 065194f194414cc6d2e7015b97f30cc2fc92af0ef6d64b47e3a02cee0327589d |
|
MD5 | 8a2dc00e867e2e88eb18bb3ce3b56ecd |
|
BLAKE2b-256 | 5f23010e9f0b616c96f30acae5eace06031eeea6c1463be3f5a72b51eef043fb |