django-knobs
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_knobs-0.0.1.tar.gz | 8.7 kB | Without provenance | Details for django_knobs-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_knobs-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for django_knobs-0.0.1-py3-none-any.whl |
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}
|
Security for django-knobs 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.