caterva2.Client.get_info#
- Client.get_info(path)#
Retrieves information about a specified dataset.
- Parameters:
path¶ (str) – Path to the dataset.
- Returns:
Dictionary of dataset properties, mapping property names to their values.
- Return type:
dict
Examples
>>> import caterva2 as cat2 >>> client = cat2.Client('https://demo.caterva2.net') >>> client.subscribe('example') 'Ok' >>> path = 'example/ds-2d-fields.b2nd' >>> info = client.get_info(path) >>> info.keys() dict_keys(['shape', 'chunks', 'blocks', 'dtype', 'schunk', 'mtime']) >>> info['shape'] [100, 200]