Skip to main content

A sassy little env var loader

Project description

snap-env

A sassy little env var loader for Python.

What for?

Because env vars shouldn’t ghost you.

Install

pip install snap-env

Use

import snap_env

snap_env.load()  # Loads .env file
api_key = snap_env.get("API_KEY")  # "secret123" or bust
port = snap_env.get("PORT", 5000)  # Fallback to 5000 if unset

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

snap_env-0.1.2.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file snap_env-0.1.2.tar.gz.

File metadata

  • Download URL: snap_env-0.1.2.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for snap_env-0.1.2.tar.gz
Algorithm Hash digest
SHA256 90fa4d299066680a5fa46cadf60c3c590ed2569e6a59a46131871dbe5832c9c8
MD5 bfded07f788af574d7a423800388cdd8
BLAKE2b-256 14e1726d0b75bde0232fe8ccab1a690c92c3154801ef0c3ee6240c6f1075190d

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