Space options utilities package

Submodules

Space options utils module

src.utils.space_options_utils.utils.get_image_url_image_type(image_url: str | None) str | None[source]

Get the image URL image type

Parameters:

image_url – String image URL

Returns:

String image type

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

Get user input.

Parameters:

prompt – String prompt

Returns:

String user input

Space options verifiers module

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

Verify the value :param value: String value :return: Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_space_id(space_id: str) bool[source]

Verify the space ID :param space_id: String space ID :return: Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_initials_len(initials: str | None) bool[source]

Verify if the initials are between 1 and 2 characters :param initials: String initials :return: Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_if_color_starts_with_hash(color: str | None) bool[source]

Verify if the color starts with a hash :param color: String color :return: Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_if_color_has_seven_characters(color: str | None) bool[source]

Verify if the color has seven characters :param color: String color :return: Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_color_regex_pattern(color: str | None) bool[source]

Verify the color regex pattern :param color: String color :return: Boolean True if valid, False if invalid

src.utils.space_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.space_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.space_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.space_options_utils.verifiers.verify_disabled_features_regex_pattern(disabled_features: str) bool[source]

Verify the disabled features regex pattern

Parameters:

disabled_features – String disabled features

Returns:

Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_if_image_url_starts_with_data_image(image_url: str | None) bool[source]

Verify if the image URL starts with data:image

Parameters:

image_url – String image URL

Returns:

Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_if_image_url_has_image_type(image_url: str | None) bool[source]

Verify if the image URL has an image type

Parameters:

image_url – String image URL

Returns:

Boolean True if valid, False if invalid

src.utils.space_options_utils.verifiers.verify_if_image_url_is_base64_encoded(image_url: str | None) bool[source]

Verify if the image URL is base64 encoded

Parameters:

image_url – String image URL

Returns:

Boolean True if valid, False if invalid

Module contents