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.2.tar.gz
(18.1 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.3.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc68ad2dc76a01087c0363ece0b1026d367755005278869dd50eb2b6c0353e88 |
|
MD5 | a3f96ed4554df99aafd322f371b86b0b |
|
BLAKE2b-256 | c6ea47ba118603fe043d9fcac315da1855d2ffd6470a1d58d01b02f28a03b4ab |
Close
Hashes for prefab_cloud_python-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d65c554b10e8bb919478aa9eae7864f89c652e452550f1006abda7000fb4b5 |
|
MD5 | 0a6bc56b2ae14fcf97299029dcb6cdaa |
|
BLAKE2b-256 | 2facd8b03f9e29155a249b5d772839c391ad22cc2a5e758d8960d7248f1400af |