caiso_connector

Functions

delete_data_files(search_directory)

Deletes the contents of download directory.

download_csv_file(data_url, directory_path)

Download csv file.

find_csv_files(directory_path)

search directory for csv files.

unzip_csv(directory_path)

unzip csv files.

caiso_connector.download_csv_file(data_url: str, directory_path: str)[source]

Download csv file.

Parameters
  • data_url (str) – source url for data

  • directory_path (str) – location of saved zipped file

caiso_connector.unzip_csv(directory_path: str)[source]

unzip csv files.

Parameters

directory_path (str) – location of saved zipped file

caiso_connector.find_csv_files(directory_path: str)[source]

search directory for csv files.

Parameters

directory_path (str) –

Returns

csv_files – list of files that end in .csv

Return type

list

caiso_connector.delete_data_files(search_directory: str)[source]

Deletes the contents of download directory. If file has .zip for or .csv extension

Parameters

search_directory (str) –