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.5.1.tar.gz
(19.7 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.5.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 326e4d5b7252922754a29d53704c4b033bb23b50bd94459faafe1735142083c0 |
|
MD5 | 9ce79cbe4d65c18c18aa4e12aa7657e6 |
|
BLAKE2b-256 | 763824686ca69abd11b9512a1eb92c6a6df7512cff2184b06efcbbebffb0f11b |
Close
Hashes for prefab_cloud_python-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e73a470935b77d8b24bdd06a5e9dbb0a3425babb1e8d0b770515ef2e06ef93c |
|
MD5 | 19725d1422105ed1d9ec54fbfa91dde3 |
|
BLAKE2b-256 | cc2edf9d35ec37874fa2fb29a058ad3bf17bd581eb6841e54d5307a0c397a3c4 |