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.0.tar.gz
(19.5 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4962d0afe88b0a0a92d7cc9cb9fa6f642b47f5947f4d427c0dedc5dd455c1402 |
|
MD5 | 48ef1cbedd5f191a5a85e4a49bee7901 |
|
BLAKE2b-256 | d87736e8eacab4ecb1c0377fa9f4547c30259b27ad9f78cac03ebd5a58e52c5b |
Close
Hashes for prefab_cloud_python-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36027f0f055454b74e87211e5bdb73f6f7e7dd7dbf68f5679e032c04d090a333 |
|
MD5 | 6cc210bd836906283e205a00f4878ee0 |
|
BLAKE2b-256 | 6b62c6dae537990429446eef7439a87389ca6c0a78c354a24d134672948d9b1e |