stuffer.utils module

Unsorted utility classes and routines.

class stuffer.utils.NaturalReprMixin[source]

Bases: object

Mixin class that provides a __repr__ implementation calling natural_object_repr.

stuffer.utils.natural_object_repr(obj)[source]

A string representation of an object, matching the its appearance in code.

stuffer.utils.natural_repr(obj)[source]

A string representation of a Python entity, matching the its appearance in code.

stuffer.utils.str_split(cmd)[source]

Split a string by whitespace, unless it is already a list.