dump-env
A utility tool to create .env files
Decision gist · record as of 2026-08-14
Yes. dump-env is a lightweight, actively maintained utility with zero dependencies, a permissive license, and a clear single purpose: simplifying .env generation in CI/CD pipelines. Install it if you manage environment configuration across Docker builds or CI systems and want to avoid shell scripting or manual secret handling.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later (supports 3.10, 3.11, 3.12, 3.13, 3.14).
- Low friction: pure Python wheel with zero runtime dependencies.
- Actively maintained as of 2026-04-20, last commit 2026-08-10, and marked Production/Stable.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) — you may use, modify, and distribute freely with minimal restrictions.
last release 2026-04-20 (116 days) · last repo commit 2026-08-10 · 119 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 95,078 downloads/mo, #13,292 on PyPI
Alternatives
Verify before relying
$ pip install dump-env
$ dump-env --template=.env.template --prefix='SECRET_ENV_' > .env
Or in Python:
from dump_env import dump_env
# Command-line tool; no direct Python API documented- Whether a programmatic Python API exists beyond the CLI tool documented in the excerpt.
- Performance characteristics when processing very large template files or many prefixed variables.
What it is and what it does
dump-env is a command-line tool that generates .env files by reading an .env.template file and overlaying environment variables that match one or more specified prefixes. It has no external dependencies and runs as a pure Python utility. The tool is designed to simplify CI/CD workflows—particularly Docker image builds—where secrets and configuration need to be injected from CI provider environment variables without manual encryption/decryption logic.
The typical workflow is: define a template with default or placeholder values, set prefixed environment variables in your CI system (e.g., SECRET_ENV_DATABASE_URL), and run dump-env to merge them. The tool can enforce strict validation (fail if required variables are missing), support multiple prefixes, and optionally disable value quoting for compatibility with linters like dotenv-linter.
Use it for
- Generate .env files in Docker builds by reading CI secrets prefixed with a convention like SECRET_ENV_.
- Enforce that all required environment variables are present before deploying, using the --strict flag.
- Merge multiple sources of configuration: a template for defaults and environment-specific overrides from CI.
- Create .env files in GitLab CI, GitHub Actions, or Travis CI without custom shell scripting.
- Validate that template variables are defined in the environment before exporting to .env.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
dump-env is a lightweight, actively maintained utility with zero dependencies, a permissive license, and a clear single purpose: simplifying .env generation in CI/CD pipelines. Install it if you manage environment configuration across Docker builds or CI systems and want to avoid shell scripting or manual secret handling.
Install
dump-env on PyPI
Before you install
Low friction: pure Python wheel with zero runtime dependencies. Actively maintained as of 2026-04-20, last commit 2026-08-10, and marked Production/Stable.
Requires Python 3.10 or later (supports 3.10, 3.11, 3.12, 3.13, 3.14).
License in practice
MIT license (permissive) — you may use, modify, and distribute freely with minimal restrictions.
Quickstart
$ pip install dump-env
$ dump-env --template=.env.template --prefix='SECRET_ENV_' > .env
Or in Python:
from dump_env import dump_env
# Command-line tool; no direct Python API documented
Verify before relying
- Whether a programmatic Python API exists beyond the CLI tool documented in the excerpt.
- Performance characteristics when processing very large template files or many prefixed variables.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 116 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 95,078 / month, #13,292 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: dump_env-1.7.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “.env file generation”
- dump-envGenerates .env files by merging an .env.template with environment…
- load-dotenvAutomatically loads environment variables from a .env file into your…
- django-dotenvLoads environment variables from a .env file into Django's manage.py…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also dotenv-linter · envtpl · environs · poetry-dotenv-plugin · jinjanator · pytest-dotenv · dynaconf · expandvars · django-split-settings · python-dotenv