matchpy

A library for pattern matching on symbolic expressions in Python.

Showing:

18 Versions

0.5.5

Added Operation.unpacked_args_to_init to better support integrating custom classes as operations (e.g. dataclasses). Thanks to @kaushikcfd for PR #73!

0.5.4

  • Added internal implementation of the Hopcroft-Karp algorithm in order to remove dependencies with GPL license. Removed the dependency hopcroftkarp.
  • Improved compatibility with SymPy.

0.5.3

Added function to remove cached data in ManyToOneMatcher.

0.5.2

  • MatchPy now supports Python 3.8.
  • Bug fixes:
    • It is now possible to correctly rename variables of CustomConstraint more than once.
    • Using subclasses of Symbol that require extra arguments in __init__() no longer break many-to-one matching.

0.5.1

We switch to versioneer and bump up the version number to resolve an issue that prevented the latest version to be available in conda-forge.

0.5.0

  • Using singledispatch for registering custom operations (thank you @skirpichev!) See #40 for some examples
  • Streamlined build process (thank you @skirpichev!)
  • @Upabjojr fixed a bug in the Code generator (thanks! #50)

0.4.6

0.4.4

Fixed an issue with Python 3.6.3 typing

0.4.3

0.4.2

0.4.1

Optional variables now work properly with operations that have one_identity=True.

0.4

Added support for optional wildcards with a default value.

0.3.2

0.3.1

0.3

Added better support for native Python data structures such as lists or tuples. Also added various utility methods to Expressions.

0.2

0.1.2

0.1.1

Fixed an issue with the actual packageing for pypi.