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.0.tar.gz (3.0 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.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for envkit-0.3.0.tar.gz
Algorithm Hash digest
SHA256 816921ba0fab940966942e7bf9292e557b75e99672be27d329c930894295d273
MD5 a920c4b89ea52265def36c95cca550b6
BLAKE2b-256 f8e28881e54fb74c7ae4beb9b8493a217574e6ec535b7418e79265d674649e27

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for envkit-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39989a34b9b883bb60754c0cdd3d5a927cb7a97f1a0f965048672cab987603a5
MD5 671e31d4a0709fd9451b117de00c98ec
BLAKE2b-256 9dce46ad25da946db72c6063e662a0f3ad0837c2208b8df217066e532fa07310

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