Boltons: A set of BSD-licensed, pure-Python utilities
Toolz is one of my favorite python libraries. I use it all the time. It provides even more of this useful functionality. It also has a sped-up version called Cytoolz written with Cython.https://toolz.readthedocs.iohttps://github.com/pytoolz/cytoolz