parameter-expansion-patched
Shell parameter expansion in Python. Patched by co-maintainer for a PyPI release.
Decision gist · record as of 2026-08-14
Yes, if you need POSIX/Bash parameter expansion without shell spawning and can accept an abandoned codebase. The library is stable, has no dependencies, and handles a broad range of expansions. However, the 1563-day maintenance gap and lack of updates for modern Python versions beyond 3.10 mean you should verify it works with your target environment and have a plan for maintenance if issues arise.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Marked abandoned as of 1563 days since last release, though classified as Production/Stable and supported on Python 3.6–3.10.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2022-05-04 (1563 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 124,356 downloads/mo, #11,872 on PyPI
Alternatives
Verify before relying
pip install parameter-expansion-patched
from parameter_expansion import expand
foo = 'abc/123-def.ghi'
result = expand('abc ${foo} abc')- Whether the abandoned status and 1563-day gap since last release pose maintenance or compatibility risks for modern Python versions beyond 3.10.
- Scope and completeness of nested expansion support claimed in the description.
- Performance characteristics when handling large or complex parameter strings.
What it is and what it does
parameter-expansion-patched is a Python library that interprets POSIX and Bash shell parameter expansion syntax directly in strings, without invoking a shell subprocess. It parses strings containing variable references like `$var` or `${var}` and expands them using a provided dictionary or environment variables. The library supports standard expansions (variable substitution, default values via `${var:-default}`), Bash substrings, and string replacement operations.
The main use case is lightweight shell script analysis and parameter extraction in tools like build-script parsers, where spawning a shell would be a security risk or add unnecessary system dependencies. It handles a range of expansions through a custom parser, though it avoids extremely complex or ambiguous nested cases. The package has no runtime dependencies and installs easily, but has been abandoned for over four years despite being marked Production/Stable.
Use it for
- Parse and expand shell variables in build scripts or configuration files without executing a shell.
- Extract and resolve parameter references in shell syntax during static code analysis or scanning.
- Evaluate shell-like variable substitution in a sandboxed, dependency-light environment.
- Support Bash parameter syntax (substrings, replacements) in Python string processing pipelines.
- Analyze shell scripts in security-sensitive contexts where subprocess spawning is undesirable.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need POSIX/Bash parameter expansion without shell spawning and can accept an abandoned codebase.
The library is stable, has no dependencies, and handles a broad range of expansions. However, the 1563-day maintenance gap and lack of updates for modern Python versions beyond 3.10 mean you should verify it works with your target environment and have a plan for maintenance if issues arise.
Install
parameter-expansion-patched on PyPI
Before you install
Low install friction with no runtime dependencies. Marked abandoned as of 1563 days since last release, though classified as Production/Stable and supported on Python 3.6–3.10.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install parameter-expansion-patched
from parameter_expansion import expand
foo = 'abc/123-def.ghi'
result = expand('abc ${foo} abc')
Verify before relying
- Whether the abandoned status and 1563-day gap since last release pose maintenance or compatibility risks for modern Python versions beyond 3.10.
- Scope and completeness of nested expansion support claimed in the description.
- Performance characteristics when handling large or complex parameter strings.
Package facts
| License | Apache-2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,563 days since the last release |
| First released | |
| Downloads | 124,356 / month, #11,872 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/StableLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: parameter_expansion_patched-0.3.1-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 › “shell parameter expansion python”
- parameter-expansion-patchedExpands POSIX and Bash shell parameter syntax in Python strings…
- expandvarsExpands Unix-style variable references in strings with bash-like…
- braceexpandExpands bash-style brace patterns into sequences of strings,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also expandvars · envsubst · bracex · uri-template · contractions · braceexpand · uritemplate · codemod-tox · bashlex · oelint-parser