utils

Provides a number of helper functions.

Validate inputs

is_home_connectable()

Checks and returns whether the Railway Codes website is reacheable.

is_str_float(x)

Checks and returns whether a string represents a float value.

validate_initial(x[, as_is])

Validates if a string is a single letter, returning it in upper case or as is.

validate_page_name(cls_instance, page_no, ...)

Retrieves the valid page name corresponding to a given page number.

collect_in_fetch_verbose(data_dir, verbose)

Creates a new parameter that indicates whether to print relevant information to the console.

fetch_all_verbose(data_dir, verbose)

Creates a new parameter that indicates whether to print relevant information to the console.

Save and retrieve pre-packed data

fetch_location_names_errata([k, regex, ...])

Fetches a dictionary or dataframe to rectify location names.