Skip to main content

A feature toggle library designed after Java togglz

Project description

pygglz Written in Python PyPI Build Status codecov 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
  • 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.

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

Uploaded Source

Built Distribution

pygglz-0.0.6-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygglz-0.0.6.tar.gz
  • Upload date:
  • Size: 8.5 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.6.tar.gz
Algorithm Hash digest
SHA256 69a9c2505350d6e1fe1111e6058c6bbee5a0f79ed6421c1c1fe5cfe136eda00f
MD5 738ff9efd818c7ab99b4eeef0cbf8446
BLAKE2b-256 4c6d1e2aca7592a76bc333ea7ace9f253b658267297089f545637724125ac8a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygglz-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d2ce7deb6bd822a03323b37f14984ae9215d598a4b5e89c854879d13142b8110
MD5 407d3c84c0910519fdf36568ddd4c513
BLAKE2b-256 1b81d2af65d890fab4fbc50d43ce980ff256cf689c27d085bd2c4dc156da0ccd

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