Feature flags for python.
Python Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
contrib
doc
example
src/flagon
test
.gitignore
.travis.yml
AUTHORS
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
MANIFEST.in
Makefile
README.md
VERSION
requirements.txt
setup.cfg
setup.py
setup.py.in
test-requirements.txt

README.md

flagon

Build Status

Generic feature flags for python which attempts to be compatible with Java's Togglz (http://www.togglz.org/).

Ideas

  • Pluggable configuration backends
  • Support for default fallback calls
  • Logging support

Example

Status API

a simple flag status api is provided under flagon.status_api. Example wsgi file can be found in contrib/wsgi. The status api requires werkzeug.

The request endpoint is /v0/FLAG_NAME.

The response syntax is JSON format with two keys with bools: active, known.

  • active is if the flag is on or not.
  • known is noting if the flag exists.