A Python client for Foggl
Project description
pyfoggl
python developer client for foggl
Foggl Python Client
The Foggl Python Client is a lightweight package that interacts with the Foggl feature toggling tool's API, allowing users to retrieve feature states and values dynamically.
Installation
You can install the Foggl Python Client using pip:
pip install pyfoggl
Usage
Fetching Feature State and Value
The Foggl Python Client provides convenience functions to fetch feature states and values directly without explicit object instantiation.
-
Fetching Feature State:
from pyfoggl import foggl_state auth_token = 'your-auth-token' foggl_name = 'your-feature-name' your_feature_state = foggl_state(auth_token, foggl_name) if your_feature_state: do_something() else: do_something_else()
-
Fetching Feature Value:
from pyfoggl import foggl_value auth_token = 'your-auth-token' foggl_name = 'your-feature-name' your_feature_value = foggl_value(auth_token, foggl_name) do_something(foggl_value)
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
pyfoggl-0.1.2.tar.gz
(2.3 kB
view details)
File details
Details for the file pyfoggl-0.1.2.tar.gz
.
File metadata
- Download URL: pyfoggl-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1126ea51321d9c5bbc028d7f025720bfaf205f73676320da20f30f095c94fd87 |
|
MD5 | ab53c98e7610bdc943196e39f84280fb |
|
BLAKE2b-256 | b560c654e4e970b901a2317761c4bc29edb3ff668c656a276e7fc786691d29bd |