Python client for Prefab Feature Flags, Dynamic log levels, and Config as a Service: https://www.prefab.cloud
Project description
prefab-cloud-python
Python client for prefab.cloud, providing Config, FeatureFlags as a Service
Note: This library is under active development and not quite ready for production usage
Sign up to be notified when this library releases
Example usage
from prefab_cloud_python import Client, Options
options = Options(
prefab_api_key="your-prefab-api-key"
)
context = {
"user": {
"team_id": 432,
"id": 123,
"subscription_level": 'pro',
"email": "alice@example.com"
}
}
client = Client(options)
result = client.enabled("my-first-feature-flag", context=context)
print("my-first-feature-flag is:", result)
See full documentation https://docs.prefab.cloud/docs/python-sdk/python
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
prefab_cloud_python-0.6.0.tar.gz
(19.8 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b38b3fad42af860abbb2038f2bfab9e040004e42b017227bac0a7a33f8f7f2 |
|
MD5 | 4e85442f03cdf6ad7b8b40fe090e0a2c |
|
BLAKE2b-256 | 3420fbd5c0aa36ed83969d07fa3c61a6fc867e439c7df29095fa5bddd3dbfdc2 |
Close
Hashes for prefab_cloud_python-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2867917652f3352bd014eff47c5b6cfcabdd10e02f082912655b0de176bf40a0 |
|
MD5 | 200120f966f1f51a3a64bb8da123a4f3 |
|
BLAKE2b-256 | a1ecc755021b3ad0ca97200b82113e96e4693514e7736909778d6631c29b4fb4 |