Skip to main content

A lightweight environment variable manager and validator for Python 🥷

Project description

EnvNinja - Environment Variable Management for Python

EnvNinja is a lightweight Python library for managing environment variables in a secure, structured, and automated manner. It provides an easy way to load, validate, and type-check environment variables, along with autogenerating .env.example files for easier collaboration in development teams. With support for automatic type casting and secret management, it’s a great tool for production-ready environments.

Features

  • Type Safety: Automatically cast environment variables to their correct types (int, bool, str, etc.).
  • Validation: Ensure required environment variables are set and have the correct types.
  • Secret Detection: Automatically flag sensitive information (like passwords, API tokens, etc.) and append emoji indicators for clarity.
  • .env.example Generation: Auto-generate .env.example files with useful comments and emoji indicators for sensitive fields.
  • Docker Integration: Generate .env.example for your Docker setups automatically.
  • Autocompletion: For easy access to environment variables as properties (config.PORT).

Installation

You can install EnvNinja via pip:

pip install envninja

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

envninja-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

envninja-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: envninja-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for envninja-0.1.0.tar.gz
Algorithm Hash digest
SHA256 42bd7792bfa9609ed00f710850f0bed91264772551591f02f425d44c62bf942c
MD5 cf9ffc309ffb96f8265b9bd1abf74037
BLAKE2b-256 d708522d17ffdd8f9f1cba9ccf8cdf9e9d456a1c2786270b0dce0068675cdc83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: envninja-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for envninja-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec8f55fcce013a5911a86a3bef11d170a7d5ec74453a264c1bf1dfd53317e7d
MD5 e9c448746aefcf1e718591b2947cf4c6
BLAKE2b-256 0cda135a9ac22e2aaf302485fcb8235eb9f244ef627c7af1ad21aa039b98aecb

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