pytools#

A collection of Python extensions and tools used in BCG GAMMA’s open-source libraries.

Please see the release notes for recent API updates and bug fixes.

Submodules#

pytools.api

Basic tools for API development, supporting documentation, deprecation, and run-time validation.

pytools.asyncio

Utilities for async programming.

pytools.data

Common data structures.

pytools.expression

Representations of Python expressions and support for pretty-printed multi-line output.

pytools.fit

Support for fitting objects to data, and testing whether an object is fitted.

pytools.http

Simple HTTP client and server tools.

pytools.meta

Useful meta-classes.

pytools.parallelization

Parallelization support based on the joblib package.

pytools.repr

Alternative representations of objects.

pytools.sphinx

Supporting tools and autodoc enhancements for generating Sphinx documentation.

pytools.text

Utilities for rendering and manipulating text.

pytools.typing

Utilities for run-time type inference.

pytools.viz

A lean MVC framework for rendering basic visualizations in different styles, e.g., as matplotlib charts, HTML, or as plain text.