Resources.input_validation
index
c:\users\adamj\onedrive\pulpit\olx-scrapper\src\resources\input_validation.py

 
Modules
       
re

 
Functions
       
validate_dimension(value: int) -> int
Validate the width and height to ensure they are between 100 and 3000.
:param value: Dimension to validate.
:return: Validated dimension.
validate_filename(filename: str) -> str
Validate the filename to ensure it only contains letters, numbers, and underscores.
:param filename: Filename to validate.
:return: Validated filename.
validate_fontsize(value: int) -> int
Validate the font size to ensure it is between 8 and 24.
:param value: Font size to validate.
:return: Validated font size.
validate_page_limit(page_limit: int) -> int
Validate the page limit to ensure it is between 1 and 10.
:param page_limit: Page limit to validate.
:return: Validated page limit.