Skip to main content

Module input

Module input 

Source
Expand description

Validation helpers for path and text inputs.

Functionsยง

reject_unicode_controls
Reject control characters that can hide or reorder text.
validate_optional_trimmed
Validate an optional string when present and return None for absent values.
validate_path_safe_identifier
Validate a required identifier that is safe to use as a path segment.
validate_required_trimmed
Validate a required string that must not contain leading or trailing whitespace.
validate_safe_path
Validate that a path-like input cannot traverse outside its base.