read_properties

read_properties(path: Path)

Read in the properties from the datapackage.json file.

Reads the datapackage.json file, checks that it is correct, and then outputs a SproutProperties object.

Parameters

path : Path

The path to the datapackage.json file.

Returns

SproutProperties

A SproutProperties object with the properties from the datapackage.json file.

Raises

so.errors.FileDoesNotExistError

If the file cannot be found.

so.errors.JSONFormatError

If the JSON file is malformatted.