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.1.tar.gz (2.5 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.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: envsafe-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 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.1.tar.gz
Algorithm Hash digest
SHA256 72eda0e4e97ebf510d5fa2f856b3713e10abc85fbd64ac3e819f52b45b2960d5
MD5 bda4e487ea1fab46dceb798475e0cab2
BLAKE2b-256 c871d50d66c9a4e599177d4faa17ee31d11cd4ba5e35566324c6ff2885e4cce1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: envsafe-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff88208046869dec7bc6ed4a0552941ec198022395e196d6d57b33e136d1d0a
MD5 d24c17811b48515e7b225dc81f625b2b
BLAKE2b-256 7aa95ddcd0778ee062dfa92a708a3f47e96f3b2b044e0e674b19af4497b6df1c

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