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.jsonfile.
Returns
SproutProperties-
A
SproutPropertiesobject with the properties from thedatapackage.jsonfile.
Raises
so.errors.FileDoesNotExistError-
If the file cannot be found.
so.errors.JSONFormatError-
If the JSON file is malformatted.