carlogtt_python_library.utils.validators module

This module provides a set of functions and utilities for data validation. It offers various validators to ensure the correctness and integrity of different types of data inputs.

class carlogtt_python_library.utils.validators.InputValidator[source]

Bases: object

A collection of input validation methods for strings, usernames, and passwords. All methods raise ValueError on invalid inputs.

validate_non_empty_strings(**strings: str) dict[str, str][source]

Return a non-empty string without whitespace at the beginning and end of the string.

validate_password_requirements(password_to_validate: str) str[source]

Check if password requirements are met and return a non-empty string without whitespace at the beginning and end of the string.

validate_username_requirements(username_to_validate: str) str[source]

Check if username requirements are met and return a non-empty string without whitespace at the beginning and end of the string.