Skip to main content

django-knobs

PyPI - Python Version PyPI Checks

Library for dynamic settings / feature flags that can be changed at runtime without restarting the application from Django admin panel.

pip install django-knobs

Setup

1. Add to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "knobs",
]

2. Run migrations:

python manage.py migrate

3. Define your config values in settings.py:

from knobs import Knob

KNOBS_CONFIG = {
    "MAX_LOGIN_ATTEMPTS": Knob(default=5, help_text="Max failed logins before lockout", category="auth"),
    "FEATURE_NEW_UI":     Knob(default=False, help_text="Enable redesigned UI", category="features"),
    "API_TIMEOUT":        Knob(default=30.0, help_text="Outbound request timeout (seconds)", category="api"),
    "WELCOME_MSG":        Knob(default="Hello!", help_text="Welcome banner text", category="general"),
}

Metadata

Release files for django-knobs 0.0.1

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-knobs 0.0.1
File Size Uploaded
django_knobs-0.0.1.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-knobs 0.0.1
File Interpreter ABI Platform
django_knobs-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / django_knobs-0.0.1.tar.gz

Download URL django_knobs-0.0.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
aada266cbb05cf5e18f3e5856f27f6378f5e2758de84b1cdc6e7110c303293dc
BLAKE2b-256 checksum
How to use checksums
e9587e7c8d3a8e71b1bab19fb61c1a835e4ee235851d34ef1c2d97dea08ee2ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / django_knobs-0.0.1-py3-none-any.whl

Download URL django_knobs-0.0.1-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e193571f91a9ac61c6b41e07eef7ea11b422d2976b22674b097b6de645dd6e1
BLAKE2b-256 checksum
How to use checksums
a35e2b61d43825bd1c33398b6dcc1e4edfe448b05f0721e081095bbb258dca15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.1 This release

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