Damn Simple Environ Vars
Project description
dsenv
Damn Simple Environment Variables loader.
Install
pip install dsenv
Usage
from dsenv import load_env
# Load from ~/.env
load_env()
# Load from a custom path
load_env("./.env", override=False)
Supported .env Syntax
KEY=VALUEexport KEY=VALUEKEY="VALUE"orKEY='VALUE'- Comments with
#on empty lines or after unquoted values
Tests
pytest
Or use tox (if you have multiple Python versions installed):
tox
License
BSD-3
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
dsenv-0.1.0.tar.gz
(3.4 kB
view details)
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
dsenv-0.1.0-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file dsenv-0.1.0.tar.gz.
File metadata
- Download URL: dsenv-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7a31bbe867575940c497d6a92a36ee1f628ee83f1215601d452c07657d533ee
|
|
| MD5 |
8d1346fff2f766fe46ae9f37e4013423
|
|
| BLAKE2b-256 |
e07e9f1f4609fee95821e44ee30324fcd0e15a019c7ee32df6411382b9e16c2f
|
File details
Details for the file dsenv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dsenv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10230e36650d5eddb6b39768e850ee1a859a3ae9892d57e2633755f60ee9e384
|
|
| MD5 |
cf2c642ac5e04749adc737550ea998f4
|
|
| BLAKE2b-256 |
fd28fad121bc24a6e392ccabe13e9a8a1f6386ea587626f0cf8f8a3d3bb847ab
|