User options utilities package

Submodules

User options utils module

src.utils.user_options_utils.utils.get_input(prompt: str) str[source]

Get user input.

Parameters:

prompt – String prompt

Returns:

String user input

User options verifiers module

src.utils.user_options_utils.verifiers.verify(value: str | None) bool[source]

Verify the value

Parameters:

value – String value

Returns:

Boolean True if valid, False if invalid

src.utils.user_options_utils.verifiers.verify_roles_regex_pattern(roles: str) bool[source]

Verify the roles regex pattern

Returns:

Boolean True if valid, False if invalid

src.utils.user_options_utils.verifiers.verify_password_length(password: str | None) bool[source]

Verify the password length

Parameters:

password – String password

Returns:

Boolean True if valid, False if invalid

src.utils.user_options_utils.verifiers.verify_if_space_exists_near_comma(value: str) bool[source]

Verify if the space exists after a comma in disabled features

Parameters:

value – String value

Returns:

Boolean True if valid, False if invalid

src.utils.user_options_utils.verifiers.verify_if_string_starts_with_comma(value: str) bool[source]

Verify if the string starts with a comma

Parameters:

value – String value

Returns:

Boolean True if valid, False if invalid

src.utils.user_options_utils.verifiers.verify_if_string_ends_with_comma(value: str) bool[source]

Verify if the string ends with a comma

Parameters:

value – String value

Returns:

Boolean True if valid, False if invalid

src.utils.user_options_utils.verifiers.verify_metadata_regex_pattern(metadata: str) bool[source]

Verify the metadata regex pattern

Parameters:

metadata – String metadata

Returns:

Boolean True if valid, False if invalid

src.utils.user_options_utils.verifiers.verify_enabled_regex_pattern(enabled: str) bool[source]

Verify the enabled regex pattern

Parameters:

enabled – String enabled

Returns:

Boolean True if valid, False if invalid

Module contents