Django Typed Settings
Type validation for bare django configuration settings system.
Alternative to django-environ and somehow pydantic
Example
# /settings.py
# Default Django way
TIMEOUT = 80 # Hardcoded
TIMEOUT = os.environ.get("TIMEOUT", 80). # Environment, non-type safe
# Django Typed Settings
TIMEOUT = env_key('TIMEOUT', as_type=int, default=80) # Runtime checkable, type safe
Metadata
Release files for django-typed-settings 0.1.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 | |
|---|---|---|---|
| django_typed_settings-0.1.1.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_typed_settings-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / django_typed_settings-0.1.1.tar.gz
| Download URL | django_typed_settings-0.1.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f4a8de8846f96590a453433976b604303b1dd14ab93056ed9ced68d56951be6
|
|
BLAKE2b-256 checksum How to use checksums |
98dbe32d56b206435a2afc7f8e7be353f90ddcc66f40aecf102dc89f2702290b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.7 Darwin/24.1.0
|
Release files / django_typed_settings-0.1.1-py3-none-any.whl
| Download URL | django_typed_settings-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d502a21aae1c2cbff28f54277702d7ba800fc3abbab72a9a53201551cf6bab09
|
|
BLAKE2b-256 checksum How to use checksums |
a6c4d3b1614cc23fb842e1470d98e19ec33d5f3784d0917b56990e6e7c8c19d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.12.7 Darwin/24.1.0
|