django-loader
django-loader: a configuration variable and secrets loader for Django apps.
What is django-loader?
django-loader is a configuration variable and secrets loader for Django apps. It loads a dictionary of configuration variables into settings.py that consists of default values, values from a secrets file (defaults to .env), and from environment variables. It can load configuration files in TOML, JSON, YAML, and BespON formats and dump in any format, including as environment variables (Bourne shell).
See the environment variable format specification for more details about passing environment variables.
Installation
Install django-loader with:
pip install django-loader
or:
poetry add django-loader
Usage
>>> import loader
>>> secrets = loader.load_secrets(**{"SECRET_KEY": ""})
>>> SECRET_KEY = secrets["SECRET_KEY"]
See the source and documentation for more information.
Copyright and License
SPDX-License-Identifier: MIT
django-loader: a configuration variable and secrets loader for Django apps.
Copyright (C) 2021-2024 Jeremy A Gray.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Metadata
Release files for django-loader 0.0.14
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_loader-0.0.14.tar.gz | 8.3 kB | Without provenance | Details for django_loader-0.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_loader-0.0.14-py3-none-any.whl | Python 3 | none | any | Details for django_loader-0.0.14-py3-none-any.whl |
Total release size: 20.4 kB
Release files / django_loader-0.0.14.tar.gz
| Download URL | django_loader-0.0.14.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4426f8689d27ea9dc9ed2de72b9b24f3372dcee4072bd0f78616b9baa9f9a3c9
|
|
BLAKE2b-256 checksum How to use checksums |
1ce504998eaed2e97a5e91633c238ef53bc5aa53bf14a1b96fc8291b1d242eb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / django_loader-0.0.14-py3-none-any.whl
| Download URL | django_loader-0.0.14-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b74fada2cb889831427d4eacaaf94bcc51373450cf41ce0b708deedc3ddc79e
|
|
BLAKE2b-256 checksum How to use checksums |
1be696b4ae6681003996636d3d51d72d1904eed9a8e20d70ef51d5914412601d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Security for django-loader 0.0.14
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.