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.1.2.tar.gz (2.9 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.1.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for envkit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5a073491b88166cb4654633cfb8c2c30422475310a07cfb43f63a99e9ed0f996
MD5 212a533905bf7704e554b7035d47b403
BLAKE2b-256 fd828f161234b80ca20e25b91a71969c2e2d5866bcb735cbb8704456720d313e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for envkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ac17721e97eafd12fe9677cb2884f7ef26d5ad03593f71aa29edd1f9dbb332
MD5 34a826a83989159aa3f7acd6d0354853
BLAKE2b-256 d92c1abc3ab74eb60f9c1d89e3bbaa2de9110e824dab2ac89f8657f18eba159a

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