pampy
py-validate
pampy | py-validate | |
---|---|---|
2 | 3 | |
3,503 | 0 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | about 4 years ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
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/
py-validate
-
Charming Cobras with Bubbletea – Part 1
I never had the use case for arbitrary nested input, but I did build a python library that allowed you to specify the HTML input type and the python type to coerce it to + regex validation so that our giant SQL queries would fail at the beginning and not half way thru
I dabbled in generating the HTML forms for calling the scripts, but what I was really excited to do was design a chatbot that would use the type declarations to ask for the scripts' requirements conversationally ("next I need a number for...")
https://github.com/jazzyjackson/py-validate
-
Functools – The Power of Higher-Order Functions in Python
Yes! List/Dictionary/Generator comprehension is one big plus for Python, it probably came from the functional world. I use it whenever I can.
> But even the lambda keyword isn't so bad, you can create a dictionary of expressions to call by name, a lot more compact them declaring them the usual way imo: https://github.com/jazzyjackson/py-validate/blob/master/pyva...
lambda keyword is better than nothing, it definitely can be improved. Just imaging using javascript syntax in your example.
> To your point, I only recently learned there's a Map function in Python, while in JS I'm .map(x=>y).filter(x=>y).reduce(x=>y)ing left and right.
I think with the introduction of list comprehension Guido saw map function was no longer needed, that was why he wanted it removed. I don't deny it, but using map and filter sometimes are just easier to read. Say [foo(v) for v in a] vs map(foo, a).
What are some alternatives?
Coconut - Simple, elegant, Pythonic functional programming.
py2many - Transpiler of Python to many other languages
pyfuncol - Functional collections extension functions for Python