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

Uploaded Source

Built Distribution

pygglz-0.0.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygglz-0.0.4.tar.gz
  • Upload date:
  • Size: 5.0 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.4.tar.gz
Algorithm Hash digest
SHA256 90b9c20755e6a14b43a4311d0e589d0704d421b7d6f031d7566631bd00f9c6e0
MD5 a85e927635a514d98701a97e14642aa9
BLAKE2b-256 8b3934eeac9b397a9d0170416c54e78cb2be9a9e5ddc147d44680757de6aee29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygglz-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cca291b47ee0ec36e8f3e94d147e26d51f6d463b97cf5a80458638d4ccb39cc9
MD5 4b91db186625b6bdbf8a66f94f8dcce5
BLAKE2b-256 90428183822c8454ce2b9584dafa34437a9cb51f6f4771fc91af3664433148c5

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