Skip to content

v1.0.0

Choose a tag to compare

@Descanonge Descanonge released this 24 Apr 22:08

Major overhaul.

  • Requirement is now python >= 3.10
  • Renamed 'matchers' to 'groups' to be consistent with regex tools.
  • Group definition is now orderless (rgx, fmt, etc can be specified in any order).
    • :opt is now only a flag for specifying the group as optional
    • new :bool=true[:false] property. Note the order from old :opt is reversed. Options are strings (not regex).
  • Better API to retrieve values with Matches.get_values, Matches.get_value and Matches.__getitem__.
  • Make package typed.
  • Refactor format module.
    • Use sub-classes for different format types, avoiding frequent dispatching.
    • Add 'z' option to format (just allow it in format string, nothing else) (added in 3.11).
    • Add alignment/fill support for string formats.
  • Other renaming, streamlining, and minor bug fixes.
  • Better test suite relying heavily on hypothesis. Now tested on OS other than linux with github actions.

Full Changelog: changelog.md