Skip to main content

Type-safe environment variables with automatic .env loading

Project description

Envsafe

Python package for type-safe environment variables — no boilerplate, no surprises. A tiny Python package for type-safe environment variables with automatic .env loading.

Install

pip install envsafe

Usage

from envsafe import env

API_KEY = env.str("API_KEY")
DEBUG   = env.bool("DEBUG", default=False)
PORT    = env.int("PORT", default=8000)
ALLOWED = env.list("ALLOWED_HOSTS")
CONFIG  = env.json("CONFIG")

Why envsafe?

  • No os.getenv boilerplate
  • .env auto-loaded
  • Clean errors
  • Zero configuration

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

envsafe-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

envsafe-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file envsafe-0.1.0.tar.gz.

File metadata

  • Download URL: envsafe-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Windows/11

File hashes

Hashes for envsafe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3bad262cefd7901c6dde7e50072456e83df6612025ef506f1132fdf125e029e
MD5 5a4a70231433fef22ade0395b4e39a9a
BLAKE2b-256 0d057ba58230b6bb783071c3fabdf4db4e97916ef84a096dd70649df9926cdf7

See more details on using hashes here.

File details

Details for the file envsafe-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: envsafe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Windows/11

File hashes

Hashes for envsafe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fb899b35b66ec9eab0eaa6ee58774e3a260e472e3856bd83b211095e789ce08
MD5 ea8c5ca8513c832a421a8d8490121ca2
BLAKE2b-256 cf2068ad487121cb5873756880ab5139bd21e496f68443ffce616e003aa2b437

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