Yet another Django env (yade)
Simple library to set Django settings through environment variables in a way, inspired by ASP.NET Core.
Examples of variables, which will affect settings:
DJANGO__STATIC_URL # Just string variable
DJANGO__REST_FRAMEWORK__PAGE_SIZE # Dict value
DJANGO__AUTH_PASSWORD_VALIDATORS__0__NAME # List value
True/False or ints (0,1,2...) values of env variables will be converted to python type (bool or int).
Json like arrays like [1, 2, 3]are supported too.
Installation
pip install yade
Usage
In settings.py:
from yade import update_settings_from_env
ALLOWED_HOSTS = ['*']
... # Your settings here
update_settings_from_env(locals())
# End of file
Notice: this work only in modules, not in functions!
Metadata
Release files for yade 0.1.3
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 |
|---|---|---|---|---|
| yade-0.1.3.tar.gz | 3.8 kB | Without provenance | Details for yade-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yade-0.1.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for yade-0.1.3-py2.py3-none-any.whl |
Total release size: 6.9 kB
Release files / yade-0.1.3.tar.gz
| Download URL | yade-0.1.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c8e94635647925b6d741b2211b60c118a75ee31cb5d612560f64875685ea4bc
|
|
BLAKE2b-256 checksum How to use checksums |
87eb4876d089491be5d5dcff23492233ea18f953e5eb33f050741337fe997124
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / yade-0.1.3-py2.py3-none-any.whl
| Download URL | yade-0.1.3-py2.py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a461d16abb2d17b5de8d82f48907101fd4947bd72a62e04b2a9a0d4113de48b2
|
|
BLAKE2b-256 checksum How to use checksums |
f3bd8b4004170efcf9eb7483e660a94c72417fba6ed220d708c25a69b09f48b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Security for yade 0.1.3
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.