Skip to main content

A lightweight package for parsing environment variables

Project description

EnvKit

PyPI - Version PyPI - Downloads PyPI - Types

A lightweight package for parsing environment variables.

Installation

pip install envkit

Usage

from envkit import Env

# Required string with minimum length
api_key = Env.str("API_KEY", min_length=32)

# Optional integer with default and range
port = Env.int("PORT", default=8080, min_value=1, max_value=65535)

# Boolean with default
debug = Env.bool("DEBUG", default=False)

# Enum parsing
log_level = Env.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.5.0.post3.tar.gz (3.5 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.5.0.post3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file envkit-0.5.0.post3.tar.gz.

File metadata

  • Download URL: envkit-0.5.0.post3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for envkit-0.5.0.post3.tar.gz
Algorithm Hash digest
SHA256 07743a6ea965f62661b5773b5d4d6d2988edc6afce1755abd6cf80e5cd01e483
MD5 e109b57b5f9de513555285410c23f981
BLAKE2b-256 f142048cb5153a536080381b3572f8093a810518dc87e5a8b63af17d84a6f9c7

See more details on using hashes here.

File details

Details for the file envkit-0.5.0.post3-py3-none-any.whl.

File metadata

  • Download URL: envkit-0.5.0.post3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for envkit-0.5.0.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6ad935765ec11fba7217faaacf0cf8e6d04659c8d0a99c562f1392cffffdf2
MD5 229513fc2240cc66976ab5f7cd700697
BLAKE2b-256 1b3fc6e1c4c9beba08668900a891f6f020161e9642f1c8bd06f0f5609f38fa98

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