load-dotenv
Environment variables are a great and popular way to configure your application. Although the number of such variables can be really high in a big application, making it annoying to manage during development.
Common solution for this issue is usage of .env files which contain all variables
that should be loaded into your development environment. There are different ways
to do this, for example handy python-dotenv
package. But it should be executed explicitly in order to work. In my projects
I don't want to add load_dotenv() execution in my code that is running on
production, and I'm too lazy to create customer runners for development only.
Thus, I made load-dotenv that can do this for me automatically.
Installation
pip install load-dotenv
Usage
Create .env file in your working directory and put your variables there.
For details about file format, please refer
python-dotenv documentation.
Run your application with LOAD_DOTENV variable set to one of true, yes or 1.
Alternative path to the file can be specified via LOAD_DOTENV_PATH variable.
Metadata
Release files for load-dotenv 0.1.0
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 | |
|---|---|---|---|---|
| load-dotenv-0.1.0.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| load_dotenv-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / load-dotenv-0.1.0.tar.gz
| Download URL | load-dotenv-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbe5f40072d4a61eadca66de6c222df5a2d935d6d41b703be1ff75396f635145
|
|
BLAKE2b-256 checksum How to use checksums |
d795055d123dde74bd54b99b27a3c2d8c6e218f544e0bd437480f61ccf85a07f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / load_dotenv-0.1.0-py3-none-any.whl
| Download URL | load_dotenv-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
614803f720153fb8a5f97124a72aaa3930a67aa5547cbe8603d01ea7f9ac1adf
|
|
BLAKE2b-256 checksum How to use checksums |
142e268a528dfa1f76999435634b0453fdd917ea878a818a6d5981632f7acffb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for load-dotenv 0.1.0
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.