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.9.0.tar.gz
(24.0 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.9.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41554a693db8f5fe5d0b92be1c26509ff26d1cb0a758fb8c0db4eeb3e70ee69f |
|
MD5 | b85b51eaab9baf74ef6249a44a380aa2 |
|
BLAKE2b-256 | 3c361ca90fd71ed8abaeffa89ea0dd86d11690c59915d5230b03ab43c4b47d51 |
Close
Hashes for prefab_cloud_python-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b723072ae9aa900add266906bb4dc1ca0adf9f6d876415d0efa6edfbec1c6c8 |
|
MD5 | 5410af401f25508cac1e459100580385 |
|
BLAKE2b-256 | b83da2bcd7e99567d8ed8d9c53c20b8a70e924f34b82c8d10814f3fbfc008859 |