Skip to main content

A lightweight package for parsing environment variables

Project description

EnvKit

PyPI - Version PyPI - Downloads PyPI - Types

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

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.5.0.post4.tar.gz (3.7 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.5.0.post4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file envkit-0.5.0.post4.tar.gz.

File metadata

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

File hashes

Hashes for envkit-0.5.0.post4.tar.gz
Algorithm Hash digest
SHA256 43df4b1583c4ee5d37ce161c560ced8874a934d0092236aee17056c5aa3121fe
MD5 dcc57cd3dd89cf5609f45196a3eefdb3
BLAKE2b-256 81109d21ca18db60e9946282ce6eeca43b4bcf26d659d338536b6eeb4537c25a

See more details on using hashes here.

File details

Details for the file envkit-0.5.0.post4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for envkit-0.5.0.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 8633c4bdc2f3e646359678c47de3a189a279f1f5bb5a12d2850a3d4d0640e901
MD5 e07917d19b35739e9529de9d95c44bed
BLAKE2b-256 ab8727c3e8f39a6ef43e427fbaa4e170543207fb41c5a8ce1dd261da6e0149e2

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