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.3.tar.gz
(2.9 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.3.tar.gz.
File metadata
- Download URL: envkit-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89623e67f26adde882cf6aba1eed6e78b15e99315f1f6c29c1c33d7a9e3ef6f0
|
|
| MD5 |
0fd2a47e0b51ab18d97d5194b0586593
|
|
| BLAKE2b-256 |
c44bdd1a2e186e352a2b581c9e3dd0eb868cfd60fc77a2e2e1195cac34a8c3f5
|
File details
Details for the file envkit-0.1.3-py3-none-any.whl.
File metadata
- Download URL: envkit-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e061429314dcca78612d6eaf68c174e1197df7e33f87eabee66e762b3910c2
|
|
| MD5 |
fda6b825358b38f3f77b0dfcb1d68e92
|
|
| BLAKE2b-256 |
8c70c5217910b6ce6e4f420b2fac2b549e60f311508f90db86586523a055710f
|