utils

Tools for working with pagesizes.

Functions:

convert_from(value, from_)

Convert value to point from the unit specified in from_.

parse_measurement(measurement)

Parse the given measurement.

convert_from(value, from_)[source]

Convert value to point from the unit specified in from_.

Parameters
Return type

Union[float, Tuple[float, …]]

Overloads
parse_measurement(measurement)[source]

Parse the given measurement.

Parameters

measurement (str)

Return type

Union[float, Tuple[float, …]]