PyDocs

Nav

Data Compression and Archiving

ZstdFile

  • ZstdFile(file, /, mode='rb', *, level=None, options=None, zstd_dict=None)
A file-like object providing transparent Zstandard (de)compression.

A ZstdFile can act as a wrapper for an existing file object, or refer
directly to a named file on disk.

ZstdFile provides a *binary* file interface. Data is read and returned as
bytes, and may only be written to objects that support the Buffer Protocol.
Members of ZstdFile

m

mode
'rb' for reading and 'wb' for writing.

n

name
The name of the Zstandard file.

p

peek
Return buffered data without advancing the file position.
0 Examples
No examples for compression.zstd/ZstdFile.
See Also
No see-alsos for compression.zstd/ZstdFile
0 Notes
No notes for ZstdFile