Pydash: a useful bunch of Python tools

Some common tasks in Python are harder than they need to be.

Pydash is a nice library that attempts to plug some of those gaps as in these examples:

import pydash

# Arrays
pydash.flatten([1, 2, [3, [4, 5, [6, 7]]]])
[1, 2, 3, [4, 5, [6, 7]]]

pydash.flatten_deep([1, 2, [3, [4, 5, [6, 7]]]])
[1, 2, 3, 4, 5, 6, 7]

# Collections
pydash.map_([{'name': 'moe', 'age': 40}, {'name': 'larry', 'age': 50}], 'name')
['moe', 'larry']

# Functions
curried = pydash.curry(lambda a, b, c: a + b + c)
curried(1, 2)(3)

🛎️ Why this matters: This is a handy bunch of tools

📖 Read more (1026 words) 📖