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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-flipt-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f35b84e8256115961135ae9ac51a8cd3d69c9f96c8ff68763f084291aeff92ce
MD5 81adf90a27faad040bdf37eda6d38c2c
BLAKE2b-256 9b4cb0fa3581898cb6e39c237c5a5c3862d78d2eda89c5b1fddad52a0cb7dffb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_flipt-0.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5cdba79e5e38e3c7199600a59eb6e9cdf81b09131bac33d43b0e5119425a81dc
MD5 16f4a046bcf200ead1a96fd335033082
BLAKE2b-256 608b6b69f0887fefe3264628d7a21d3a6fb13718708be1ec4f1d82c0b360b519

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