itertools
and functools
are good, but there are many basic things they don't include. For example, "find first element in sequence matching predicate", or "flatten a list", or "get element from a nested dict using a sequence of keys".
I'm talking about relatively simple functions that you can implement yourself in under 20 lines of code, using only standard library. Not some sophisticated algorithms and data structures.
I've recently discovered pydash, it's quite powerful, but I don't find it very Pythonic.
Which general-purpose utility package(s) can you recommend?
[ flatten_op(x) for x in list_of_objects ]
so not much need for a library like you'd have in other languages.