Package Info

python-pampy


An alternate pattern matching for Python


Development/Languages/Python

For patterns, a developer can use any Python type, any class, or any Python value.

The operator _ and built-in types like int or str, extract variables that are passed to functions.

Types and Classes are matched via instanceof(value, pattern).

Iterable Patterns match recursively through all their elements. The same goes for dictionaries.


License: MIT
URL: https://github.com/santinic/pampy

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.3.0-bp152.1.6 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pampy
0.3.0-bp153.1.14 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pampy