Type validation for bare django configuration settings system
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_typed_settings-0.1.0.tar.gz.
File metadata
- Download URL: django_typed_settings-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.7 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7dc2f1c09103269c3cf32f4d8b3fb1d56d7af255db273de66163432fb981ef2
|
|
| MD5 |
f942dc1b7f479527e1f35bf9ebf9b8a0
|
|
| BLAKE2b-256 |
299c33b925afe5fd58fc07c7c7982fdceef43c9274a8c84b9ed16001e8cac211
|
File details
Details for the file django_typed_settings-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_typed_settings-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.7 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ed1dfd58eea2354bb256ebf409ece7cc7b7758013bc2cc35ac404246c98b724
|
|
| MD5 |
98732918ae516a91f2004e3da4d7c1e8
|
|
| BLAKE2b-256 |
c9fbff1adcb0314b6dd454df528bc9a31adc9ca0a415c5cd9414d64cd4c9a7f4
|