Skip to main content

A lightweight, strongly-typed environment variable parser focused on explicit configuration and predictable behavior, inspired by environs.

Project description

EnvKit

PyPI - Version PyPI - Downloads pipeline status coverage report

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


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.7.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envkit-0.7.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file envkit-0.7.0.tar.gz.

File metadata

  • Download URL: envkit-0.7.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for envkit-0.7.0.tar.gz
Algorithm Hash digest
SHA256 f7ead84709afa1edc4d9f44c6071aecb712a6050937d761a495a6b3c75a6dff9
MD5 d91901923a19d5bd0c3651eed9bd611d
BLAKE2b-256 e1e2b834d6ab23e900c05a1b60463d32ebdfa15843620dc9dca7ed9e70421c17

See more details on using hashes here.

File details

Details for the file envkit-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: envkit-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.2","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for envkit-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b81a49bffa1a0aebed55f1ce42b0df3df555e2e506b18b9d82234e5ad2e3ec84
MD5 58dba868c42dac42a9a92ad95df09d18
BLAKE2b-256 7ff99708fdb996e9864d790e79f4387e1c05f7a05b96658e5ca9ee677c05b88e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page