open#

barecat.open(path, mode='r', auto_codec=False, threadsafe_reader=True)[source]#

Open a Barecat archive.

Deprecated since version Use: Barecat(path, readonly=True) or Barecat(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_codecDeprecated. Use DecodedView instead. Will be removed in 1.0.

  • threadsafe_reader – Use thread-local storage for read mode. Default: True.

Returns:

The opened archive.

Return type:

Barecat