Skip to main content

Crate _formatparse

Crate _formatparse 

Source
Expand description

formatparse-pyo3: PyO3 bindings for formatparse

formatparse-pyo3 provides Python bindings for the formatparse-core library.

Structs§

FieldSpec
FindallIter
Incremental iterator over findall-style matches (issue #13 MVP).
FixedTzOffset
Fixed timezone offset for datetime parsing
Format
Format object that formats values into a pattern string
FormatParser
Compiled format pattern for parsing strings.
Match
Match object that stores raw regex captures without type conversion
ParseResult
PatternParseMismatch
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§

FieldType
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)