betty.assertions.len module

Length assertions.

betty.assertions.len.assert_len(exact: int | None = None, *, minimum: int | None = None, maximum: int | None = None) Pipeline

Assert the length of a value.

This assertion can be used in two ways: - with an exact required length - with minimum and/or maximum bounds (inclusive)