Skip to main content

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

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)

Source distribution for django-flipt 0.2.4
File Size Uploaded
django-flipt-0.2.4.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-flipt 0.2.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page