headerparser
- Added a scan() function combining the behavior of scan_file() and scan_lines(), which are now deprecated
- Gave HeaderParser a ~HeaderParser.parse() method combining the behavior of ~HeaderParser.parse_file() and ~HeaderParser.parse_lines(), which are now deprecated
- Added scan_next_stanza() and scan_next_stanza_string() functions for scanning & consuming input only up to the end of the first header section
- Added scan_stanzas() and scan_stanzas_string() functions for scanning input composed entirely of multiple stanzas/header sections
- Gave HeaderParser parse_next_stanza() and parse_next_stanza_string() methods for parsing & comsuming input only up to the end of the first header section
- Gave HeaderParser parse_stanzas() and parse_stanzas_string() methods for parsing input composed entirely of multiple stanzas/header sections
- Drop support for Python 3.3
- Gave HeaderParser and the scanner functions options for configuring scanning behavior:
separator_regex
skip_leading_newlines
- Fixed a DeprecationWarning in Python 3.7
- NormalizedDict's default normalizer (exposed as the lower() function) now passes non-strings through unchanged
- HeaderParser instances can now be compared for non-identity equality
- HeaderParser.add_field() and HeaderParser.add_additional() now take an optional
action
argument for customizing the parser's behavior when a field is encountered - Made the unfold() function public
Initial release