Hacker GitHub

← All repos

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

Mentions per year 13 mentions · busiest year 2015 (3)
20082026
  1. ▲ 3
    Toolz: A functional standard library for Python with no dependencies
    story by behnamoh · 2025-01-20 · 0 comments
  2. 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
  3. …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…
  4. This library might be of interest to you: https://github.com/pytoolz/toolz Specifically: https://toolz.readthedocs.io/en/latest/api.html#toolz.functo...
    comment by stefcoetzee · 2023-04-10 · in REBL
  5. ▲ 2
    Toolz: A Functional Standard Library For Python
    story by optimalsolver · 2022-10-07 · 1 comment
  6. …cover your use cases? There is also a Cython implementation if you need better performance. [0] https://github.com/pytoolz/toolz/
  7. ▲ 166
    Toolz: A functional standard library for Python
    story by optimalsolver · 2021-01-21 · 108 comments
  8. 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
  9. …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
  10. ▲ 4
    Toolz: A Functional Standard Library for Python
    story by reedwolf · 2020-07-11 · 0 comments
  11. 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?
  12. ▲ 84
    Toolz: A functional standard library for Python
    story by Lofkin · 2015-05-12 · 27 comments
  13. toolz is pretty good at lazy fp in python : https://github.com/pytoolz/toolz