django-flipt
Flipt Integration for Django and Django REST Framework
Installation
pip install django-flipt
Usage
- Add
fliptintoINSTALLED_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_enabledflag_disabledFlaggedRouter@flag_check@override_flags{% featureflag %} ... {% endfeatureflag %}FeatureFlagListViewflagged_pathflagged_re_path
Development
Requirements
- Docker
Run Project
$ make
Linting/Test Project
$ make lint
$ make test
Credits
- Flipt
- Inspired by django-flags
Metadata
Release files for django-flipt 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-flipt-0.2.4.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_flipt-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / django-flipt-0.2.4.tar.gz
| Download URL | django-flipt-0.2.4.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2a421c57014da3b9ccb6a6f6fe47c239d2e67e786c7ac5fee10c3e6d0570c0c
|
|
BLAKE2b-256 checksum How to use checksums |
711fe750414bcb3dfde0464eec6679fd0ded935265a57c4d10c258e957b11b25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.6.13 Linux/5.4.0-1041-azure
|
Release files / django_flipt-0.2.4-py3-none-any.whl
| Download URL | django_flipt-0.2.4-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7f7479576c5756dbeba9c0196b7a4e948db405335ca772e44985a7befbe4053
|
|
BLAKE2b-256 checksum How to use checksums |
9cbaabebb265c86ed2400808bba944a8a3cc60b3f0f29147e3b3decddc000467
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.6.13 Linux/5.4.0-1041-azure
|