$npx skillfedfor your agent

parameter-expansion-patched

Shell parameter expansion in Python. Patched by co-maintainer for a PyPI release.

With conditionsPyPI Text ProcessingReleased May 2022124.4K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — parameter_expansion_patched-0.3.1-py3-none-any.whl
v0.3.1 · released 2022-05-04

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache-2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 1,563 days since the last release
First released
Downloads124,356 / month, #11,872 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
shell parameter expansion pythonposix variable expansionbash parameter substitutionshell variable parsingparameter expansion libraryshell syntax evaluationvariable substitution without shell
Topics
shell-parsingparameter-expansionposix-compliance
PyPI keywords
parameter expansionshellPOSIXbash

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

regex Worth it
PyPI · Python Modules · released Jul 2026

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.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyparsing Worth it
PyPI · Text Processing · released Jan 2026

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.

MITpure Python · 3.9+
412.7Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

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.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
RapidFuzz Worth it
PyPI · Text Processing · released Apr 2026

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.

MITcompiled wheel · 3.10+
184.2Mdownloads / mo
tinycss2 Worth it
PyPI · Text Processing · released Nov 2025

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.

BSD-3-Clausepure Python · 3.10+
113.2Mdownloads / mo

See also expandvars · envsubst · bracex · uri-template · contractions · braceexpand · uritemplate · codemod-tox · bashlex · oelint-parser