Skip to main content

django-loader: a configuration variable and secrets loader for Django apps.

PyPI Version Documentation Status

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.

Author

Jeremy A Gray

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)

Source distribution for django-loader 0.0.14
File Size Uploaded
django_loader-0.0.14.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-loader 0.0.14
File Interpreter ABI Platform
django_loader-0.0.14-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page