Skip to main content

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


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.2.0.tar.gz (2.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.2.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for envkit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5f5ecc198825ebf36dd7f0d9178d5191bfbcd6a7404f2f2b6271c17f10f9d7a9
MD5 b32799a37e127eb98d02b3347dbdb98a
BLAKE2b-256 8d488cf27f770139a08f3bf0730edd220ebbaeadc5fb83f304076fd92e6a68c3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for envkit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df28db2496c391af8bb5d1771ff639d495d43d51c2fece1e19cc20a03397a97d
MD5 7f32cb261fedcbea824e9e6e468de7dc
BLAKE2b-256 d04aceeefacdeac100b8f360b02c6d1f5ff3ff95d968a9aeeaea30fff2d50f5e

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