write_properties

write_properties(properties: Properties, path: Path)

Write properties to a local datapackage file and return the path.

Parameters

properties : Properties

The Data Package Properties to write.

path : Path

The file path to write the properties to.

Return

The path for the file that was just written.

Raises

FileNotFoundError

If the parent directory of the target file does not exist.

TypeError

If properties is not JSON serializable.