boltons

Set of pure-Python utility functions complementing the standard library

pipmacoslinuxwindows
Try with needOr install directly
Source

About

When they're not builtins, they're boltons.

Commands

boltons

Examples

Import and use table utilities for formatting data$ python -c "from boltons.tableutils import Table; t = Table.from_data([('Name', 'Age'), ('Alice', 30), ('Bob', 25)]); print(t)"
Use iteration utilities to chunk a list$ python -c "from boltons.iterutils import chunked; print(list(chunked(range(10), 3)))"
Use dictionary utilities for deep merging$ python -c "from boltons.dictutils import merge; d1 = {'a': 1}; d2 = {'b': 2}; print(merge(d1, d2))"