Skip to main content

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

Metadata

Release files for pygglz 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygglz 0.0.7
File Size Uploaded
pygglz-0.0.7.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygglz 0.0.7
File Interpreter ABI Platform
pygglz-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / pygglz-0.0.7.tar.gz

Download URL pygglz-0.0.7.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4b1628b5b2e72c1236bce96c42e661c19a53d976d4e3aaa01afa55a0d7cdacf1
BLAKE2b-256 checksum
How to use checksums
674f2aac5bbacee6d46e1205c1b3a214d77a06e34b1779d29911b57336a12fc7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pygglz-0.0.7-py3-none-any.whl

Download URL pygglz-0.0.7-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a2e9170acf7a3581eeaf71e7fdd51aae1720e84d00dae9908009a459bf46f57
BLAKE2b-256 checksum
How to use checksums
83d8344d9e56103a1389780e3995569905fc82f8f61f1ec59c0f2fe6d630728e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page