Skip to main content

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

  1. Add flipt into INSTALLED_APPS
INSTALLED_APPS = [
    ...
    'flipt',
]
  1. Define Flipt gRPC endpoint in settings.py
FLIPT_GRPC_HOST = 'flipt:9000'
  1. 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

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.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

django_flipt-0.1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file django-flipt-0.1.1.tar.gz.

File metadata

  • Download URL: django-flipt-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.2.0

File hashes

Hashes for django-flipt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c154d4399d8413f5ba40a53d80fafa8b30e7ce5b0808858a0b3ea62a01ca29f
MD5 c87cbeb1b7ba771bc71a669cc1bae3c7
BLAKE2b-256 263760b8ff6c668af93070ea7bf4c3e77b53226a6c94f21ffadb60733631e519

See more details on using hashes here.

File details

Details for the file django_flipt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_flipt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/20.2.0

File hashes

Hashes for django_flipt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 280d492cdeaea6a08c516d6e78b6cae55f360a777df0efce0b08b03c19c9c8d6
MD5 154ce34934beab151a0349ed17a01a3d
BLAKE2b-256 339e049cea7a218feafe07274e872d534ee3eef001a53666bb5fb478708cc8ce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page