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.3.1.tar.gz
(18.1 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 666bcd503a36b246c6c11ad3cb0725d72d08d614b0ee93e66b019260060a3fc9 |
|
MD5 | 64b9a1574956db6a00e707ef3c97b5fb |
|
BLAKE2b-256 | cee54db890b681d8ce26c546e5f3f4c03039f9971bc290247cc7206d8e49110b |
Close
Hashes for prefab_cloud_python-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9557cda556887b43a5b75a5b2b7884e029957c26728c2bf41f7e4d7581823fbb |
|
MD5 | d36d9d06fcafc81af9930b47b6b8f847 |
|
BLAKE2b-256 | b30a8370a66ff5c6ebf75585f14a98f33016aeea9ec317e198568a1bbc40d040 |