hub.api.info

class hub.api.info.Info

Contains optional key-value pairs that can be stored for datasets/tensors.

__getattribute__(name: str) Any

Allows access to info values using the . syntax. Example: info.description.

clear()

Clear info.

get(key, default=None)

Get value for key from info.

items()

Return all items in info.

keys()

Return all keys in info.

property nbytes

Returns size of info stored in bytes.

pop(key, default=None)

Pop item from info by key.

popitem()

Pop item from info.

replace_with(d)

Replace info with another dictionary.

setdefault(key, default=None)

Set default value for a key in info.

update(*args, **kwargs)

Update info.

values()

Return all values in info.