Skip to main content

Simple environment variable manager

Project description

smartenv

Simple environment variable management for Python applications.

Features

  • Automatically load values from a .env file
  • Validate required environment variables
  • Support default values
  • Return typed values for int, bool, and list
  • Raise clear, colorful errors

Quick start

from smartenv import Env

env = Env()

DATABASE_URL = env.require("DATABASE_URL")
DEBUG = env.bool("DEBUG", default=False)
PORT = env.int("PORT", default=8000)

Installation

pip install smartenv-py

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

smartenv_py-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartenv_py-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file smartenv_py-0.1.0.tar.gz.

File metadata

  • Download URL: smartenv_py-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for smartenv_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6c573b9aba40b575405b9819d9f99b07dafa32217cc9505b451b6c663a1a2717
MD5 a479ab98e32fa87dda429694788393e2
BLAKE2b-256 a31ec9dbbdf78e009ef5b4712099a8b78fc4db27b5a2eb905ea667e94553bdae

See more details on using hashes here.

File details

Details for the file smartenv_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: smartenv_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for smartenv_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb239e46f496bf4f2439e461096a7187a18ec7757a9b6ca2acdad325dffa9afa
MD5 6651ed30b16a72d69d048726c5d1463e
BLAKE2b-256 03fdf5ce6590906b75174c03da353d86951b2e9a6adc9d89e9a771c7af33e18b

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