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.0.tar.gz
(17.9 kB
view hashes)
Built Distribution
Close
Hashes for prefab_cloud_python-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 550c7b825e0e9661ac5c1fe41fc74cb43df49069a155f68401c7d91ce28f32ba |
|
MD5 | f6060befa1f7690a4296f53a6d0259d8 |
|
BLAKE2b-256 | 87170ef54aace9e63a8832617d4dedbe2573cc6e00e7009a21444be8944a72f4 |
Close
Hashes for prefab_cloud_python-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f23d85063ac718800f5b619b7689aa91b2898923b0afaa82a8ffd79dd26dac49 |
|
MD5 | 098ca200f57107b98e5a30e57c364be5 |
|
BLAKE2b-256 | f25313569e222caeccbf76781e7fb116ef11667c56c8a9251324094427614364 |