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.4.0.tar.gz
(19.0 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b23dbd5b7c2cc38fff0db282565feba1495172b297b7cf04d547f6f2d76b59 |
|
MD5 | 3de78c1bc00dc7ab5cf39888f6289638 |
|
BLAKE2b-256 | d5c2f4834d800425209b2418b8ade16d3cfbe2ca81ab58129083b0e81a43a42c |
Close
Hashes for prefab_cloud_python-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 926bd6ec98ca2d6a96b56b32f4577a43c94647d719167ef5417d3b8edf2018e3 |
|
MD5 | 85105b12c8875d258a6dd280d4025b3a |
|
BLAKE2b-256 | 6b281cf2e46cc9ba4aa732bcca61dd04b3846e873998f037cc87eb1dc5a7e25f |