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=VALUEtoexport 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f12244f505f6dd83bbfe4e45f532ff989f0726b9428187a053a7763f8709a1d0
|
|
| MD5 |
dcab61d98f7c0b1e5aa79a0a248b654e
|
|
| BLAKE2b-256 |
f983478eaae53811bb1ff584dcf1bfb8fb382f8a42f2fff055589a773c773bb5
|
Provenance
The following attestation bundles were made for auto_example_env-0.1.2.tar.gz:
Publisher:
publish.yml on Lamanaable/auto-example-env
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
auto_example_env-0.1.2.tar.gz -
Subject digest:
f12244f505f6dd83bbfe4e45f532ff989f0726b9428187a053a7763f8709a1d0 - Sigstore transparency entry: 1188772036
- Sigstore integration time:
-
Permalink:
Lamanaable/auto-example-env@ed7d555766b286d1d5d359a41d80940151158564 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Lamanaable
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ed7d555766b286d1d5d359a41d80940151158564 -
Trigger Event:
release
-
Statement type:
File details
Details for the file auto_example_env-0.1.2-py3-none-any.whl.
File metadata
- Download URL: auto_example_env-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06adcc3bdbd2d29231b22b1cc89df36141c91989da259a8cb4d7dfd718c8878
|
|
| MD5 |
365a87c0cf215850ea2436bc8fec6904
|
|
| BLAKE2b-256 |
b54f7b2096fd9d77c4405a0322bf2446b6c96a0aa722954f7400142b706627d9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
auto_example_env-0.1.2-py3-none-any.whl -
Subject digest:
f06adcc3bdbd2d29231b22b1cc89df36141c91989da259a8cb4d7dfd718c8878 - Sigstore transparency entry: 1188772064
- Sigstore integration time:
-
Permalink:
Lamanaable/auto-example-env@ed7d555766b286d1d5d359a41d80940151158564 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Lamanaable
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ed7d555766b286d1d5d359a41d80940151158564 -
Trigger Event:
release
-
Statement type: