$npx skillfedfor your agent

envsubst

Substitute environment variables in a string

With conditionsPyPI UtilitiesReleased Oct 2019144.9K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — envsubst-0.1.5-py2.py3-none-any.whl
v0.1.5 · released 2019-10-05

Yes, if you need simple shell-style variable substitution and can accept that the package is unmaintained. The low install friction and permissive MIT license make it a lightweight choice for straightforward use cases. No, if you require active maintenance, Python version compatibility guarantees, or support for complex templating—consider a maintained alternative or implement substitution inline.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Install friction is low with no runtime dependencies.
  • However, the package is abandoned—last release was 2019-10-05 and the repository shows no commits since 2023-07-07.
  • No active maintenance means security or compatibility issues will not be addressed.

License · maintenance · safety

MIT (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.

last release 2019-10-05 (2505 days) · last repo commit 2023-07-07 · 8 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 144,892 downloads/mo, #11,140 on PyPI

Verify before relying

import os
from envsubst import envsubst

os.environ['USER'] = 'alice'
os.environ['HOST'] = 'example.com'
result = envsubst('$USER@$HOST')
print(result)  # alice@example.com
  • Whether the package works correctly with modern Python versions (requires_python is unspecified)
  • Whether argv-based substitution ($0, $1, etc.) is fully documented or tested
  • Whether nested or complex variable references beyond the documented examples are supported
Same gist for agents: .md · .json

What it is and what it does

envsubst is a lightweight utility for performing shell-style environment variable substitution within Python strings. It parses strings containing variable references like `$VAR` or `${VAR}` and replaces them with their corresponding environment variable values. The package supports default value syntax—`${VAR:-default}` uses a default if the variable is unset, and `${VAR-default}` uses a default only if the variable is unset or empty—mirroring common shell behavior.

The package has no runtime dependencies and installs as a pure Python wheel, making it simple to add to any project. However, it has been abandoned since its last release in October 2019, with no commits to the repository since July 2023. This means any bugs or compatibility issues with newer Python versions will not be fixed by the maintainer.

Use it for

  • Substitute environment variables into configuration strings or templates at runtime without external templating libraries.
  • Parse and expand shell-like variable references in user-provided strings or configuration files.
  • Build dynamic command strings or paths that depend on environment variables with fallback defaults.
  • Migrate shell scripts to Python while preserving variable substitution syntax familiar to shell users.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need simple shell-style variable substitution and can accept that the package is unmaintained.

The low install friction and permissive MIT license make it a lightweight choice for straightforward use cases. No, if you require active maintenance, Python version compatibility guarantees, or support for complex templating—consider a maintained alternative or implement substitution inline.

Install

envsubst on PyPI

Before you install

Install friction is low with no runtime dependencies. However, the package is abandoned—last release was 2019-10-05 and the repository shows no commits since 2023-07-07. No active maintenance means security or compatibility issues will not be addressed.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.

Quickstart

import os
from envsubst import envsubst

os.environ['USER'] = 'alice'
os.environ['HOST'] = 'example.com'
result = envsubst('$USER@$HOST')
print(result)  # alice@example.com

Verify before relying

  • Whether the package works correctly with modern Python versions (requires_python is unspecified)
  • Whether argv-based substitution ($0, $1, etc.) is fully documented or tested
  • Whether nested or complex variable references beyond the documented examples are supported

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,505 days since the last release
Last repo commit
First released
Downloads144,892 / month, #11,140 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: envsubst-0.1.5-py2.py3-none-any.whl

Tags

Capabilities
environment variable substitutionshell variable expansionenvsubst pythonsubstitute env vars in stringvariable interpolationdefault value fallbackshell-like variable syntax
Topics
shell-compatibilityabandoned

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 › “environment variable substitution”

  • envsubstSubstitutes environment variables in strings using shell-like syntax,…
  • pyhoconParses HOCON (Human-Optimized Config Object Notation) configuration…
  • expandvarsExpands Unix-style variable references in strings with bash-like…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

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.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

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.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

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.

MITpure Python
1.2Bdownloads / mo

See also expandvars · parameter-expansion-patched · tempenv · environs · py-expression-eval · pytest-env · dynamic-yaml · pyaml-env · envyaml · uritemplate