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
FLAG_OVERRIDDEN = {
'some-flag-key': True
}
Available Classes/Functions
flag_enabled
flag_disabled
FlaggedRouter
@flag_check
@override_flags
{% featureflag %} ... {% endfeatureflag %}
FeatureFlagListView
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.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file django-flipt-0.2.0.tar.gz
.
File metadata
- Download URL: django-flipt-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.6.12 Linux/5.4.0-1039-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91af959bae7723a9d0dc6fcae088ac965731333a5e3fcfff6873db0466554b9e |
|
MD5 | 7d9dfd229deaac3fe020642d3661912f |
|
BLAKE2b-256 | ab1ed3edf87bec94980cdb9f19d2822871069662ffb734ca622050671b14ac5e |
File details
Details for the file django_flipt-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: django_flipt-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.6.12 Linux/5.4.0-1039-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52758c202c4e1d12c8d1b698ccfee4859d7b0818f5fff47e16b11039d1cf952c |
|
MD5 | d374e70f94339a0f962949252f32f070 |
|
BLAKE2b-256 | 27795b5bcacf46bd063bad89c859a0cf2b1c5a6a676c6a406581223c6dd5fd2c |