pampy
awesome-pattern-matching
pampy | awesome-pattern-matching | |
---|---|---|
2 | 2 | |
3,503 | 107 | |
- | - | |
0.0 | 1.3 | |
about 2 years ago | about 1 year ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pampy
-
Functools – The Power of Higher-Order Functions in Python
Here is pattern matching as a library that is not built using statements,
https://github.com/santinic/pampy
Clearly it's possible. It's also more ergonomic than PEP 622.
-
why is scala considered hard?
What about some Python's alternative then? https://github.com/santinic/pampy https://pythonawesome.com/pampy-the-pattern-matching-for-python-you-always-dreamed-of/
awesome-pattern-matching
What are some alternatives?
Coconut - Simple, elegant, Pythonic functional programming.
mcpyrate - Advanced macro expander and language lab for Python.
py2many - Transpiler of Python to many other languages
trivia - Pattern Matcher Compatible with Optima
pyfuncol - Functional collections extension functions for Python
gybe - A simple YAML transpiler for rendering Kubernetes manifests using python type-hints.
kiutils - Simple and SCM-friendly KiCad file parser based on Python dataclasses for KiCad 6.0 and up.
mutatest - Python mutation testing: test your tests! Safely run mutation trials without source code modifications and see what will get past your test suite.
ignition - Gemini Protocol Client for Python Developers
pydantic - Data validation using Python type hints
generalimport - Handle all your optional dependencies with a single call!
0x5F3759DF-in-Python3-FastInverseSquareRoot - The magic number 0x5F3759DF in Python3 Fast Inverse SquareRoot