floodgate.io python client
Project description
FloodGate SDK for Python
Overview
This is an unofficial Python Client for Floodgate, a feature rollout service which provides a centralised management console for managing remote feature flags.
This code is based on .NET SDK implementation.
Installing
Install the Floodgate Client via pip
pip install floodgateio-python
Usage
Below is a simple example of how you can use the FloodGate Client to check on the status of a flag.
Add floodgateio to your application
import floodgateio
Create a FloodGate Client instance
client = floodgateio.FloodGateClient.initialize_from_key_autoupdate("ENTER-YOUR-API-KEY")
Retrieve your flag value
feature_flag = client.get_value("my-feature-flag", False)
if feature_flag:
# Do something new and amazing here
else:
# Do whatever it is I'm usually doing here
Usage in asyncio mode
To use asyncio version create FloodGateClientAsync instead
client = floodgateio.FloodGateClientAsync.initialize_from_key_autoupdate("ENTER-YOUR-API-KEY")
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
File details
Details for the file floodgateio-python-0.0.11.tar.gz.
File metadata
- Download URL: floodgateio-python-0.0.11.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06e93bd91d38c25faf7ee237c8ebebf7065fc5f38c5172119c7e308ad94e7681
|
|
| MD5 |
b3b64d10f624437e64d0a75ddb513b36
|
|
| BLAKE2b-256 |
ec87d0d3257d2b2393e7e17524a14920852936f1a278508d4f637f04f1f67fb7
|