A sassy little env var loader
Project description
snap-env
A sassy little env var loader for Python.
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
What for?
Because env vars shouldn’t ghost you.
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
snap_env-0.1.1.tar.gz
(1.7 kB
view details)
File details
Details for the file snap_env-0.1.1.tar.gz.
File metadata
- Download URL: snap_env-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b151e31d58dcfe8d23ec42eb199dfca491dc8d2178a16341ce3d1d9809d23b2d
|
|
| MD5 |
2e84797f230637f3aa307e1770577a4f
|
|
| BLAKE2b-256 |
4429e5e7125745264580f0b1f6ec7bac0d5193f29785637d38f083c5d58be36c
|