open#
- barecat._api.open(path, mode='r', auto_codec=False, threadsafe_reader=True)[source]#
Open a Barecat archive.
Deprecated since version Use:
Barecat(path, readonly=True)orBarecat(path, readonly=False)directly.- Parameters:
path – Path to the archive (without suffix).
mode – ‘r’ (read), ‘r+’ (read-write), ‘w+’ (overwrite), ‘a+’ (append), ‘x+’ (exclusive create).
auto_codec – Deprecated. Use
DecodedViewinstead. Will be removed in 1.0.threadsafe_reader – Use thread-local storage for read mode. Default: True.
- Returns:
The opened archive.
- Return type: