get_file_metadata

Summary

get_file_metadata(url: str, gdrive_api_key: str) FileMetadata

This function downloads files and returns metadata about them.

Parameters:
  • url (str) – The web address of a file to download.

  • gdrive_api_key (str) – A valid Google Drive API key. Used when the file to be downloaded is hosted on that service. Not otherwise used.

Returns:

A FileMetadata object representing the metadata of the object whose URL was passed into the function.

Return type:

FileMetadata

Importing

from cs_board_tools.validation.network import get_file_metadata