Skip to content

utils

are_two_lists_same(list_one, list_two)

Compares the contents of two lists

camel_case_split(identifier)

Splits CamelCase string to it's tokens

compare_nouns(word1, word2)

Singular/plural insensitive word comparison

compare_two_token_lists(token_list_one, token_list_two)

Compares to word lists one by one in lowercase

find_all_yaml_files(directory)

Find all .yaml files in a directory with the exception of files starting with "_".

Parameters:

Name Type Description Default
directory str

Directory to search for yaml files

required

Returns:

Type Description
List[str]

List[str]: List of yaml file paths

get_all_available_services(session)

Gets available services from boto3 session

icompare_two_token_lists(token_list_one, token_list_two)

Singular/plural insensitive token list comparison

ifind_similar_names_in_list(search_for, search_in_list)

Case insensitive find in list

is_terraform_aws_resource_type(resource_type)

Check for terraform aws resource type being valid

Parameters:

Name Type Description Default
resource_type str

Check for terraform aws resource type being valid

required

Returns:

Name Type Description
bool bool

is resource type valid

is_word_in_a_list_of_words(word, list_of_words)

Checks if a word is a is in a list_of_words, case insensitive

str_relations(relations)

Stringify list of relations