Parched aims at providing a python module capable of parsing pacman packages and PKGBUILDs.
Parched is not currently registered with PyPI due to it's development status, however pip can install the module from a git repository:
pip install -e git://github.com/sebnow/parched.git
First retrieve the source from the git repository, then follow the typical install procedure:
git clone git://github.com/sebnow/parched.git cd parched python setup.py install
The documentation is not available online, however, you can retrieve the source and generate the documentation using sphinx:
git clone git://github.com/sebnow/parched.git cd parched/docs make html
The code itself is also documented, so you can simply look at parched.py.
Parched is MIT licensed. Do whatever you want.