squirrel.driver.msgpack

Module Contents

Classes

MessagepackDriver

A StoreDriver that by default uses SquirrelStore with messagepack serialization.

class squirrel.driver.msgpack.MessagepackDriver(url: str, storage_options: dict[str, Any] | None = None, **kwargs)

Bases: squirrel.driver.store.StoreDriver

A StoreDriver that by default uses SquirrelStore with messagepack serialization.

Initializes MessagepackDriver with default serializer. See parent class for more options.

Parameters
  • url (str) – Path to the root directory. If this path does not exist, it will be created.

  • storage_options (Dict) – a dictionary containing storage_options to be passed to fsspec. Example of storage_options if you want to enable fsspec caching: storage_options={“protocol”: “simplecache”, “target_protocol”: “gs”, “cache_storage”: “path/to/cache”}

  • **kwargs – Keyword arguments passed to the super class initializer.

name = messagepack