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.3.tar.gz
(18.1 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eaf1d29bb664de8b91421635269db7dc01348a2a9309099f4030ac4fcc6098c |
|
MD5 | 4a9d39a45fb183f993c52421aed6cf66 |
|
BLAKE2b-256 | 04e299fc1c47645c258cd601ac2aed078b424cb2afebc20af2e54aa680fee7bb |
Close
Hashes for prefab_cloud_python-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 528bcaaeb2bbb0bf9c0f6ff79d9914d81e58f59ecd2fdbbb9f3cd3ee6ac6449f |
|
MD5 | af8048dd840b5ba60d603bed5b314428 |
|
BLAKE2b-256 | bf8e4877c9d722f2c8e5ed33ceaecc1671fd3bc07e104d53ae595cc5f90b1d0e |