All Projects → d0c-s4vage → Pfp

d0c-s4vage / Pfp

Licence: mit
pfp - Python Format Parser - a python-based 010 Editor template interpreter

Programming Languages

python
139335 projects - #7 most used programming language

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
Javo
🚀 A sandboxed VM any Java developer can afford
Stars: ✭ 144 (-11.66%)
Mutual labels:  interpreter
S
the s shell
Stars: ✭ 158 (-3.07%)
Mutual labels:  interpreter
Jssms
JavaScript Sega Master System & Game Gear dynamic recompiling emulator.
Stars: ✭ 136 (-16.56%)
Mutual labels:  interpreter
Wisp
A light lisp written in C++
Stars: ✭ 141 (-13.5%)
Mutual labels:  interpreter
Forge
A lightweight, elegant scripting language with built-in Rust-FFI.
Stars: ✭ 153 (-6.13%)
Mutual labels:  interpreter
Szl
A lightweight, embeddable scripting language
Stars: ✭ 134 (-17.79%)
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
Emacs Cl
Common Lisp implemented in Emacs Lisp.
Stars: ✭ 140 (-14.11%)
Mutual labels:  interpreter
Lioness
The Lioness Programming Language
Stars: ✭ 155 (-4.91%)
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
Janet
A dynamic language and bytecode vm
Stars: ✭ 2,216 (+1259.51%)
Mutual labels:  interpreter
Monkey
An Interpreter In Go
Stars: ✭ 162 (-0.61%)
Mutual labels:  interpreter
Cling
The cling C++ interpreter
Stars: ✭ 2,322 (+1324.54%)
Mutual labels:  interpreter
Shentong
A Haskell implementation of the Shen programming language.
Stars: ✭ 155 (-4.91%)
Mutual labels:  interpreter

Master Build Status PyPI Statistics Latest Release Documentation Status Coverage Status

Twitter Follow

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].