pytoolz/toolz
View on GitHub ↗ ★ 5,161 Python
A functional standard library for Python.
13 mentions on Hacker News by 11 people: 5 stories, 8 comments · first 2015-05-11 · latest 2025-01-20
20082026
-
In Python you have the wonderful https://github.com/pytoolz/toolz from toolz import pipe pipe('hello',lambda w: ( "foo", w ), lambda y: [ 0, y, 1 ]) [0, ('foo', 'hello'), 1] You can used named functions, but they would need to be define…
comment by sitkack · 2025-01-20 · in All Lisp indentation schemes are ugly -
…expressiveness: - https://github.com/python-attrs/attrs - https://github.com/mahmoud/glom - https://github.com/pytoolz/toolz - https://github.com/Suor/funcy - https://github.com/dabeaz/curio ps: dabaez has great educational content on…
comment by racrui · 2023-07-19 · in Ask HN: How can I get better at writing production-level Python? -
…cover your use cases? There is also a Cython implementation if you need better performance. [0] https://github.com/pytoolz/toolz/
comment by 41b696ef1113 · 2022-02-08 · in Show HN: Koda, a typesafe functional toolkit for Python -
I am with you on this. Personally, I would rather continue using Toolz ( https://github.com/pytoolz/toolz ), and contribute additional helper/utility methods to that library. The whole point of some things being functions versus methods is…
comment by nerdponx · 2021-01-10 · in Show HN: Array – A Better Python List -
…who regularly writes stuff like zip(seq, islice(seq, 1, None))) may enjoy the `itertoolz` library https://github.com/pytoolz/toolz which (among many other handy functions) has a sliding_window function: def sliding_window(n, seq): """ A…
comment by heisenzombie · 2020-10-11 · in Interrupted Loops -
I recommend PyToolz, "set of utility functions for iterators, functions, and dictionaries": https://github.com/pytoolz/toolz The functions in PyToolz are short, well tested and idiomatic Python (thought the functional programming paradigm…
comment by shoyer · 2015-07-16 · in Ask HN: Good Python codebases to read? -
toolz is pretty good at lazy fp in python : https://github.com/pytoolz/toolz
comment by Lofkin · 2015-05-11 · in PyCon 2015: Are we still changing the world?