Skip to main content

A feature toggle library designed after Java togglz

Project description

pygglz Written in Python PyPI Build Status License

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

Installation

pip install pygglz

Usage

Features from local JSON file

from pygglz import features, 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.

Apache License, Version 2.0

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.5.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

pygglz-0.0.5-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pygglz-0.0.5.tar.gz.

File metadata

  • Download URL: pygglz-0.0.5.tar.gz
  • Upload date:
  • Size: 7.3 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

Hashes for pygglz-0.0.5.tar.gz
Algorithm Hash digest
SHA256 fb982bf00f57c630cf6b452aee82d19ee456a26eee0705151b0b2f0adc5c5e94
MD5 d557e2ab355f1871fb20d9134153ed55
BLAKE2b-256 10cce73436809926610455e3cb54bb4d5e1348ee3f3908a9670085b639c3c7eb

See more details on using hashes here.

File details

Details for the file pygglz-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pygglz-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.9 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

Hashes for pygglz-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3b5f12127aeaebc22012a505b7c79e448e80bf497de13134acc41377390f10ce
MD5 f52d07007917f6ee74ac02f41795275a
BLAKE2b-256 96b51daacf054c4dcf9ee4c59f8878c6396f5d6bb1a3ef3ffb699ad41523c286

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page