A lightweight package for parsing environment variables.
Project description
EnvKit
A lightweight package for parsing environment variables.
Does not work with mypy yet, but it does work with pyright/basedpyright.
Installation
pip install envkit
Usage
from envkit import Fields
# Required string with minimum length
api_key = Fields.str("API_KEY", min_length=32)
# Optional integer with default and range
port = Fields.int("PORT", default=8080, min_value=1, max_value=65535)
# Boolean with default
debug = Fields.bool("DEBUG", default=False)
# Enum parsing
log_level = Fields.enum("LOG_LEVEL", enum=LogLevel, default=LogLevel.INFO)
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
envkit-0.1.1.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file envkit-0.1.1.tar.gz.
File metadata
- Download URL: envkit-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a0cc561c015c3ea1b17863916d6ba846d9db369aab1aa6b196b701120b69946
|
|
| MD5 |
f3ecae5ad08b47e1c9da901c93ec4e7c
|
|
| BLAKE2b-256 |
38cd864035b79a54d978da74b47aea3fd06abfb2f8e0818a5e624d1a8d963f0e
|
File details
Details for the file envkit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: envkit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78a8235646037b3a4103eb0e9f81e20529370a494ee156809b4064fc2b11315e
|
|
| MD5 |
18d54dd2c5aaf01fc85b5be624589dc8
|
|
| BLAKE2b-256 |
de297414a0325d86ec36b669f50c63f6a936ab2dc3a45afd33a32d1132c1dea3
|