form.filters

Functions

as_float(→ float)

strip_whitespace(→ str | None)

Strips all leading and trailing whitespace from data.

yubikey_identifier(→ str)

Module Contents

form.filters.as_float(value: str | None) → float[source]
form.filters.strip_whitespace(value: str | None) → str | None[source]

Strips all leading and trailing whitespace from data.

Please note that you will need both InputRequired and DataRequired in the validators if the field is non-optional. InputRequired only looks at the raw data before filtering, and DataRequired only looks at the raw data after filtering.

form.filters.yubikey_identifier(value: str | None) → str[source]