Comparison
envsubst vs expandvars vs parameter-expansion-patched
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Substitute environment variables in a string
Likely abandoned. No release or commit for years (last release over 7 years ago).
$
pip install envsubstExpand system variables Unix style
Low maintenance activity. Last release 15 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install expandvarsShell parameter expansion in Python. Patched by co-maintainer for a PyPI release.
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install parameter-expansion-patchedIn short
- envsubst looks abandoned: avoid it for new projects.
- parameter-expansion-patched looks abandoned: avoid it for new projects.
- expandvars is the most used: 3M downloads a month, 20× more than parameter-expansion-patched.
- expandvars also has the best Pythie’s Index (24).
Side by side
| Metric | envsubst | expandvars | parameter-expansion-patched |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 11 | 24 |