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

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

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 hashes)

Uploaded Source

Built Distribution

django_flipt-0.2.4-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

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