Python parser for bash
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install bashlexbashlex is a Python port of the parser used internally by GNU bash.
For the most part it's transliterated from C, the major differences are:
1. it does not execute anything
2. it is reentrant
3. it generates a complete AST
See https://github.com/idank/bashlex/blob/master/README.md for more info.