Package¶
Here is a list of available actions for Data Package
check_package
-- check the descriptor against JSON Schema(s)convert_package
-- convert the descriptor from one notation to another
Reference¶
dplib.actions.package.check.check_package(package)
¶
Check the validity of a Data Package descriptor
This validates the descriptor against the JSON Schema profiles to ensure conformity with Data Package standard and Data Package extensions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
package |
Union[str, IDict, Package]
|
The Data Package descriptor |
required |
Returns:
Type | Description |
---|---|
List[MetadataError]
|
A list of errors |
Source code in dplib/actions/package/check.py
dplib.actions.package.convert.convert_package(path, *, format=None, source=None, target=None)
¶
Convert a Data Package descriptor from one notation to another
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
str
|
Path to the descriptor |
required |
format |
Optional[str]
|
Format of the descriptor |
None
|
source |
Optional[INotation]
|
Source notation e.g. ckan (default dp) |
None
|
target |
Optional[INotation]
|
Target notation e.g. dcat (default dp) |
None
|
Returns:
Type | Description |
---|---|
Model
|
Package model |