utils¶
Provides a number of helper functions.
Validate inputs¶
Checks and returns whether the Railway Codes website is reachable. |
|
|
Checks if a string represents and can be converted to a finite float value. |
|
Validates if a value is a single ASCII letter. |
|
Retrieves the valid page name corresponding to a given page number. |
|
Creates a new parameter that indicates whether to print relevant information to the console. |
|
Creates a new parameter that indicates whether to print relevant information to the console. |
Print messages¶
|
Format a message confirming whether to proceed with collecting a dataset. |
|
Prints a message indicating the status of data collection. |
|
Checks the Internet connection and prints a warning if the source is unreachable. |
|
Handle connection errors occurring during data processing or update lifecycles. |
|
Prints a warning message when the data collection process fails and no fresh data was collected. |
Save and retrieve pre-packed data¶
|
Fetches a dictionary or dataframe to rectify location names. |