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.4.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.4.tar.gz.
File metadata
- Download URL: envkit-0.1.4.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 |
895ca14218244fc55afc83ede7336810076acb2d5933e6076bc2c2e790364522
|
|
| MD5 |
60a5832f2fc43f6a395fbf5be82de2ce
|
|
| BLAKE2b-256 |
666c45fb0a9d05758ac821fa9679981e25db98543e60d10edb36545aa53408ba
|
File details
Details for the file envkit-0.1.4-py3-none-any.whl.
File metadata
- Download URL: envkit-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39cb90a369f05606c16db4d4de08183f05a2a641119b064ad36d5923d0081be7
|
|
| MD5 |
1b374a2df00a8539c361aa79fcdf3a96
|
|
| BLAKE2b-256 |
af0cd0b60d4a87276bdcfa4a6e3074e913ed1b19e98f87c88ee375164aad901e
|