{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"Expands POSIX and Bash shell parameter syntax in Python strings without spawning a shell, supporting variable substitution, default values, substring operations, and string replacement.","skillfed_tags":["shell-parsing","parameter-expansion","posix-compliance"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"parameter-expansion-patched","links":{"html":"https://skillfed.io/packages/parameter-expansion-patched","md":"https://skillfed.io/packages/parameter-expansion-patched.md","pypi":"https://pypi.org/project/parameter-expansion-patched/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-05-04","license_spdx":null,"license_treatment":"permissive","name":"parameter-expansion-patched","python_support":"unspecified","summary":"Shell parameter expansion in Python. Patched by co-maintainer for a PyPI release."},"popularity":{"monthly_downloads":124356,"position":11872,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.1"}
