Pocket Utils

Warning

A lot of this documentation is out of date.

Introduction / getting started

To install pocketutils and its optional packages via pip, run:

pip install pocketutils[all]

You can avoid installing some dependencies by installing only what you need. For example:

pip install pocketutils
pip install pocketutils[numeric]

The optional dependency sets are:

  • tools

  • plotting

  • notebooks

  • misc

You can import the most general-purpose parts of pocketutils like this:

from pocketutils.full import *

print(Tools)

This will load:

  • Tools, containing various utility functions

  • Chars, containing common Unicode characters

  • abcd, containing decorators

  • ~10 miscellaneous classes, such as SmartEnum

  • a collection of exceptions such as MultipleMatchesError and DataWarning

  • numpy as np and pandas as pd