pardata.schema.FormatSchemaCollection.export_schema

FormatSchemaCollection.export_schema(*keys)

Returns a copy of a loaded schema collection. Should be used for debug purposes only.

Parameters

keys (str) – The sequence of keys that leads to the portion of the schemata to be exported.

Returns

Copy of the schema dictionary.

Return type

Dict[str, Any]

Example:

>>> schema_collection = DatasetSchemaCollection('./tests/schemata/datasets.yaml')
>>> schema_collection.export_schema('datasets', 'noaa_jfk', '1.1.4')
{'name': 'NOAA Weather Data – JFK Airport'...}