module best_of.utils
June 18, 2023 · View on GitHub
module best_of.utils
Global Variables
- url_validator
function simplify_str
simplify_str(text: str) → str
function diff_month
diff_month(date1: datetime, date2: datetime) → int
function clean_whitespaces
clean_whitespaces(text: str) → str
function simplify_number
simplify_number(num: int) → str
function remove_special_chars
remove_special_chars(text: str) → str
function process_description
process_description(text: str, max_length: int) → str
function is_valid_url
is_valid_url(url: str) → bool
function exit_process
exit_process(code: int = 0) → None
Exit the process with exit code.
sys.exit seems to be a bit unreliable, process just sleeps and does not exit. So we are using os._exit instead and doing some manual cleanup.
This file was automatically generated via lazydocs.