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.3.1.tar.gz (3.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.3.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for envkit-0.3.1.tar.gz
Algorithm Hash digest
SHA256 32df2ae90e5ecaaa49543af00affed3a000b61dc179176c30ca611b134dbf289
MD5 c71c901f255970494c5073565979e6ac
BLAKE2b-256 18e3a58d771537970815cbe5d319d02380b0af223fc2658b95edac5aef3bccca

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for envkit-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 28d0fffcda18cbf679949d5d53f95cbcc80d7c697235ba4136c175eeceb513be
MD5 d95d8ae007f402d5c4f9174bdbdee80a
BLAKE2b-256 6875a4f276b89ea28a981dbc979ac24327f713d6d09202daf63bed0728ac7847

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