A lightweight, strongly-typed environment variable parser focused on explicit configuration and predictable behavior, inspired by environs.
Project description
EnvKit
A lightweight, strongly‑typed environment variable parser focused on explicit configuration and predictable behavior, inspired by environs.
This project is in an early development stage. Expect breaking changes and incomplete features.
Installation
pip install envkit
Usage
from envkit import Env
# Required string with minimum length
api_key = Env.str("API_KEY", min_length=32)
# Optional integer with default and range
port = Env.int("PORT", required=False, default=8080, min_value=1, max_value=65535)
# Boolean with default
debug = Env.bool("DEBUG", required=False, default=False)
# Enum parsing
log_level = Env.enum("LOG_LEVEL", enum=LogLevel, required=False, default=LogLevel.INFO)
Contributing
Contributions are welcome! Whether you want to report an issue, suggest an improvement, or submit a pull request, your help is appreciated.
If you're new to open source, feel free to participate as well — the project is open to contributors of all experience levels.
- Open an issue for bugs, ideas, or questions
- Submit a pull request with changes or enhancements
- Documentation and test improvements are also valuable
Everyone is welcome to contribute.
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
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.7.0.post1.tar.gz.
File metadata
- Download URL: envkit-0.7.0.post1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e737c5c234d13f24cd1253479918e36ab5fc84b805193b197e818b5cd3d7637
|
|
| MD5 |
9bbcc42154a5a19dc221d343bb65efce
|
|
| BLAKE2b-256 |
1c4f551273d08c2e24693dc7d061d1208a7d70657b12be6fd2ea063e74b47968
|
File details
Details for the file envkit-0.7.0.post1-py3-none-any.whl.
File metadata
- Download URL: envkit-0.7.0.post1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d109ddb99af0ebe5ab839b773439bce3528e103e35e5f29350f99252902f3e20
|
|
| MD5 |
859b8d0dd74044107e0fb9f52d5b0cda
|
|
| BLAKE2b-256 |
1a845a187f98b54d9f7f1347bfe28594cf11669068dd7bf28391db3559e1e47e
|