Skip to main content

EnvGuard

EnvGuard is a Python tool to check for missing or incorrect environment variables in .env files.

Features

  • Validate required environment variables.
  • Command-line interface for easy usage.

Installation

pip install -r requirements.txt

Usage

envguard --required DATABASE_URL --required SECRET_KEY

Example .env File

DATABASE_URL=postgres://user:password@localhost:5432/mydb
SECRET_KEY=mysecretkey

License

MIT

Example .env File

Create a .env file in the root of your project with the following content:

DATABASE_URL=postgres://user:password@localhost:5432/mydb
SECRET_KEY=mysecretkey

Testing Steps

  1. Install the package (if not already installed):
pip install -r requirements.txt
  1. Run the CLI tool to validate the .env file:
    envguard --required DATABASE_URL --required SECRET_KEY
  1. If the .env file is correct, you’ll see:
    All required environment variables are present!
  1. To test missing variables, edit the .env file and remove one of the variables (e.g., SECRET_KEY). Then run the command again:
    envguard --required DATABASE_URL --required SECRET_KEY
  1. You’ll see an error like this:
    Missing or incorrect environment variables:
    - SECRET_KEY

Metadata

Release files for EnvGuard 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EnvGuard 0.1
File Size Uploaded Provenance Actions
envguard-0.1.tar.gz 2.8 kB Without provenance Details for envguard-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for EnvGuard 0.1
File Interpreter ABI Platform Actions
envguard-0.1-py3-none-any.whl Python 3 none any Details for envguard-0.1-py3-none-any.whl

Total release size: 5.9 kB

Release files / envguard-0.1.tar.gz

Download URL envguard-0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0013534405f0735fe324a0206fefeb5ee0626e8cbce1c667da6d70f3c59a28c2
BLAKE2b-256 checksum
How to use checksums
2ebc7207a95fca779c9d739c35727cddd794de3c4f4373a0518b3588a24e59f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / envguard-0.1-py3-none-any.whl

Download URL envguard-0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b6848a8e1eaa5756a5b9b28e77970f870d6343a44c8a9487f5586d2986dea4b
BLAKE2b-256 checksum
How to use checksums
a753f06e916dc66ee7c90c29047883511591cf6546ac102f7c656b625383b5f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for EnvGuard 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page