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

Credits

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

Uploaded Source

Built Distribution

django_flipt-0.2.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-flipt-0.2.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.6.13 Linux/5.4.0-1040-azure

File hashes

Hashes for django-flipt-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e1bba505adaec8a60548b8ab22bae8b57d47a5eec5f373cbf230a2936723f9b6
MD5 cc473ab71913e27c52f230739cb86852
BLAKE2b-256 10bebb83342643c5906b6aec35b9827f56c3a7d07f67c5134fc7722043204343

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_flipt-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.6.13 Linux/5.4.0-1040-azure

File hashes

Hashes for django_flipt-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6681a6ddb8430acac0a36b1860d7a1d8602f81e0e58869a5a88e6f0dd87609d9
MD5 7c54c9da87aacc05920a66290331a1f8
BLAKE2b-256 2f9dc5d828d481ba051faab7db8b1adb43fdf59f186bff929cd62fa2012adb17

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