πŸ‘©β€πŸ« 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.

InstallationΒΆ

You can download it directly from PyPi, or install it via the pip install command

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

Indices and tablesΒΆ