caterva2.Client.append#
- Client.append(remotepath, data)#
Appends data to the remote location.
- Parameters:
- Returns:
The new shape of the dataset.
- Return type:
tuple
Examples
>>> import caterva2 as cat2 >>> import numpy as np >>> # To upload a file you need to be authenticated as an already registered used >>> client = cat2.Client('https://cat2.cloud/demo', ("joedoe@example.com", "foobar")) >>> path = '@personal/ds-1d.b2nd' >>> client.copy('@public/examples/ds-1d.b2nd', path) PurePosixPath('@personal/ds-1d.b2nd') >>> ndarray = blosc2.arange(0, 10) >>> client.append(path, ndarray) (1010,)