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.8.0.tar.gz
(23.2 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.8.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e56fa9d2a9bd798c0966fbbbf7964db7cd74c9b0d7eab8dace3a4d5e49faf2c8 |
|
MD5 | 51232642f3420b672a0b6173107e63ee |
|
BLAKE2b-256 | e1430d60ae7df21c5cad829f705f7b029322e2ead02ee7f8986c93804230048d |
Close
Hashes for prefab_cloud_python-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6dbb4e4141a8f43be724e2d01b41901790bdd879e8b0ab981305c860dad5457 |
|
MD5 | ed53efb117ea721a39972f3f35139d9b |
|
BLAKE2b-256 | 1c32ac17bf68f47f7794fb3956755764b47315463acd6f680cbce0a2df00e0c8 |