πŸ‘©β€πŸ« IntroductionΒΆ

datahelper is a utility package for handling Python collections like JavaScript lodash

Most functions are inspired by lodash library

Links:

Each module can be imported individually or with a namespace datahelper.

# direct import
>>> from datahelper import pick
# with a namespace
>>> import datahelper

# Test Data
>>> data = {'a': 1, {'b': 'c': 2}}

>>> pick(data, 'b.c')
2
>>> datahelper.head([1,2,3])
1

See also

For more details, see API Reference.