src.internal.utils module#

This module contains utility functions that are used throughout the project.

src.internal.utils.camel_case_to_snake_case(string: str) str[source]#

Converts a string from camel case to snake case.

Parameters:

string (str) – Camel case string

Returns:

Snake case string

Return type:

str

src.internal.utils.k8s_safe_name(string: str) str[source]#

Converts a string to a k8s safe name.

A k8s safe name can only contain alphanum chars and hyphens, be lower case and names cannot start with hyphens. Should also be <63 characters long

Parameters:

string (str) – Input string

Returns:

Output string

Return type:

str

src.internal.utils.sanitize_for_url(string: str) str[source]#
src.internal.utils.to_camel_case(string: str) str[source]#

Converts a string to camel case.

Parameters:

string (str) – Input string

Returns:

Camel case string

Return type:

str

src.internal.utils.uncased_to_snake_case(string: str) str[source]#

Converts a string to snake case.

Parameters:

string (str) – Input string

Returns:

Snake case string

Return type:

str