smartenv
Simple environment variable management for Python applications.
Features
- Automatically load values from a
.envfile - Validate required environment variables
- Support default values
- Return typed values for
int,bool, andlist - Raise clear, colorful errors
Quick start
from smartenv import Env
env = Env()
DATABASE_URL = env.require("DATABASE_URL")
DEBUG = env.bool("DEBUG", default=False)
PORT = env.int("PORT", default=8000)
Installation
pip install smartenv-py
Metadata
Release files for smartenv-py 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smartenv_py-0.1.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smartenv_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / smartenv_py-0.1.0.tar.gz
| Download URL | smartenv_py-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c573b9aba40b575405b9819d9f99b07dafa32217cc9505b451b6c663a1a2717
|
|
BLAKE2b-256 checksum How to use checksums |
a31ec9dbbdf78e009ef5b4712099a8b78fc4db27b5a2eb905ea667e94553bdae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / smartenv_py-0.1.0-py3-none-any.whl
| Download URL | smartenv_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb239e46f496bf4f2439e461096a7187a18ec7757a9b6ca2acdad325dffa9afa
|
|
BLAKE2b-256 checksum How to use checksums |
03fdf5ce6590906b75174c03da353d86951b2e9a6adc9d89e9a771c7af33e18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|