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

Uploaded Source

Built Distribution

pygglz-0.0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygglz-0.0.3.tar.gz
  • Upload date:
  • Size: 4.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/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pygglz-0.0.3.tar.gz
Algorithm Hash digest
SHA256 39dd3aac5b0154be04d19bfc31311e10b8231d9ddacf7f8ecb567c5bcbfc2b48
MD5 a06ec35e78826059c2e19686e007ea69
BLAKE2b-256 af1c32b0a649137d3b74814abbfe52d8e47044f378b75629314a46f41ede709c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygglz-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pygglz-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f7bae93163e8741789e2f91b43ceebf14ef8a1eaa0f872c4805b2ad7173e7e9
MD5 ed2fae8e1502f00c956f67c9077cbab6
BLAKE2b-256 70d2e4ff5f9a448222ad1f0ee01a40fd8e7814d33028a658445735117887dd85

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