π©βπ« IntroductionΒΆ
datahelper is a utility package for handling Python collections like JavaScript lodash
Most functions are inspired by lodash library
Links:
- Project: https://github.com/doondoony/datahelper
- Documentation: https://datahelper.readthedocs.io
- PyPi: https://pypi.python.org/pypi/datahelper
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.
Table Of ContentsΒΆ
StatusΒΆ
The main goal of datahelper project is to migrate most of the functions in lodash to python
datahelper is currently in alpha stage but has a plan to continue updating