common

Description

Simple utility functions common to different types of transformations, and trafo builders.

Classes

Compose

Compose several transforms by sequentially executing them.

Lambda

Generic lambda transformation that applies the given function.

Transform

Base class for transformations.

Functions

general_add(first, second, *, composition_class)

Return a flat, associative composition of first and second.

lazy_format(string, **formatting_args)

Replace all keys from formatting_args that can be found in string.

settings_to_repr(obj, settings)

Given an object and a dict of its settings, return a representation str.