https://github.com/ashcrow/flagon
Feature flags for python.
https://github.com/ashcrow/flagon
Last synced: 11 months ago
JSON representation
Feature flags for python.
- Host: GitHub
- URL: https://github.com/ashcrow/flagon
- Owner: ashcrow
- License: mit
- Created: 2014-01-26T19:42:01.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-22T19:40:03.000Z (about 9 years ago)
- Last Synced: 2025-06-26T00:40:01.809Z (12 months ago)
- Language: Python
- Size: 89.8 KB
- Stars: 18
- Watchers: 2
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
flagon
======
[](https://travis-ci.org/ashcrow/flagon/)
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
-------
* Code: https://github.com/ashcrow/flagon/blob/master/example/example.py
* Config: https://github.com/ashcrow/flagon/blob/master/example/config.json
* Results: https://github.com/ashcrow/flagon/blob/master/example/results.txt
* Django Example: https://github.com/ashcrow/flagon/tree/master/example/djproject
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](http://werkzeug.pocoo.org).
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.