Expand description
formatparse-pyo3: PyO3 bindings for formatparse
formatparse-pyo3 provides Python bindings for the formatparse-core library.
Structs§
- Field
Spec - Findall
Iter - Incremental iterator over
findall-style matches (issue #13 MVP). - Fixed
TzOffset - Fixed timezone offset for datetime parsing
- Format
- Format object that formats values into a pattern string
- Format
Parser - Compiled format pattern for parsing strings.
- Match
- Match object that stores raw regex captures without type conversion
- Parse
Result - Pattern
Parse Mismatch - Results
- Results container that stores raw match data and lazily converts to ParseResult This avoids creating all ParseResult objects upfront, improving performance The struct itself is lightweight - just a Vec of raw data
Enums§
- Field
Type - Type definitions for field specifications
Functions§
- convert_
value - strftime_
to_ regex - Convert strftime format string to regex pattern
- validate_
alignment_ precision - Validate alignment+precision constraints for string fields Returns false if validation fails (should reject the match)