d0c-s4vage / Pfp
Licence: mit
pfp - Python Format Parser - a python-based 010 Editor template interpreter
Stars: ✭ 163
Programming Languages
python
139335 projects - #7 most used programming language
Labels
Projects that are alternatives of or similar to Pfp
Brew.js
[WIP] C++ high-level JavaScript API for Nintendo 3DS/Switch
Stars: ✭ 136 (-16.56%)
Mutual labels: interpreter
Jssms
JavaScript Sega Master System & Game Gear dynamic recompiling emulator.
Stars: ✭ 136 (-16.56%)
Mutual labels: interpreter
Forge
A lightweight, elegant scripting language with built-in Rust-FFI.
Stars: ✭ 153 (-6.13%)
Mutual labels: interpreter
Wain
WebAssembly implementation from scratch in Safe Rust with zero dependencies
Stars: ✭ 160 (-1.84%)
Mutual labels: interpreter
Lawvere
A categorical programming language with effects
Stars: ✭ 142 (-12.88%)
Mutual labels: interpreter
Eval
Eval is a lightweight interpreter framework written in Swift, evaluating expressions at runtime
Stars: ✭ 157 (-3.68%)
Mutual labels: interpreter
Kivm
🌟This is a pure C++ implementation of Java Virtual Machine (only Java 8 is supported). Inspired by Hotspot In Action.
Stars: ✭ 137 (-15.95%)
Mutual labels: interpreter
Gomacro
Interactive Go interpreter and debugger with REPL, Eval, generics and Lisp-like macros
Stars: ✭ 1,784 (+994.48%)
Mutual labels: interpreter
Metalang99
A functional language for C99 preprocessor metaprogramming
Stars: ✭ 152 (-6.75%)
Mutual labels: interpreter
Designpatterns
🔑Elements of Reusable Object-Oriented Software🔓is a software engineering book describing software design patterns. The book's authors are Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides with a foreword by Grady Booch.
Stars: ✭ 134 (-17.79%)
Mutual labels: interpreter
Shentong
A Haskell implementation of the Shen programming language.
Stars: ✭ 155 (-4.91%)
Mutual labels: interpreter
pfp
pfp
is a python-based interpreter for 010 template scripts.
See the main documentation on Read the Docs
Contributing
See CONTRIBUTING.md
Installation
Install pfp with
pip install --upgrade pfp
Tl;DR
CLI
pfp -t path/to/template input_file
All available options for the pfp CLI:
usage: pfp [-h] -t TEMPLATE [--show-offsets] [-k] input
Run pfp on input data using a specified 010 Editor template for parsing
positional arguments:
input The input data stream or file to parse. Use '-' for
piped data
optional arguments:
-h, --help show this help message and exit
-t TEMPLATE, --template TEMPLATE
The template to parse with
--show-offsets Show offsets in the parsed data of parsed fields
-k, --keep Keep successfully parsed data on error
Python Library
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"
)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].