A collection of fancy functional tools focused on practicality

A collection of fancy functional tools focused on practicality. Inspired by clojure, underscore and my own abstractions. Keep reading to get an overview or read the docs. Or jump directly to cheatsheet. Works with Python 2.7, 3.4+ and pypy. Installation pip install funcy Overview Import stuff from funcy to make things happen: from funcy import whatever, you, need Merge collections of same type (works for dicts, sets, lists, tuples, iterators and even strings): merge(coll1, coll2, coll3, …) join(colls) merge_with(sum, dict1, […]

Read more