A feature toggle library designed after Java togglz
Project description
pygglz
A feature toggle library designed after Java togglz
Features
- Global and thread local feature contexts
- Feature state snapshots
Storages for feature state
- File storage (json)
- DynamoDB table
- HTTP service
Installation
pip install pygglz
Usage
Features from local JSON file
from pygglz import features
from pygglz.file import FileRepository
...
pygglz.configure(state_repository=FileRepository("/home/app/.features.json"))
...
if features["ONE_CLICK_CHECKOUT"]:
...
Features from DynamoDB table "features"
from pygglz import features
from pygglz.dynamodb import DynamodbRepository
...
pygglz.configure(state_repository=DynamodbRepository())
...
if features["ONE_CLICK_CHECKOUT"]:
...
License
Copyright (c) 2020 by Cornelius Buschka.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygglz-0.0.7.tar.gz
(9.4 kB
view details)
Built Distribution
pygglz-0.0.7-py3-none-any.whl
(15.6 kB
view details)
File details
Details for the file pygglz-0.0.7.tar.gz
.
File metadata
- Download URL: pygglz-0.0.7.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b1628b5b2e72c1236bce96c42e661c19a53d976d4e3aaa01afa55a0d7cdacf1 |
|
MD5 | b1754416eda894a203771f64a85883c0 |
|
BLAKE2b-256 | 674f2aac5bbacee6d46e1205c1b3a214d77a06e34b1779d29911b57336a12fc7 |
File details
Details for the file pygglz-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: pygglz-0.0.7-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a2e9170acf7a3581eeaf71e7fdd51aae1720e84d00dae9908009a459bf46f57 |
|
MD5 | e91cce178e32f3111fe23dbf0c599b13 |
|
BLAKE2b-256 | 83d8344d9e56103a1389780e3995569905fc82f8f61f1ec59c0f2fe6d630728e |