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
Sign up to be notified about updates
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/sdks/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.7.0.tar.gz
(22.0 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be2d3610a96713a350006e4d05e4875df5a45262e60cf22c3c7d67d48391a701 |
|
MD5 | 9587b2e71442382f9a7b5658483761b0 |
|
BLAKE2b-256 | 8557a5541d4dd8c411f36d704252f0bc10b623406bb734c4d634b83577e9638c |
Close
Hashes for prefab_cloud_python-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5afcef9dec1209435360bc715ab255264fa644b7c7690b6dcc9f59109f20e7 |
|
MD5 | 8e2230c05e9ea308022866b3fb66a52b |
|
BLAKE2b-256 | 36d4aed4069443d191d375007f1b8ba1b6dd61b45ee2eb1d01888eaee9e3a9fe |