aedg_metadata.helpers#

Functions to help things along.

Functions#

check_fields(package)

Function to check that all the columns in the file are described.

check_schema(package)

Function from OEMetadata to check schema against standard

parse_csv_header(package)

Get the header line from the URL of a CSV documented in a data package.

Module Contents#

aedg_metadata.helpers.check_fields(package)#

Function to check that all the columns in the file are described.

Parameters:

package (dict[Any, Any])

Return type:

None

aedg_metadata.helpers.check_schema(package)#

Function from OEMetadata to check schema against standard

Parameters:

package (dict[Any, Any])

Return type:

None

aedg_metadata.helpers.parse_csv_header(package)#

Get the header line from the URL of a CSV documented in a data package. Bonus: checks that URL is valid too.

Parameters:

package (dict[Any, Any])

Return type:

Any