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.exampleGeneration: Auto-generate.env.examplefiles with useful comments and emoji indicators for sensitive fields.- Docker Integration: Generate
.env.examplefor 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42bd7792bfa9609ed00f710850f0bed91264772551591f02f425d44c62bf942c
|
|
| MD5 |
cf9ffc309ffb96f8265b9bd1abf74037
|
|
| BLAKE2b-256 |
d708522d17ffdd8f9f1cba9ccf8cdf9e9d456a1c2786270b0dce0068675cdc83
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ec8f55fcce013a5911a86a3bef11d170a7d5ec74453a264c1bf1dfd53317e7d
|
|
| MD5 |
e9c448746aefcf1e718591b2947cf4c6
|
|
| BLAKE2b-256 |
0cda135a9ac22e2aaf302485fcb8235eb9f244ef627c7af1ad21aa039b98aecb
|