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)
Metadata
Release files for pyfoggl 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyfoggl-0.1.2.tar.gz | 2.3 kB | Details |
Release files / pyfoggl-0.1.2.tar.gz
| Download URL | pyfoggl-0.1.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1126ea51321d9c5bbc028d7f025720bfaf205f73676320da20f30f095c94fd87
|
|
BLAKE2b-256 checksum How to use checksums |
b560c654e4e970b901a2317761c4bc29edb3ff668c656a276e7fc786691d29bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|