nourish.schema.FormatSchemata.export_schema¶
-
FormatSchemata.export_schema(*keys)¶ Returns a copy of a loaded schemata. Typically used to export a schema contained within the schemata.
- Parameters
keys (str) – The sequence of keys that leads to the portion of the schemata to be exported.
- Returns
Copy of the schemata dictionary.
- Return type
Dict[str, Any]
Example:
>>> dataset_schemata = DatasetSchemata('./tests/schemata/datasets.yaml') >>> jfk_schema = dataset_schemata.export_schema('datasets', 'noaa_jfk', '1.1.4') >>> jfk_schema {'name': 'NOAA Weather Data – JFK Airport'...}