pythontk is a collection of backend utilities for Python.
To install:
Add the pythontk
folder to a directory on your python path, or
install via pip in a command line window using:
python -m pip install pythontk
import pythontk as ptk
ptk.filter_list([0, 1, 2, 3, 2], [1, 2, 3], 2)
# Returns: [1, 3]
ptk.filter_dict({1:'1', 'two':2, 3:'three'}, exc='t*', keys=True)
# Returns: {1: '1', 3: 'three'}