formatparse Documentation
Welcome to the formatparse documentation!
formatparse is a high-performance, Rust-backed implementation of the parse library for Python. It provides the same API as the original parse library but with significant performance improvements (up to 80x faster) thanks to Rust’s zero-cost abstractions and optimized regex engine.
Quick Start
from formatparse import parse, search, findall
# Basic parsing with named fields
result = parse("{name}: {age:d}", "Alice: 30")
print(f"Name: {result.named['name']}")
print(f"Age: {result.named['age']}")
Name: Alice
Age: 30