spekk.util

spekk.util#

Utility functions for spekk.

Modules

flatten(obj, spec, dimension)

Flatten/decompose the obj into a flattened list such that parts with the given dimension are separate items from those without the dimension.

shape(x)

Get the shape of an array, number, or a nested sequence of numbers.

slicing

Slice data using a Spec.

validation

Validate data according to a Spec.