Skip to main content

Damn Simple Environ Vars

Project description

dsenv

Python PyPI - Python Version PyPI Downloads PyPI Version GitHub Stars License

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=VALUE
  • export KEY=VALUE
  • KEY="VALUE" or KEY='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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dsenv-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for dsenv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7a31bbe867575940c497d6a92a36ee1f628ee83f1215601d452c07657d533ee
MD5 8d1346fff2f766fe46ae9f37e4013423
BLAKE2b-256 e07e9f1f4609fee95821e44ee30324fcd0e15a019c7ee32df6411382b9e16c2f

See more details on using hashes here.

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

Hashes for dsenv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10230e36650d5eddb6b39768e850ee1a859a3ae9892d57e2633755f60ee9e384
MD5 cf2c642ac5e04749adc737550ea998f4
BLAKE2b-256 fd28fad121bc24a6e392ccabe13e9a8a1f6386ea587626f0cf8f8a3d3bb847ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page