Skip to main content

A lightweight package for parsing environment variables.

Project description

EnvKit

A lightweight package for parsing environment variables.

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)

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.4.0.tar.gz (2.4 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.4.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: envkit-0.4.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.4

File hashes

Hashes for envkit-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f2cf840d253cac577320ba4b4f0467aa7b9b1a5314f64d6581d70becc5f8edbb
MD5 64e3e1b669597abae125591f0cc39460
BLAKE2b-256 7701102c6d50bf895247756f5151eccc163f6412d3aa4ef1ec75904f5a5438f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: envkit-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.4

File hashes

Hashes for envkit-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58ae76788c5fa4bc1075206651677f65321efaef52e95e3e94eeac62d5e9c784
MD5 f5b05c714f93046cf1355eb3cd250b02
BLAKE2b-256 3304e437c7ec7fa7d6378bfb5a69cc201bbdde1c644bed237d6085fe7d8cc550

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