pfp
is a python-based interpreter for 010 template scripts.
See the main documentation on Read the Docs
See CONTRIBUTING.md
Install pfp with
pip install --upgrade pfp
You don't feel like going to read the docs? This should get you started parsing something using 010 templates:
import pfp
dom = pfp.parse(
data_file="~/Desktop/image.png",
template_file="~/Desktop/PNGTemplate.bt"
)