tinker_cookbook.stores.AsyncStorage
class tinker_cookbook.stores.AsyncStorage(Protocol)
Async byte-level file I/O.
aread(path)
Async version of :meth:Storage.read.
Parameters:
- path (str)
awrite(path, data)
Async version of :meth:Storage.write.
Parameters:
- path (str)
- data (bytes)
aappend(path, data)
Async version of :meth:Storage.append.
Parameters:
- path (str)
- data (bytes)
aexists(path)
Async version of :meth:Storage.exists.
Parameters:
- path (str)
astat(path)
Async version of :meth:Storage.stat.
Parameters:
- path (str)
aread_range(path, offset, length)
Async version of :meth:Storage.read_range.
Parameters:
- path (str)
- offset (int)
- length (int | None)
alist_dir(prefix)
Async version of :meth:Storage.list_dir.
Parameters:
- prefix (str)
aremove(path)
Async version of :meth:Storage.remove.
Parameters:
- path (str)
aremove_dir(path)
Async version of :meth:Storage.remove_dir.
Parameters:
- path (str)