Re:Show HN: Koda, a typesafe functional toolkit for Python
by zmmmmm on Monday February 07, 2022 @03:55PM
(#30250990)
I want a similar toolkit that lifts over the Ruby/Groovy/Kotlin style functions like countBy, groupBy, sortBy, collate, etc etc. Programming in Python is such a chore without these higher level collections APIs and for some reason (I guess, list comprehensions being considered idiomatic, bare bones itertools being considered "good enough", and the lack of real inline closures?) it doesn't seem like they'll ever be part of Python proper. But I still want them.
[ Parent
| on HN ]
Re:Show HN: Koda, a typesafe functional toolkit for Python
by wswope on Monday February 07, 2022 @04:47PM
(#30251765)
With full acknowledgment that it would be better to have at least some of those in the stdlib, Pandas covers all those needs pretty well in practice, with the bonus of workarounds that sidestep CPython’s usual performance limitations.
Re:Show HN: Koda, a typesafe functional toolkit for Python
by 41b696ef1113 on Monday February 07, 2022 @09:22PM
(#30254223)
Maybe the toolz[0] family would cover your use cases? There is also a Cython implementation if you need better performance.
Re:Show HN: Koda, a typesafe functional toolkit for Python
by Daishiman on Monday February 07, 2022 @09:39PM
(#30254339)
The `collections`, `itertools` and `functools` packages have most of these.
Re:Show HN: Koda, a typesafe functional toolkit for Python
by lauriat on Monday February 07, 2022 @06:56PM
(#30253260)
There is https://github.com/lauriat/funct
which has some of those higher level functions.