Flipt Integration for Django and Django REST Framework
Project description
django-flipt
Flipt Integration for Django and Django REST Framework
Installation
pip install django-flipt
Usage
- Add
flipt
intoINSTALLED_APPS
INSTALLED_APPS = [
...
'flipt',
]
- Define Flipt gRPC endpoint in
settings.py
FLIPT_GRPC_HOST = 'flipt:9000'
- Ready to go!
Overriding Flags
You can override any flag by defining your flag key and overriding value
FLIPT_FLAG_OVERRIDDEN = {
'some-flag-key': True
}
Available Classes/Functions
flag_enabled
flag_disabled
FlaggedRouter
@flag_check
@override_flags
{% featureflag %} ... {% endfeatureflag %}
FeatureFlagListView
flagged_path
flagged_re_path
Development
Requirements
- Docker
Run Project
$ make
Linting/Test Project
$ make lint
$ make test
Credits
- Flipt
- Inspired by django-flags
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
django-flipt-0.2.4.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file django-flipt-0.2.4.tar.gz
.
File metadata
- Download URL: django-flipt-0.2.4.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.6.13 Linux/5.4.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2a421c57014da3b9ccb6a6f6fe47c239d2e67e786c7ac5fee10c3e6d0570c0c |
|
MD5 | 5878b1566548166f0d22ab6a1aa0663e |
|
BLAKE2b-256 | 711fe750414bcb3dfde0464eec6679fd0ded935265a57c4d10c258e957b11b25 |
File details
Details for the file django_flipt-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: django_flipt-0.2.4-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.6.13 Linux/5.4.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f7479576c5756dbeba9c0196b7a4e948db405335ca772e44985a7befbe4053 |
|
MD5 | 9357ac7566e629c1049855808244b55f |
|
BLAKE2b-256 | 9cbaabebb265c86ed2400808bba944a8a3cc60b3f0f29147e3b3decddc000467 |