Skip to main content

Generate example.env from .env file for documentation purposes

Project description

auto-example-env

A Python utility to generate example.env from your .env file for documentation purposes.

Installation

pip install auto-example-env

Usage

# Generate example.env from .env in current directory
auto-example-env

# Specify custom input/output files
auto-example-env --input .env --output example.env

Features

  • Converts export KEY=VALUE to export KEY=
  • Handles multiline quoted values (e.g., PEM certificates) by adding a comment above
  • Skips keys marked with # ignore (case insensitive)
  • Preserves comments and empty lines
  • Always overwrites example.env

Example

Given .env:

export API_KEY=secret
# ignore export SECRET=hidden
export CERT="-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----"

Generates example.env:

export API_KEY=
# Multiline value
export CERT=

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

auto_example_env-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

auto_example_env-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file auto_example_env-0.1.2.tar.gz.

File metadata

  • Download URL: auto_example_env-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for auto_example_env-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f12244f505f6dd83bbfe4e45f532ff989f0726b9428187a053a7763f8709a1d0
MD5 dcab61d98f7c0b1e5aa79a0a248b654e
BLAKE2b-256 f983478eaae53811bb1ff584dcf1bfb8fb382f8a42f2fff055589a773c773bb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for auto_example_env-0.1.2.tar.gz:

Publisher: publish.yml on Lamanaable/auto-example-env

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file auto_example_env-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_example_env-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f06adcc3bdbd2d29231b22b1cc89df36141c91989da259a8cb4d7dfd718c8878
MD5 365a87c0cf215850ea2436bc8fec6904
BLAKE2b-256 b54f7b2096fd9d77c4405a0322bf2446b6c96a0aa722954f7400142b706627d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for auto_example_env-0.1.2-py3-none-any.whl:

Publisher: publish.yml on Lamanaable/auto-example-env

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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