chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
1a6378a3-c6f0-4758-87d6-c3afa0849170
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,670
supabase-export-v2
6fa5642ae9f7d1bc
In text mode, a :class:`ZstdFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified encoding, error handling behavior, and line endings. .. class:: ZstdFile(file, /, mode='rb', *, level=None, options=None, \ zstd_dict=None)
trusted_official_docs
CPython Docs
In text mode, a :class:`ZstdFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified encoding, error handling behavior, and line endings. .. class:: ZstdFile(file, /, mode='rb', *, level=None, options=None, \ zstd_dict=None)
In text mode, a :class:`ZstdFile` object is created, and wrapped in an :class:`io.TextIOWrapper` instance with the specified encoding, error handling behavior, and line endings. .. class:: ZstdFile(file, /, mode='rb', *, level=None, options=None, \ zstd_dict=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e872662-a71d-4b25-8fa7-69c07d132470
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,756
supabase-export-v2
154780072afcc4a1
dictionary, without any format restrictions. ``False`` means *dict_content* is an ordinary Zstandard dictionary, created from Zstandard functions, for example, :func:`train_dict` or the external :program:`zstd` CLI. When passing a :class:`!ZstdDict` to a function, the :attr:`!as_digested_dict` and :attr:`!as_undigeste...
trusted_official_docs
CPython Docs
dictionary, without any format restrictions. ``False`` means *dict_content* is an ordinary Zstandard dictionary, created from Zstandard functions, for example, :func:`train_dict` or the external :program:`zstd` CLI. When passing a :class:`!ZstdDict` to a function, the :attr:`!as_digested_dict` and :attr:`!as_undigeste...
dictionary, without any format restrictions. ``False`` means *dict_content* is an ordinary Zstandard dictionary, created from Zstandard functions, for example, :func:`train_dict` or the external :program:`zstd` CLI. When passing a :class:`!ZstdDict` to a function, the :attr:`!as_digested_dict` and :attr:`!as_undigeste...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1f19bded-9dcb-4859-81ad-7e13b23b6ea2
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,895
supabase-export-v2
3245cb4eaeea140b
from compression import zstd comp = zstd.ZstdCompressor() out1 = comp.compress(b"Some data\n") out2 = comp.compress(b"Another piece of data\n") out3 = comp.compress(b"Even more data\n") out4 = comp.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4])
trusted_official_docs
CPython Docs
from compression import zstd comp = zstd.ZstdCompressor() out1 = comp.compress(b"Some data\n") out2 = comp.compress(b"Another piece of data\n") out3 = comp.compress(b"Even more data\n") out4 = comp.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4])
from compression import zstd comp = zstd.ZstdCompressor() out1 = comp.compress(b"Some data\n") out2 = comp.compress(b"Another piece of data\n") out3 = comp.compress(b"Even more data\n") out4 = comp.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4])
python, official-docs, cpython, P0
Local_Trusted_Corpus
21eed99a-42ec-410a-8962-f33eb614955d
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,876
supabase-export-v2
effa7c81d8897252
.. attribute:: dictionary_id An integer representing the Zstandard dictionary ID needed for decompressing the frame. ``0`` means the dictionary ID was not recorded in the frame header. This may mean that a Zstandard dictionary is not needed, or that the ID of a required dictionary was not recorded.
trusted_official_docs
CPython Docs
.. attribute:: dictionary_id An integer representing the Zstandard dictionary ID needed for decompressing the frame. ``0`` means the dictionary ID was not recorded in the frame header. This may mean that a Zstandard dictionary is not needed, or that the ID of a required dictionary was not recorded.
.. attribute:: dictionary_id An integer representing the Zstandard dictionary ID needed for decompressing the frame. ``0`` means the dictionary ID was not recorded in the frame header. This may mean that a Zstandard dictionary is not needed, or that the ID of a required dictionary was not recorded.
python, official-docs, cpython, P0
Local_Trusted_Corpus
24576996-38cb-42be-a6b3-c6a4af9ecee6
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,843
supabase-export-v2
4a7d62991d740502
.. attribute:: job_size Size of a compression job, in bytes. This value is enforced only when :attr:`~CompressionParameter.nb_workers` >= 1. Each compression job is completed in parallel, so this value can indirectly impact the number of active threads.
trusted_official_docs
CPython Docs
.. attribute:: job_size Size of a compression job, in bytes. This value is enforced only when :attr:`~CompressionParameter.nb_workers` >= 1. Each compression job is completed in parallel, so this value can indirectly impact the number of active threads.
.. attribute:: job_size Size of a compression job, in bytes. This value is enforced only when :attr:`~CompressionParameter.nb_workers` >= 1. Each compression job is completed in parallel, so this value can indirectly impact the number of active threads.
python, official-docs, cpython, P0
Local_Trusted_Corpus
27b54706-e00e-494a-a9c1-510426f4da15
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,795
supabase-export-v2
ffc264f2626a9a71
.. attribute:: chain_log Size of the multi-probe search table, as a power of two. The resulting memory usage is ``1 << (chain_log+2)`` bytes. Larger tables result in better and slower compression. This parameter has no effect for the :attr:`~Strategy.fast` strategy. It's still useful when using :attr:`~Strategy.dfa...
trusted_official_docs
CPython Docs
.. attribute:: chain_log Size of the multi-probe search table, as a power of two. The resulting memory usage is ``1 << (chain_log+2)`` bytes. Larger tables result in better and slower compression. This parameter has no effect for the :attr:`~Strategy.fast` strategy. It's still useful when using :attr:`~Strategy.dfa...
.. attribute:: chain_log Size of the multi-probe search table, as a power of two. The resulting memory usage is ``1 << (chain_log+2)`` bytes. Larger tables result in better and slower compression. This parameter has no effect for the :attr:`~Strategy.fast` strategy. It's still useful when using :attr:`~Strategy.dfa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2865355d-3044-420c-8606-38ad4e6a6a85
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,674
supabase-export-v2
c821a46315781027
reading (default), ``'wb'`` for overwriting, ``'xb'`` for exclusive creation, or ``'ab'`` for appending. These can equivalently be given as ``'r'``, ``'w'``, ``'x'`` and ``'a'`` respectively. If *file* is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equi...
trusted_official_docs
CPython Docs
reading (default), ``'wb'`` for overwriting, ``'xb'`` for exclusive creation, or ``'ab'`` for appending. These can equivalently be given as ``'r'``, ``'w'``, ``'x'`` and ``'a'`` respectively. If *file* is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equi...
reading (default), ``'wb'`` for overwriting, ``'xb'`` for exclusive creation, or ``'ab'`` for appending. These can equivalently be given as ``'r'``, ``'w'``, ``'x'`` and ``'a'`` respectively. If *file* is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2d9fd306-3a2f-4f12-a215-af80c39aad44
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,696
supabase-export-v2
07f542ee9003ac77
The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data used during compression. This must be the same Zstandard dictionary used during compression. If *data* is the concatenation of multiple distinct compressed frames, decompress all of these frames, and return the concatenation of the re...
trusted_official_docs
CPython Docs
The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data used during compression. This must be the same Zstandard dictionary used during compression. If *data* is the concatenation of multiple distinct compressed frames, decompress all of these frames, and return the concatenation of the re...
The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data used during compression. This must be the same Zstandard dictionary used during compression. If *data* is the concatenation of multiple distinct compressed frames, decompress all of these frames, and return the concatenation of the re...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2f33308c-b78d-4349-b244-1edea7cb551d
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,831
supabase-export-v2
bd8dafdb3a409d71
that will be provided to the compressor prior to any calls to :meth:`ZstdCompressor.compress` for the current frame. :meth:`!ZstdCompressor.set_pledged_input_size` must be called for each new frame. All other compression calls may not write the size information into the frame header.
trusted_official_docs
CPython Docs
that will be provided to the compressor prior to any calls to :meth:`ZstdCompressor.compress` for the current frame. :meth:`!ZstdCompressor.set_pledged_input_size` must be called for each new frame. All other compression calls may not write the size information into the frame header.
that will be provided to the compressor prior to any calls to :meth:`ZstdCompressor.compress` for the current frame. :meth:`!ZstdCompressor.set_pledged_input_size` must be called for each new frame. All other compression calls may not write the size information into the frame header.
python, official-docs, cpython, P0
Local_Trusted_Corpus
34211b0c-8c3c-428f-93a5-e9841efe7132
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,731
supabase-export-v2
4852f41ac129f032
case, the next call to :meth:`~.decompress` may provide *data* as ``b''`` to obtain more of the output. The full content can thus be read like:: process_output(d.decompress(data, max_length)) while not d.eof and not d.needs_input: process_output(d.decompress(b"", max_length))
trusted_official_docs
CPython Docs
case, the next call to :meth:`~.decompress` may provide *data* as ``b''`` to obtain more of the output. The full content can thus be read like:: process_output(d.decompress(data, max_length)) while not d.eof and not d.needs_input: process_output(d.decompress(b"", max_length))
case, the next call to :meth:`~.decompress` may provide *data* as ``b''`` to obtain more of the output. The full content can thus be read like:: process_output(d.decompress(data, max_length)) while not d.eof and not d.needs_input: process_output(d.decompress(b"", max_length))
python, official-docs, cpython, P0
Local_Trusted_Corpus
37e3b7ae-e180-43c9-b59b-33dee94331c9
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,857
supabase-export-v2
a7cae0bb3e0d74ba
.. method:: bounds() Return the tuple of int bounds, ``(lower, upper)``, of a decompression parameter. This method should be called on the attribute you wish to retrieve the bounds of.
trusted_official_docs
CPython Docs
.. method:: bounds() Return the tuple of int bounds, ``(lower, upper)``, of a decompression parameter. This method should be called on the attribute you wish to retrieve the bounds of.
.. method:: bounds() Return the tuple of int bounds, ``(lower, upper)``, of a decompression parameter. This method should be called on the attribute you wish to retrieve the bounds of.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c84456e-b727-406a-9b76-cee9e4eec859
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,689
supabase-export-v2
519e9642ef7fa798
Compress *data* (a :term:`bytes-like object`), returning the compressed data as a :class:`bytes` object. The *level* argument is an integer controlling the level of compression. *level* is an alternative to setting :attr:`CompressionParameter.compression_level` in *options*. Use :meth:`~CompressionParameter.bounds` ...
trusted_official_docs
CPython Docs
Compress *data* (a :term:`bytes-like object`), returning the compressed data as a :class:`bytes` object. The *level* argument is an integer controlling the level of compression. *level* is an alternative to setting :attr:`CompressionParameter.compression_level` in *options*. Use :meth:`~CompressionParameter.bounds` ...
Compress *data* (a :term:`bytes-like object`), returning the compressed data as a :class:`bytes` object. The *level* argument is an integer controlling the level of compression. *level* is an alternative to setting :attr:`CompressionParameter.compression_level` in *options*. Use :meth:`~CompressionParameter.bounds` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3ea8449e-7c3f-4386-9040-0b9e0537e324
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,835
supabase-export-v2
376ffbfbd27bc3c8
content is written at the end of each frame. Zstandard's decompression code verifies the checksum. If there is a mismatch a :class:`ZstdError` exception is raised. ``True`` or ``1`` enable checksum generation while ``False`` or ``0`` disable it.
trusted_official_docs
CPython Docs
content is written at the end of each frame. Zstandard's decompression code verifies the checksum. If there is a mismatch a :class:`ZstdError` exception is raised. ``True`` or ``1`` enable checksum generation while ``False`` or ``0`` disable it.
content is written at the end of each frame. Zstandard's decompression code verifies the checksum. If there is a mismatch a :class:`ZstdError` exception is raised. ``True`` or ``1`` enable checksum generation while ``False`` or ``0`` disable it.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3fc983f3-c39b-4ef8-9feb-7f26c7347ed1
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,666
supabase-export-v2
14089aef4a6e1358
can equivalently be given as ``'r'``, ``'w'``, ``'a'``, and ``'x'`` respectively. You may also open in text mode with ``'rt'``, ``'wt'``, ``'at'``, and ``'xt'`` respectively. When reading, the *options* argument can be a dictionary providing advanced decompression parameters; see :class:`DecompressionParameter` for de...
trusted_official_docs
CPython Docs
can equivalently be given as ``'r'``, ``'w'``, ``'a'``, and ``'x'`` respectively. You may also open in text mode with ``'rt'``, ``'wt'``, ``'at'``, and ``'xt'`` respectively. When reading, the *options* argument can be a dictionary providing advanced decompression parameters; see :class:`DecompressionParameter` for de...
can equivalently be given as ``'r'``, ``'w'``, ``'a'``, and ``'x'`` respectively. You may also open in text mode with ``'rt'``, ``'wt'``, ``'at'``, and ``'xt'`` respectively. When reading, the *options* argument can be a dictionary providing advanced decompression parameters; see :class:`DecompressionParameter` for de...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4096a99b-a187-4fd2-9444-fbf41c3ac0a5
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,672
supabase-export-v2
8d9b5b4fc8559d9a
Open a Zstandard-compressed file in binary mode. A :class:`ZstdFile` can wrap an already-open :term:`file object`, or operate directly on a named file. The *file* argument specifies either the file object to wrap, or the name of the file to open (as a :class:`str`, :class:`bytes` or :term:`path-like <path-like objec...
trusted_official_docs
CPython Docs
Open a Zstandard-compressed file in binary mode. A :class:`ZstdFile` can wrap an already-open :term:`file object`, or operate directly on a named file. The *file* argument specifies either the file object to wrap, or the name of the file to open (as a :class:`str`, :class:`bytes` or :term:`path-like <path-like objec...
Open a Zstandard-compressed file in binary mode. A :class:`ZstdFile` can wrap an already-open :term:`file object`, or operate directly on a named file. The *file* argument specifies either the file object to wrap, or the name of the file to open (as a :class:`str`, :class:`bytes` or :term:`path-like <path-like objec...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4265fc85-9b4b-495e-80ff-a2c5960badf4
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,792
supabase-export-v2
76eead5316aa1bef
.. attribute:: hash_log Size of the initial probe table, as a power of two. The resulting memory usage is ``1 << (hash_log+2)`` bytes. Larger tables improve compression ratio of strategies <= :attr:`~Strategy.dfast`, and improve compression speed of strategies > :attr:`~Strategy.dfast`.
trusted_official_docs
CPython Docs
.. attribute:: hash_log Size of the initial probe table, as a power of two. The resulting memory usage is ``1 << (hash_log+2)`` bytes. Larger tables improve compression ratio of strategies <= :attr:`~Strategy.dfast`, and improve compression speed of strategies > :attr:`~Strategy.dfast`.
.. attribute:: hash_log Size of the initial probe table, as a power of two. The resulting memory usage is ``1 << (hash_log+2)`` bytes. Larger tables improve compression ratio of strategies <= :attr:`~Strategy.dfast`, and improve compression speed of strategies > :attr:`~Strategy.dfast`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
45a51632-1e32-43ef-9747-630b92aea51b
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,706
supabase-export-v2
c7edabf27dc90e6b
The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`. When all data has been provided to the compressor, call the :meth:`~.flush` method to finish the compression process. If :meth:`~.compress` is called with *mode* set to :attr:`~.FLUS...
trusted_official_docs
CPython Docs
The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`. When all data has been provided to the compressor, call the :meth:`~.flush` method to finish the compression process. If :meth:`~.compress` is called with *mode* set to :attr:`~.FLUS...
The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`. When all data has been provided to the compressor, call the :meth:`~.flush` method to finish the compression process. If :meth:`~.compress` is called with *mode* set to :attr:`~.FLUS...
python, official-docs, cpython, P0
Local_Trusted_Corpus
46b8ea51-b8fb-4d60-82c6-4f174f051d52
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,802
supabase-export-v2
e32675233c569e48
for this size and larger. For all strategies < :attr:`~Strategy.btopt`, the effective minimum is ``4``; for all strategies > :attr:`~Strategy.fast`, the effective maximum is ``6``. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
for this size and larger. For all strategies < :attr:`~Strategy.btopt`, the effective minimum is ``4``; for all strategies > :attr:`~Strategy.fast`, the effective maximum is ``6``. A value of zero causes the value to be selected automatically.
for this size and larger. For all strategies < :attr:`~Strategy.btopt`, the effective minimum is ``4``; for all strategies > :attr:`~Strategy.fast`, the effective maximum is ``6``. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4865073a-3088-434a-99d9-7d8a1f29e91a
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,865
supabase-export-v2
ece9806d079379f6
.. note:: The values of attributes of :class:`!Strategy` are not necessarily stable across zstd versions. Only the ordering of the attributes may be relied upon. The attributes are listed below in order.
trusted_official_docs
CPython Docs
.. note:: The values of attributes of :class:`!Strategy` are not necessarily stable across zstd versions. Only the ordering of the attributes may be relied upon. The attributes are listed below in order.
.. note:: The values of attributes of :class:`!Strategy` are not necessarily stable across zstd versions. Only the ordering of the attributes may be relied upon. The attributes are listed below in order.
python, official-docs, cpython, P0
Local_Trusted_Corpus
486ad0f2-6a6c-4b18-99f3-4387fde01133
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,748
supabase-export-v2
5086dd1e0a86e521
a regular Zstandard dictionary. "Raw content" dictionaries are a sequence of bytes that do not need to follow the structure of a normal Zstandard dictionary. The *zstd_dict* argument is a :class:`ZstdDict` instance with the :attr:`~ZstdDict.dict_content` containing the raw dictionary contents.
trusted_official_docs
CPython Docs
a regular Zstandard dictionary. "Raw content" dictionaries are a sequence of bytes that do not need to follow the structure of a normal Zstandard dictionary. The *zstd_dict* argument is a :class:`ZstdDict` instance with the :attr:`~ZstdDict.dict_content` containing the raw dictionary contents.
a regular Zstandard dictionary. "Raw content" dictionaries are a sequence of bytes that do not need to follow the structure of a normal Zstandard dictionary. The *zstd_dict* argument is a :class:`ZstdDict` instance with the :attr:`~ZstdDict.dict_content` containing the raw dictionary contents.
python, official-docs, cpython, P0
Local_Trusted_Corpus
49372f76-66c0-4e99-ad4b-79c5c982f1fb
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,841
supabase-export-v2
d6bd747a8c81d18b
enables multi-threaded compression, a value of ``1`` means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio. A value of zero disables multi-threading.
trusted_official_docs
CPython Docs
enables multi-threaded compression, a value of ``1`` means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio. A value of zero disables multi-threading.
enables multi-threaded compression, a value of ``1`` means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio. A value of zero disables multi-threading.
python, official-docs, cpython, P0
Local_Trusted_Corpus
49538907-b855-455b-a17d-a0c17718e3a4
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,668
supabase-export-v2
bab801e9780bf343
when writing compressed data. Only one of *level* or *options* may be non-None. The *zstd_dict* argument is a :class:`ZstdDict` instance to be used during compression. In binary mode, this function is equivalent to the :class:`ZstdFile` constructor: ``ZstdFile(file, mode, ...)``. In this case, the *encoding*, *errors...
trusted_official_docs
CPython Docs
when writing compressed data. Only one of *level* or *options* may be non-None. The *zstd_dict* argument is a :class:`ZstdDict` instance to be used during compression. In binary mode, this function is equivalent to the :class:`ZstdFile` constructor: ``ZstdFile(file, mode, ...)``. In this case, the *encoding*, *errors...
when writing compressed data. Only one of *level* or *options* may be non-None. The *zstd_dict* argument is a :class:`ZstdDict` instance to be used during compression. In binary mode, this function is equivalent to the :class:`ZstdFile` constructor: ``ZstdFile(file, mode, ...)``. In this case, the *encoding*, *errors...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4b99f32b-9e9f-41bf-8c56-67459e47af8d
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,866
supabase-export-v2
a3d704fc0e774acc
:class:`!Strategy` are not necessarily stable across zstd versions. Only the ordering of the attributes may be relied upon. The attributes are listed below in order. The following strategies are available:
trusted_official_docs
CPython Docs
:class:`!Strategy` are not necessarily stable across zstd versions. Only the ordering of the attributes may be relied upon. The attributes are listed below in order. The following strategies are available:
:class:`!Strategy` are not necessarily stable across zstd versions. Only the ordering of the attributes may be relied upon. The attributes are listed below in order. The following strategies are available:
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f3a8b46-f0bf-4441-ba79-b8c81f7c8aca
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,790
supabase-export-v2
c8545bf9df30373d
of two, ``1 << window_log`` bytes. This parameter greatly influences the memory usage of compression. Higher values require more memory but gain better compression values. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
of two, ``1 << window_log`` bytes. This parameter greatly influences the memory usage of compression. Higher values require more memory but gain better compression values. A value of zero causes the value to be selected automatically.
of two, ``1 << window_log`` bytes. This parameter greatly influences the memory usage of compression. Higher values require more memory but gain better compression values. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f712d42-707f-49d9-9a73-ce467a52489d
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,702
supabase-export-v2
23e9bfdd02427c39
argument is a Python dictionary containing advanced compression parameters. The valid keys and values for compression parameters are documented as part of the :class:`CompressionParameter` documentation. The *zstd_dict* argument is an optional instance of :class:`ZstdDict` containing trained data to improve compressio...
trusted_official_docs
CPython Docs
argument is a Python dictionary containing advanced compression parameters. The valid keys and values for compression parameters are documented as part of the :class:`CompressionParameter` documentation. The *zstd_dict* argument is an optional instance of :class:`ZstdDict` containing trained data to improve compressio...
argument is a Python dictionary containing advanced compression parameters. The valid keys and values for compression parameters are documented as part of the :class:`CompressionParameter` documentation. The *zstd_dict* argument is an optional instance of :class:`ZstdDict` containing trained data to improve compressio...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5006829e-ecea-459e-a505-ba6745b8a1b1
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,713
supabase-export-v2
3c48283be390e837
actual size of data provided to :meth:`.compress`, future calls to :meth:`!compress` or :meth:`flush` may raise :exc:`ZstdError` and the last chunk of data may be lost. After :meth:`flush` or :meth:`.compress` are called with mode :attr:`FLUSH_FRAME`, the next frame will not include the frame size into the header unl...
trusted_official_docs
CPython Docs
actual size of data provided to :meth:`.compress`, future calls to :meth:`!compress` or :meth:`flush` may raise :exc:`ZstdError` and the last chunk of data may be lost. After :meth:`flush` or :meth:`.compress` are called with mode :attr:`FLUSH_FRAME`, the next frame will not include the frame size into the header unl...
actual size of data provided to :meth:`.compress`, future calls to :meth:`!compress` or :meth:`flush` may raise :exc:`ZstdError` and the last chunk of data may be lost. After :meth:`flush` or :meth:`.compress` are called with mode :attr:`FLUSH_FRAME`, the next frame will not include the frame size into the header unl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5222d5d7-463a-4385-a813-d040d3497e63
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,752
supabase-export-v2
32370fbe24debb92
the compressors using this dictionary. The dictionary information varies for each compression level, so tuning for the proper compression level can make compression more efficient. .. class:: ZstdDict(dict_content, /, *, is_raw=False)
trusted_official_docs
CPython Docs
the compressors using this dictionary. The dictionary information varies for each compression level, so tuning for the proper compression level can make compression more efficient. .. class:: ZstdDict(dict_content, /, *, is_raw=False)
the compressors using this dictionary. The dictionary information varies for each compression level, so tuning for the proper compression level can make compression more efficient. .. class:: ZstdDict(dict_content, /, *, is_raw=False)
python, official-docs, cpython, P0
Local_Trusted_Corpus
5373d0f2-ec81-4661-9c95-9f6ab8804bdf
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,750
supabase-export-v2
6e7af44f0c08db04
The *samples* argument (an iterable of :class:`bytes` objects), contains sample data for generating the Zstandard dictionary. The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. See :func:`train_dict` for suggestions on the maximum dictionary size.
trusted_official_docs
CPython Docs
The *samples* argument (an iterable of :class:`bytes` objects), contains sample data for generating the Zstandard dictionary. The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. See :func:`train_dict` for suggestions on the maximum dictionary size.
The *samples* argument (an iterable of :class:`bytes` objects), contains sample data for generating the Zstandard dictionary. The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. See :func:`train_dict` for suggestions on the maximum dictionary size.
python, official-docs, cpython, P0
Local_Trusted_Corpus
53a02fc7-1c10-4343-bac3-c89ca8a46581
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,860
supabase-export-v2
d2a51e727c0f740e
.. attribute:: window_log_max The base-two logarithm of the maximum size of the window used during decompression. This can be useful to limit the amount of memory used when decompressing data. A larger maximum window size leads to faster decompression.
trusted_official_docs
CPython Docs
.. attribute:: window_log_max The base-two logarithm of the maximum size of the window used during decompression. This can be useful to limit the amount of memory used when decompressing data. A larger maximum window size leads to faster decompression.
.. attribute:: window_log_max The base-two logarithm of the maximum size of the window used during decompression. This can be useful to limit the amount of memory used when decompressing data. A larger maximum window size leads to faster decompression.
python, official-docs, cpython, P0
Local_Trusted_Corpus
546d3939-de82-40e1-9531-e5a1a9dcaeb2
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,807
supabase-export-v2
cde80d500dfa3215
For strategy :attr:`~Strategy.fast`, it is the distance between match sampling. Larger values make compression faster, but with a worse compression ratio. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
For strategy :attr:`~Strategy.fast`, it is the distance between match sampling. Larger values make compression faster, but with a worse compression ratio. A value of zero causes the value to be selected automatically.
For strategy :attr:`~Strategy.fast`, it is the distance between match sampling. Larger values make compression faster, but with a worse compression ratio. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
54a59598-71b1-4031-b320-1597ea14d7c2
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,712
supabase-export-v2
2d6e1ed7d1279f85
the frame header will omit the frame size. Frames that include the uncompressed data size require less memory to decompress, especially at higher compression levels. If :attr:`last_mode` is not :attr:`FLUSH_FRAME`, a :exc:`ValueError` is raised as the compressor is not at the start of a frame. If the pledged size doe...
trusted_official_docs
CPython Docs
the frame header will omit the frame size. Frames that include the uncompressed data size require less memory to decompress, especially at higher compression levels. If :attr:`last_mode` is not :attr:`FLUSH_FRAME`, a :exc:`ValueError` is raised as the compressor is not at the start of a frame. If the pledged size doe...
the frame header will omit the frame size. Frames that include the uncompressed data size require less memory to decompress, especially at higher compression levels. If :attr:`last_mode` is not :attr:`FLUSH_FRAME`, a :exc:`ValueError` is raised as the compressor is not at the start of a frame. If the pledged size doe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
56c766eb-d991-4945-a0a7-81ad2af0572c
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,789
supabase-export-v2
7ced9657b974b829
.. attribute:: window_log Maximum allowed back-reference distance the compressor can use when compressing data, expressed as power of two, ``1 << window_log`` bytes. This parameter greatly influences the memory usage of compression. Higher values require more memory but gain better compression values.
trusted_official_docs
CPython Docs
.. attribute:: window_log Maximum allowed back-reference distance the compressor can use when compressing data, expressed as power of two, ``1 << window_log`` bytes. This parameter greatly influences the memory usage of compression. Higher values require more memory but gain better compression values.
.. attribute:: window_log Maximum allowed back-reference distance the compressor can use when compressing data, expressed as power of two, ``1 << window_log`` bytes. This parameter greatly influences the memory usage of compression. Higher values require more memory but gain better compression values.
python, official-docs, cpython, P0
Local_Trusted_Corpus
57b63d44-52d0-4e70-ac02-c37fab7638b1
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,732
supabase-export-v2
323dd76b38781331
process_output(d.decompress(data, max_length)) while not d.eof and not d.needs_input: process_output(d.decompress(b"", max_length)) If all of the input data was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute ...
trusted_official_docs
CPython Docs
process_output(d.decompress(data, max_length)) while not d.eof and not d.needs_input: process_output(d.decompress(b"", max_length)) If all of the input data was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute ...
process_output(d.decompress(data, max_length)) while not d.eof and not d.needs_input: process_output(d.decompress(b"", max_length)) If all of the input data was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
598ace59-d3df-43a8-a1a8-575f62ba69c6
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,806
supabase-export-v2
07f6b8b18516a842
and :attr:`~Strategy.btultra2`, the value is the length of a match considered "good enough" to stop searching. Larger values make compression ratios better, but compresses slower. For strategy :attr:`~Strategy.fast`, it is the distance between match sampling. Larger values make compression faster, but with a worse co...
trusted_official_docs
CPython Docs
and :attr:`~Strategy.btultra2`, the value is the length of a match considered "good enough" to stop searching. Larger values make compression ratios better, but compresses slower. For strategy :attr:`~Strategy.fast`, it is the distance between match sampling. Larger values make compression faster, but with a worse co...
and :attr:`~Strategy.btultra2`, the value is the length of a match considered "good enough" to stop searching. Larger values make compression ratios better, but compresses slower. For strategy :attr:`~Strategy.fast`, it is the distance between match sampling. Larger values make compression faster, but with a worse co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
59cb8bc2-79a6-46f6-9058-3515ff1752ce
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,858
supabase-export-v2
4eee62cef74dff7b
tuple of int bounds, ``(lower, upper)``, of a decompression parameter. This method should be called on the attribute you wish to retrieve the bounds of. Both the lower and upper bounds are inclusive.
trusted_official_docs
CPython Docs
tuple of int bounds, ``(lower, upper)``, of a decompression parameter. This method should be called on the attribute you wish to retrieve the bounds of. Both the lower and upper bounds are inclusive.
tuple of int bounds, ``(lower, upper)``, of a decompression parameter. This method should be called on the attribute you wish to retrieve the bounds of. Both the lower and upper bounds are inclusive.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5c86088f-7ce6-45b0-a31d-36f6d919de7b
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,655
supabase-export-v2
06a3dd7d41b6a55b
-------------- This module provides classes and functions for compressing and decompressing data using the Zstandard (or *zstd*) compression algorithm. The `zstd manual <https://facebook.github.io/zstd/doc/api_manual_latest.html>`__ describes Zstandard as "a fast lossless compression algorithm, targeting real-time comp...
trusted_official_docs
CPython Docs
-------------- This module provides classes and functions for compressing and decompressing data using the Zstandard (or *zstd*) compression algorithm. The `zstd manual <https://facebook.github.io/zstd/doc/api_manual_latest.html>`__ describes Zstandard as "a fast lossless compression algorithm, targeting real-time comp...
-------------- This module provides classes and functions for compressing and decompressing data using the Zstandard (or *zstd*) compression algorithm. The `zstd manual <https://facebook.github.io/zstd/doc/api_manual_latest.html>`__ describes Zstandard as "a fast lossless compression algorithm, targeting real-time comp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e6a9d35-245d-4eb5-a9ad-a0169ba6f454
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,755
supabase-export-v2
533637ff6183e29c
The *dict_content* argument (a :term:`bytes-like object`), is the already trained dictionary information. The *is_raw* argument, a boolean, is an advanced parameter controlling the meaning of *dict_content*. ``True`` means *dict_content* is a "raw content" dictionary, without any format restrictions. ``False`` means ...
trusted_official_docs
CPython Docs
The *dict_content* argument (a :term:`bytes-like object`), is the already trained dictionary information. The *is_raw* argument, a boolean, is an advanced parameter controlling the meaning of *dict_content*. ``True`` means *dict_content* is a "raw content" dictionary, without any format restrictions. ``False`` means ...
The *dict_content* argument (a :term:`bytes-like object`), is the already trained dictionary information. The *is_raw* argument, a boolean, is an advanced parameter controlling the meaning of *dict_content*. ``True`` means *dict_content* is a "raw content" dictionary, without any format restrictions. ``False`` means ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
62111ab2-5df9-498b-8e8e-a5ab3506b1a7
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,850
supabase-export-v2
12efac0d3be973d7
.. class:: DecompressionParameter() An :class:`~enum.IntEnum` containing the advanced decompression parameter keys that can be used when decompressing data. Parameters are optional; any omitted parameter will have it's value selected automatically.
trusted_official_docs
CPython Docs
.. class:: DecompressionParameter() An :class:`~enum.IntEnum` containing the advanced decompression parameter keys that can be used when decompressing data. Parameters are optional; any omitted parameter will have it's value selected automatically.
.. class:: DecompressionParameter() An :class:`~enum.IntEnum` containing the advanced decompression parameter keys that can be used when decompressing data. Parameters are optional; any omitted parameter will have it's value selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
685fe2da-1d05-4eb9-8864-925e31aa0608
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,801
supabase-export-v2
c00ff1810d2c2a47
.. attribute:: min_match Minimum size of searched matches. Larger values increase compression and decompression speed, but decrease ratio. Note that Zstandard can still find matches of smaller size, it just tweaks its search algorithm to look for this size and larger. For all strategies < :attr:`~Strategy.btopt`, t...
trusted_official_docs
CPython Docs
.. attribute:: min_match Minimum size of searched matches. Larger values increase compression and decompression speed, but decrease ratio. Note that Zstandard can still find matches of smaller size, it just tweaks its search algorithm to look for this size and larger. For all strategies < :attr:`~Strategy.btopt`, t...
.. attribute:: min_match Minimum size of searched matches. Larger values increase compression and decompression speed, but decrease ratio. Note that Zstandard can still find matches of smaller size, it just tweaks its search algorithm to look for this size and larger. For all strategies < :attr:`~Strategy.btopt`, t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6d58588a-e016-474a-9164-1ebf4b1a0124
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,825
supabase-export-v2
09678ac23303bbd1
.. attribute:: ldm_hash_rate_log Frequency of inserting/looking up entries into the long distance matcher hash table. Larger values improve compression speed. Deviating far from the default value will likely result in a compression ratio decrease.
trusted_official_docs
CPython Docs
.. attribute:: ldm_hash_rate_log Frequency of inserting/looking up entries into the long distance matcher hash table. Larger values improve compression speed. Deviating far from the default value will likely result in a compression ratio decrease.
.. attribute:: ldm_hash_rate_log Frequency of inserting/looking up entries into the long distance matcher hash table. Larger values improve compression speed. Deviating far from the default value will likely result in a compression ratio decrease.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6e26b2c7-7638-4ab2-a01f-72964905d3ef
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,729
supabase-export-v2
8f439b0e2236b0b8
.. method:: decompress(data, max_length=-1) Decompress *data* (a :term:`bytes-like object`), returning uncompressed data as bytes. Some of *data* may be buffered internally, for use in later calls to :meth:`!decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`!decomp...
trusted_official_docs
CPython Docs
.. method:: decompress(data, max_length=-1) Decompress *data* (a :term:`bytes-like object`), returning uncompressed data as bytes. Some of *data* may be buffered internally, for use in later calls to :meth:`!decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`!decomp...
.. method:: decompress(data, max_length=-1) Decompress *data* (a :term:`bytes-like object`), returning uncompressed data as bytes. Some of *data* may be buffered internally, for use in later calls to :meth:`!decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`!decomp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
736dd2e4-2021-4911-a895-076b0bc30810
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,675
supabase-export-v2
2eb1bbce088d8ae0
is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equivalent to ``'a'``. When reading, the *options* argument can be a dictionary providing advanced decompression parameters; see :class:`DecompressionParameter` for detailed information about supported pa...
trusted_official_docs
CPython Docs
is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equivalent to ``'a'``. When reading, the *options* argument can be a dictionary providing advanced decompression parameters; see :class:`DecompressionParameter` for detailed information about supported pa...
is a file object (rather than an actual file name), a mode of ``'w'`` does not truncate the file, and is instead equivalent to ``'a'``. When reading, the *options* argument can be a dictionary providing advanced decompression parameters; see :class:`DecompressionParameter` for detailed information about supported pa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7535b8c2-0a7f-4320-bdef-ad52c5b4d8a0
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,793
supabase-export-v2
00392aa7fdfd55f5
resulting memory usage is ``1 << (hash_log+2)`` bytes. Larger tables improve compression ratio of strategies <= :attr:`~Strategy.dfast`, and improve compression speed of strategies > :attr:`~Strategy.dfast`. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
resulting memory usage is ``1 << (hash_log+2)`` bytes. Larger tables improve compression ratio of strategies <= :attr:`~Strategy.dfast`, and improve compression speed of strategies > :attr:`~Strategy.dfast`. A value of zero causes the value to be selected automatically.
resulting memory usage is ``1 << (hash_log+2)`` bytes. Larger tables improve compression ratio of strategies <= :attr:`~Strategy.dfast`, and improve compression speed of strategies > :attr:`~Strategy.dfast`. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
75ad70d0-affa-4ea3-9443-daba15e95054
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,746
supabase-export-v2
d49eb46f014df1fb
depending on the data. Larger dictionaries generally slow down compression, but improve compression ratios. Smaller dictionaries lead to faster compression, but reduce the compression ratio. .. function:: finalize_dict(zstd_dict, /, samples, dict_size, level)
trusted_official_docs
CPython Docs
depending on the data. Larger dictionaries generally slow down compression, but improve compression ratios. Smaller dictionaries lead to faster compression, but reduce the compression ratio. .. function:: finalize_dict(zstd_dict, /, samples, dict_size, level)
depending on the data. Larger dictionaries generally slow down compression, but improve compression ratios. Smaller dictionaries lead to faster compression, but reduce the compression ratio. .. function:: finalize_dict(zstd_dict, /, samples, dict_size, level)
python, official-docs, cpython, P0
Local_Trusted_Corpus
76e56c5a-e92d-44b5-a780-b0c24375167e
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,761
supabase-export-v2
31b159a1a2ec0141
.. attribute:: dict_content The content of the Zstandard dictionary, a ``bytes`` object. It's the same as the *dict_content* argument in the ``__init__`` method. It can be used with other programs, such as the ``zstd`` CLI program.
trusted_official_docs
CPython Docs
.. attribute:: dict_content The content of the Zstandard dictionary, a ``bytes`` object. It's the same as the *dict_content* argument in the ``__init__`` method. It can be used with other programs, such as the ``zstd`` CLI program.
.. attribute:: dict_content The content of the Zstandard dictionary, a ``bytes`` object. It's the same as the *dict_content* argument in the ``__init__`` method. It can be used with other programs, such as the ``zstd`` CLI program.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7ed802ef-d808-445a-b9b3-caf358877d51
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,680
supabase-export-v2
cfeeddf4bf23f0a7
.. method:: peek(size=-1) Return buffered data without advancing the file position. At least one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored).
trusted_official_docs
CPython Docs
.. method:: peek(size=-1) Return buffered data without advancing the file position. At least one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored).
.. method:: peek(size=-1) Return buffered data without advancing the file position. At least one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored).
python, official-docs, cpython, P0
Local_Trusted_Corpus
80162ffb-1200-4a59-82eb-44ae4d9da57b
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,715
supabase-export-v2
f5d2456a8d95948b
.. attribute:: CONTINUE Collect more data for compression, which may or may not generate output immediately. This mode optimizes the compression ratio by maximizing the amount of data per block and frame.
trusted_official_docs
CPython Docs
.. attribute:: CONTINUE Collect more data for compression, which may or may not generate output immediately. This mode optimizes the compression ratio by maximizing the amount of data per block and frame.
.. attribute:: CONTINUE Collect more data for compression, which may or may not generate output immediately. This mode optimizes the compression ratio by maximizing the amount of data per block and frame.
python, official-docs, cpython, P0
Local_Trusted_Corpus
820a3d8b-45ee-4e20-ab02-0d319cccd1c0
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,694
supabase-export-v2
7dc7d9adf84ebb5b
Decompress *data* (a :term:`bytes-like object`), returning the uncompressed data as a :class:`bytes` object. The *options* argument is a Python dictionary containing advanced decompression parameters. The valid keys and values for compression parameters are documented as part of the :class:`DecompressionParameter` d...
trusted_official_docs
CPython Docs
Decompress *data* (a :term:`bytes-like object`), returning the uncompressed data as a :class:`bytes` object. The *options* argument is a Python dictionary containing advanced decompression parameters. The valid keys and values for compression parameters are documented as part of the :class:`DecompressionParameter` d...
Decompress *data* (a :term:`bytes-like object`), returning the uncompressed data as a :class:`bytes` object. The *options* argument is a Python dictionary containing advanced decompression parameters. The valid keys and values for compression parameters are documented as part of the :class:`DecompressionParameter` d...
python, official-docs, cpython, P0
Local_Trusted_Corpus
88a69ce1-5a25-47bb-a8e8-0f4a61168cc0
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,673
supabase-export-v2
36a7817f50c7becc
:class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object). If wrapping an existing file object, the wrapped file will not be closed when the :class:`ZstdFile` is closed. The *mode* argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'xb'`` for exclusive creation, or ``...
trusted_official_docs
CPython Docs
:class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object). If wrapping an existing file object, the wrapped file will not be closed when the :class:`ZstdFile` is closed. The *mode* argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'xb'`` for exclusive creation, or ``...
:class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object). If wrapping an existing file object, the wrapped file will not be closed when the :class:`ZstdFile` is closed. The *mode* argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'xb'`` for exclusive creation, or ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b2f3000-7694-4715-8913-4a8cdfabe0eb
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,704
supabase-export-v2
e2aa54dd98851463
.. method:: compress(data, mode=ZstdCompressor.CONTINUE) Compress *data* (a :term:`bytes-like object`), returning a :class:`bytes` object with compressed data if possible, or otherwise an empty :class:`!bytes` object. Some of *data* may be buffered internally, for use in later calls to :meth:`!compress` and :meth:`~...
trusted_official_docs
CPython Docs
.. method:: compress(data, mode=ZstdCompressor.CONTINUE) Compress *data* (a :term:`bytes-like object`), returning a :class:`bytes` object with compressed data if possible, or otherwise an empty :class:`!bytes` object. Some of *data* may be buffered internally, for use in later calls to :meth:`!compress` and :meth:`~...
.. method:: compress(data, mode=ZstdCompressor.CONTINUE) Compress *data* (a :term:`bytes-like object`), returning a :class:`bytes` object with compressed data if possible, or otherwise an empty :class:`!bytes` object. Some of *data* may be buffered internally, for use in later calls to :meth:`!compress` and :meth:`~...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8cdcc0b5-760c-4891-87a6-11f5aa13f85e
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,782
supabase-export-v2
343869e38dc42dcd
.. method:: bounds() Return the tuple of int bounds, ``(lower, upper)``, of a compression parameter. This method should be called on the attribute you wish to retrieve the bounds of. For example, to get the valid values for :attr:`~.compression_level`, one may check the result of ``CompressionParameter.compression_...
trusted_official_docs
CPython Docs
.. method:: bounds() Return the tuple of int bounds, ``(lower, upper)``, of a compression parameter. This method should be called on the attribute you wish to retrieve the bounds of. For example, to get the valid values for :attr:`~.compression_level`, one may check the result of ``CompressionParameter.compression_...
.. method:: bounds() Return the tuple of int bounds, ``(lower, upper)``, of a compression parameter. This method should be called on the attribute you wish to retrieve the bounds of. For example, to get the valid values for :attr:`~.compression_level`, one may check the result of ``CompressionParameter.compression_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8db20b56-ebd3-4b24-a9d5-c50bcaf2492e
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,896
supabase-export-v2
8ef749d62ed162e9
= comp.compress(b"Another piece of data\n") out3 = comp.compress(b"Even more data\n") out4 = comp.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4]) Writing compressed data to an already-open file:
trusted_official_docs
CPython Docs
= comp.compress(b"Another piece of data\n") out3 = comp.compress(b"Even more data\n") out4 = comp.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4]) Writing compressed data to an already-open file:
= comp.compress(b"Another piece of data\n") out3 = comp.compress(b"Even more data\n") out4 = comp.flush() # Concatenate all the partial results: result = b"".join([out1, out2, out3, out4]) Writing compressed data to an already-open file:
python, official-docs, cpython, P0
Local_Trusted_Corpus
8fe88a8a-9282-446c-8cf9-2d6cc4cc6e2d
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,783
supabase-export-v2
00aaab9d6d898414
the attribute you wish to retrieve the bounds of. For example, to get the valid values for :attr:`~.compression_level`, one may check the result of ``CompressionParameter.compression_level.bounds()``. Both the lower and upper bounds are inclusive.
trusted_official_docs
CPython Docs
the attribute you wish to retrieve the bounds of. For example, to get the valid values for :attr:`~.compression_level`, one may check the result of ``CompressionParameter.compression_level.bounds()``. Both the lower and upper bounds are inclusive.
the attribute you wish to retrieve the bounds of. For example, to get the valid values for :attr:`~.compression_level`, one may check the result of ``CompressionParameter.compression_level.bounds()``. Both the lower and upper bounds are inclusive.
python, official-docs, cpython, P0
Local_Trusted_Corpus
91b7fb2b-f58a-4996-bd39-a9771acb4df7
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,664
supabase-export-v2
634a83bd418e3a2d
Open a Zstandard-compressed file in binary or text mode, returning a :term:`file object`. The *file* argument can be either a file name (given as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from o...
trusted_official_docs
CPython Docs
Open a Zstandard-compressed file in binary or text mode, returning a :term:`file object`. The *file* argument can be either a file name (given as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from o...
Open a Zstandard-compressed file in binary or text mode, returning a :term:`file object`. The *file* argument can be either a file name (given as a :class:`str`, :class:`bytes` or :term:`path-like <path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from o...
python, official-docs, cpython, P0
Local_Trusted_Corpus
943a37ab-ad6a-4557-a0dc-3678db9b59ec
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,705
supabase-export-v2
be8cb52340e6ffd8
internally, for use in later calls to :meth:`!compress` and :meth:`~.flush`. The returned data should be concatenated with the output of any previous calls to :meth:`~.compress`. The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`.
trusted_official_docs
CPython Docs
internally, for use in later calls to :meth:`!compress` and :meth:`~.flush`. The returned data should be concatenated with the output of any previous calls to :meth:`~.compress`. The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`.
internally, for use in later calls to :meth:`!compress` and :meth:`~.flush`. The returned data should be concatenated with the output of any previous calls to :meth:`~.compress`. The *mode* argument is a :class:`ZstdCompressor` attribute, either :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9942a420-a059-4dcb-9f23-bfa6545422db
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,749
supabase-export-v2
7152438bb3cbd8e2
The *zstd_dict* argument is a :class:`ZstdDict` instance with the :attr:`~ZstdDict.dict_content` containing the raw dictionary contents. The *samples* argument (an iterable of :class:`bytes` objects), contains sample data for generating the Zstandard dictionary.
trusted_official_docs
CPython Docs
The *zstd_dict* argument is a :class:`ZstdDict` instance with the :attr:`~ZstdDict.dict_content` containing the raw dictionary contents. The *samples* argument (an iterable of :class:`bytes` objects), contains sample data for generating the Zstandard dictionary.
The *zstd_dict* argument is a :class:`ZstdDict` instance with the :attr:`~ZstdDict.dict_content` containing the raw dictionary contents. The *samples* argument (an iterable of :class:`bytes` objects), contains sample data for generating the Zstandard dictionary.
python, official-docs, cpython, P0
Local_Trusted_Corpus
99b5cff5-99c3-4dce-99fa-562dabd4a926
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,745
supabase-export-v2
a4c350f6ac192bea
The *samples* argument (an iterable of :class:`bytes` objects), is the population of samples used to train the Zstandard dictionary. The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. The Zstandard documentation suggests an absolute maximum of no more than 100 KB,...
trusted_official_docs
CPython Docs
The *samples* argument (an iterable of :class:`bytes` objects), is the population of samples used to train the Zstandard dictionary. The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. The Zstandard documentation suggests an absolute maximum of no more than 100 KB,...
The *samples* argument (an iterable of :class:`bytes` objects), is the population of samples used to train the Zstandard dictionary. The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. The Zstandard documentation suggests an absolute maximum of no more than 100 KB,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ad2032b-922c-424c-a0e2-5cd21f94d532
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,700
supabase-export-v2
b9d481db80659031
For a more convenient way of compressing a single chunk of data, see the module-level function :func:`compress`. The *level* argument is an integer controlling the level of compression. *level* is an alternative to setting :attr:`CompressionParameter.compression_level` in *options*. Use :meth:`~CompressionParameter....
trusted_official_docs
CPython Docs
For a more convenient way of compressing a single chunk of data, see the module-level function :func:`compress`. The *level* argument is an integer controlling the level of compression. *level* is an alternative to setting :attr:`CompressionParameter.compression_level` in *options*. Use :meth:`~CompressionParameter....
For a more convenient way of compressing a single chunk of data, see the module-level function :func:`compress`. The *level* argument is an integer controlling the level of compression. *level* is an alternative to setting :attr:`CompressionParameter.compression_level` in *options*. Use :meth:`~CompressionParameter....
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ea5cd57-fa77-4093-a1ee-fd9c794b169e
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,758
supabase-export-v2
634d16f715b4831a
.. list-table:: Difference for compression :widths: 10 14 10 :header-rows: 1 * - - Digested dictionary - Undigested dictionary * - Advanced parameters of the compressor which may be overridden by the dictionary's parameters - ``window_log``, ``hash_log``, ``chain_log``, ``search_log``, ``min_match``, ``target_len...
trusted_official_docs
CPython Docs
.. list-table:: Difference for compression :widths: 10 14 10 :header-rows: 1 * - - Digested dictionary - Undigested dictionary * - Advanced parameters of the compressor which may be overridden by the dictionary's parameters - ``window_log``, ``hash_log``, ``chain_log``, ``search_log``, ``min_match``, ``target_len...
.. list-table:: Difference for compression :widths: 10 14 10 :header-rows: 1 * - - Digested dictionary - Undigested dictionary * - Advanced parameters of the compressor which may be overridden by the dictionary's parameters - ``window_log``, ``hash_log``, ``chain_log``, ``search_log``, ``min_match``, ``target_len...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a308186d-752c-450c-ae8f-a4aa1c3a5863
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,754
supabase-export-v2
a57b7302458c8592
be used to improve the compression of many small chunks of data. Use :func:`train_dict` if you need to train a new dictionary from sample data. The *dict_content* argument (a :term:`bytes-like object`), is the already trained dictionary information.
trusted_official_docs
CPython Docs
be used to improve the compression of many small chunks of data. Use :func:`train_dict` if you need to train a new dictionary from sample data. The *dict_content* argument (a :term:`bytes-like object`), is the already trained dictionary information.
be used to improve the compression of many small chunks of data. Use :func:`train_dict` if you need to train a new dictionary from sample data. The *dict_content* argument (a :term:`bytes-like object`), is the already trained dictionary information.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a4d68cbf-c76b-4ec0-81f6-491bd8c6e3f3
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,725
supabase-export-v2
f5109f7f08db1c22
For a more convenient way of decompressing an entire compressed stream at once, see the module-level function :func:`decompress`. The *options* argument is a Python dictionary containing advanced decompression parameters. The valid keys and values for compression parameters are documented as part of the :class:`Decom...
trusted_official_docs
CPython Docs
For a more convenient way of decompressing an entire compressed stream at once, see the module-level function :func:`decompress`. The *options* argument is a Python dictionary containing advanced decompression parameters. The valid keys and values for compression parameters are documented as part of the :class:`Decom...
For a more convenient way of decompressing an entire compressed stream at once, see the module-level function :func:`decompress`. The *options* argument is a Python dictionary containing advanced decompression parameters. The valid keys and values for compression parameters are documented as part of the :class:`Decom...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac754a43-f6ea-482a-b173-3d2172fe2384
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,847
supabase-export-v2
268628073788cbb6
be used by the look behind window during compression. This value is only used when :attr:`~CompressionParameter.nb_workers` >= 1. Acceptable values vary from 0 to 9. * 0 means dynamically set the overlap amount * 1 means no overlap * 9 means use a full window size from the previous job
trusted_official_docs
CPython Docs
be used by the look behind window during compression. This value is only used when :attr:`~CompressionParameter.nb_workers` >= 1. Acceptable values vary from 0 to 9. * 0 means dynamically set the overlap amount * 1 means no overlap * 9 means use a full window size from the previous job
be used by the look behind window during compression. This value is only used when :attr:`~CompressionParameter.nb_workers` >= 1. Acceptable values vary from 0 to 9. * 0 means dynamically set the overlap amount * 1 means no overlap * 9 means use a full window size from the previous job
python, official-docs, cpython, P0
Local_Trusted_Corpus
b8927fed-8724-4d5b-ac61-c773c0c72e36
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,775
supabase-export-v2
2eff5093b74d6f46
An :class:`~enum.IntEnum` containing the advanced compression parameter keys that can be used when compressing data. The :meth:`~.bounds` method can be used on any attribute to get the valid values for that parameter.
trusted_official_docs
CPython Docs
An :class:`~enum.IntEnum` containing the advanced compression parameter keys that can be used when compressing data. The :meth:`~.bounds` method can be used on any attribute to get the valid values for that parameter.
An :class:`~enum.IntEnum` containing the advanced compression parameter keys that can be used when compressing data. The :meth:`~.bounds` method can be used on any attribute to get the valid values for that parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c80f97b2-3a6a-44db-ab78-92a76ae1bbb8
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,861
supabase-export-v2
ae646cad08326b49
during decompression. This can be useful to limit the amount of memory used when decompressing data. A larger maximum window size leads to faster decompression. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
during decompression. This can be useful to limit the amount of memory used when decompressing data. A larger maximum window size leads to faster decompression. A value of zero causes the value to be selected automatically.
during decompression. This can be useful to limit the amount of memory used when decompressing data. A larger maximum window size leads to faster decompression. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cc9ae655-8c98-4433-b79d-8b0b74926637
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,690
supabase-export-v2
6d8cf73496efd4a9
for *level*. If advanced compression options are needed, the *level* argument must be omitted and in the *options* dictionary the :attr:`!CompressionParameter.compression_level` parameter should be set. The *options* argument is a Python dictionary containing advanced compression parameters. The valid keys and values ...
trusted_official_docs
CPython Docs
for *level*. If advanced compression options are needed, the *level* argument must be omitted and in the *options* dictionary the :attr:`!CompressionParameter.compression_level` parameter should be set. The *options* argument is a Python dictionary containing advanced compression parameters. The valid keys and values ...
for *level*. If advanced compression options are needed, the *level* argument must be omitted and in the *options* dictionary the :attr:`!CompressionParameter.compression_level` parameter should be set. The *options* argument is a Python dictionary containing advanced compression parameters. The valid keys and values ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d07d6a44-67a3-4a24-9413-e9fe8b47760e
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,743
supabase-export-v2
4b021eb2b44254fe
.. function:: train_dict(samples, dict_size) Train a Zstandard dictionary, returning a :class:`ZstdDict` instance. Zstandard dictionaries enable more efficient compression of smaller sizes of data, which is traditionally difficult to compress due to less repetition. If you are compressing multiple similar groups of d...
trusted_official_docs
CPython Docs
.. function:: train_dict(samples, dict_size) Train a Zstandard dictionary, returning a :class:`ZstdDict` instance. Zstandard dictionaries enable more efficient compression of smaller sizes of data, which is traditionally difficult to compress due to less repetition. If you are compressing multiple similar groups of d...
.. function:: train_dict(samples, dict_size) Train a Zstandard dictionary, returning a :class:`ZstdDict` instance. Zstandard dictionaries enable more efficient compression of smaller sizes of data, which is traditionally difficult to compress due to less repetition. If you are compressing multiple similar groups of d...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d103f276-405a-4f73-9d14-151018bf19ed
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,733
supabase-export-v2
1db9825c356f23d2
was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute will be set to ``True``. Attempting to decompress data after the end of a frame will raise a :exc:`ZstdError`. Any data found after the end of the frame is ign...
trusted_official_docs
CPython Docs
was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute will be set to ``True``. Attempting to decompress data after the end of a frame will raise a :exc:`ZstdError`. Any data found after the end of the frame is ign...
was decompressed and returned (either because this was less than *max_length* bytes, or because *max_length* was negative), the :attr:`~.needs_input` attribute will be set to ``True``. Attempting to decompress data after the end of a frame will raise a :exc:`ZstdError`. Any data found after the end of the frame is ign...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d362f0d0-6b99-46c1-b624-c71b66b07921
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,711
supabase-export-v2
84fecd6ab7a2084e
.. method:: set_pledged_input_size(size) Specify the amount of uncompressed data *size* that will be provided for the next frame. *size* will be written into the frame header of the next frame unless :attr:`CompressionParameter.content_size_flag` is ``False`` or ``0``. A size of ``0`` means that the frame is empty. ...
trusted_official_docs
CPython Docs
.. method:: set_pledged_input_size(size) Specify the amount of uncompressed data *size* that will be provided for the next frame. *size* will be written into the frame header of the next frame unless :attr:`CompressionParameter.content_size_flag` is ``False`` or ``0``. A size of ``0`` means that the frame is empty. ...
.. method:: set_pledged_input_size(size) Specify the amount of uncompressed data *size* that will be provided for the next frame. *size* will be written into the frame header of the next frame unless :attr:`CompressionParameter.content_size_flag` is ``False`` or ``0``. A size of ``0`` means that the frame is empty. ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d474ded9-e868-4e85-a695-88cae0265909
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,681
supabase-export-v2
d2da8b6fb3245dc9
one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). .. note:: While calling :meth:`peek` does not change the file position of the :class:`ZstdFile`, it may change the position of the underlying file object (for example, if...
trusted_official_docs
CPython Docs
one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). .. note:: While calling :meth:`peek` does not change the file position of the :class:`ZstdFile`, it may change the position of the underlying file object (for example, if...
one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). .. note:: While calling :meth:`peek` does not change the file position of the :class:`ZstdFile`, it may change the position of the underlying file object (for example, if...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d5551c1a-9824-4f5a-808c-b3b6d80a6407
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,730
supabase-export-v2
e31d19dedfdb3c4a
be buffered internally, for use in later calls to :meth:`!decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`!decompress`. If *max_length* is non-negative, the method returns at most *max_length* bytes of decompressed data. If this limit is reached and further output...
trusted_official_docs
CPython Docs
be buffered internally, for use in later calls to :meth:`!decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`!decompress`. If *max_length* is non-negative, the method returns at most *max_length* bytes of decompressed data. If this limit is reached and further output...
be buffered internally, for use in later calls to :meth:`!decompress`. The returned data should be concatenated with the output of any previous calls to :meth:`!decompress`. If *max_length* is non-negative, the method returns at most *max_length* bytes of decompressed data. If this limit is reached and further output...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d75f0c1b-1d03-44a7-89bb-16554dfe64b7
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,676
supabase-export-v2
7ba8188fffeb91df
*zstd_dict* argument is a :class:`ZstdDict` instance to be used during decompression. When reading, if the *level* argument is not None, a :exc:`!TypeError` will be raised. When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detaile...
trusted_official_docs
CPython Docs
*zstd_dict* argument is a :class:`ZstdDict` instance to be used during decompression. When reading, if the *level* argument is not None, a :exc:`!TypeError` will be raised. When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detaile...
*zstd_dict* argument is a :class:`ZstdDict` instance to be used during decompression. When reading, if the *level* argument is not None, a :exc:`!TypeError` will be raised. When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detaile...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d79af99f-1787-4f02-9a63-caf03b679dbf
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,799
supabase-export-v2
825d0b863eb1fc03
of search attempts, as a power of two. More attempts result in better and slower compression. This parameter is useless for :attr:`~Strategy.fast` and :attr:`~Strategy.dfast` strategies. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
of search attempts, as a power of two. More attempts result in better and slower compression. This parameter is useless for :attr:`~Strategy.fast` and :attr:`~Strategy.dfast` strategies. A value of zero causes the value to be selected automatically.
of search attempts, as a power of two. More attempts result in better and slower compression. This parameter is useless for :attr:`~Strategy.fast` and :attr:`~Strategy.dfast` strategies. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
da7c6522-98f6-4133-9665-3d686440a501
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,753
supabase-export-v2
bf1d4649356834ee
.. class:: ZstdDict(dict_content, /, *, is_raw=False) A wrapper around Zstandard dictionaries. Dictionaries can be used to improve the compression of many small chunks of data. Use :func:`train_dict` if you need to train a new dictionary from sample data.
trusted_official_docs
CPython Docs
.. class:: ZstdDict(dict_content, /, *, is_raw=False) A wrapper around Zstandard dictionaries. Dictionaries can be used to improve the compression of many small chunks of data. Use :func:`train_dict` if you need to train a new dictionary from sample data.
.. class:: ZstdDict(dict_content, /, *, is_raw=False) A wrapper around Zstandard dictionaries. Dictionaries can be used to improve the compression of many small chunks of data. Use :func:`train_dict` if you need to train a new dictionary from sample data.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dacb187b-2f83-4ef9-92ca-942a19a9cc54
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,667
supabase-export-v2
3c93961d93c3cf81
*zstd_dict* argument is a :class:`ZstdDict` instance to be used during decompression. When reading, if the *level* argument is not None, a :exc:`!TypeError` will be raised. When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detaile...
trusted_official_docs
CPython Docs
*zstd_dict* argument is a :class:`ZstdDict` instance to be used during decompression. When reading, if the *level* argument is not None, a :exc:`!TypeError` will be raised. When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detaile...
*zstd_dict* argument is a :class:`ZstdDict` instance to be used during decompression. When reading, if the *level* argument is not None, a :exc:`!TypeError` will be raised. When writing, the *options* argument can be a dictionary providing advanced compression parameters; see :class:`CompressionParameter` for detaile...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dce323a2-146f-42af-bd51-4960e06abbe1
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,717
supabase-export-v2
3de3ad4e9d6e68ed
.. attribute:: FLUSH_BLOCK Complete and write a block to the data stream. The data returned so far can be immediately decompressed. Past data can still be referenced in future blocks generated by calls to :meth:`~.compress`, improving compression.
trusted_official_docs
CPython Docs
.. attribute:: FLUSH_BLOCK Complete and write a block to the data stream. The data returned so far can be immediately decompressed. Past data can still be referenced in future blocks generated by calls to :meth:`~.compress`, improving compression.
.. attribute:: FLUSH_BLOCK Complete and write a block to the data stream. The data returned so far can be immediately decompressed. Past data can still be referenced in future blocks generated by calls to :meth:`~.compress`, improving compression.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dfd28e36-2045-4891-8471-ad2510e88426
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,692
supabase-export-v2
f0a346428c8bef79
*zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data to improve compression efficiency. The function :func:`train_dict` can be used to generate a Zstandard dictionary. .. function:: decompress(data, zstd_dict=None, options=None)
trusted_official_docs
CPython Docs
*zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data to improve compression efficiency. The function :func:`train_dict` can be used to generate a Zstandard dictionary. .. function:: decompress(data, zstd_dict=None, options=None)
*zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data to improve compression efficiency. The function :func:`train_dict` can be used to generate a Zstandard dictionary. .. function:: decompress(data, zstd_dict=None, options=None)
python, official-docs, cpython, P0
Local_Trusted_Corpus
e0c831f5-a3af-49f4-826f-e850d98a7c3d
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,817
supabase-export-v2
5cd02f7d3c4326e9
Size of the table for long distance matching, as a power of two. Larger values increase memory usage and compression ratio, but decrease compression speed. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
Size of the table for long distance matching, as a power of two. Larger values increase memory usage and compression ratio, but decrease compression speed. A value of zero causes the value to be selected automatically.
Size of the table for long distance matching, as a power of two. Larger values increase memory usage and compression ratio, but decrease compression speed. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e1bbbdb9-c6af-42a8-a5e5-a13fe5ed0627
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,846
supabase-export-v2
db2111e76927159e
.. attribute:: overlap_log Sets how much data is reloaded from previous jobs (threads) for new jobs to be used by the look behind window during compression. This value is only used when :attr:`~CompressionParameter.nb_workers` >= 1. Acceptable values vary from 0 to 9.
trusted_official_docs
CPython Docs
.. attribute:: overlap_log Sets how much data is reloaded from previous jobs (threads) for new jobs to be used by the look behind window during compression. This value is only used when :attr:`~CompressionParameter.nb_workers` >= 1. Acceptable values vary from 0 to 9.
.. attribute:: overlap_log Sets how much data is reloaded from previous jobs (threads) for new jobs to be used by the look behind window during compression. This value is only used when :attr:`~CompressionParameter.nb_workers` >= 1. Acceptable values vary from 0 to 9.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e2777564-6684-45f9-a1dc-532d0c6c5466
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,724
supabase-export-v2
ff0f674010d8cb47
Create a decompressor object, which can be used to decompress data incrementally. For a more convenient way of decompressing an entire compressed stream at once, see the module-level function :func:`decompress`.
trusted_official_docs
CPython Docs
Create a decompressor object, which can be used to decompress data incrementally. For a more convenient way of decompressing an entire compressed stream at once, see the module-level function :func:`decompress`.
Create a decompressor object, which can be used to decompress data incrementally. For a more convenient way of decompressing an entire compressed stream at once, see the module-level function :func:`decompress`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4abe9e2-dcdc-4fd7-8103-ffe63a6bf817
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,814
supabase-export-v2
1e5af021481d8bb1
``True`` or ``1`` enable long distance matching while ``False`` or ``0`` disable it. Enabling this parameter increases default :attr:`~CompressionParameter.window_log` to 128 MiB except when expressly set to a different value. This setting is enabled by default if :attr:`!window_log` >= 128 MiB and the compression ...
trusted_official_docs
CPython Docs
``True`` or ``1`` enable long distance matching while ``False`` or ``0`` disable it. Enabling this parameter increases default :attr:`~CompressionParameter.window_log` to 128 MiB except when expressly set to a different value. This setting is enabled by default if :attr:`!window_log` >= 128 MiB and the compression ...
``True`` or ``1`` enable long distance matching while ``False`` or ``0`` disable it. Enabling this parameter increases default :attr:`~CompressionParameter.window_log` to 128 MiB except when expressly set to a different value. This setting is enabled by default if :attr:`!window_log` >= 128 MiB and the compression ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e55a75d9-53dc-49f2-a151-af663ce9b79b
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,813
supabase-export-v2
8c0b9d4e15aa3a63
distance matching can be used to improve compression for large inputs by finding large matches at greater distances. It increases memory usage and window size. ``True`` or ``1`` enable long distance matching while ``False`` or ``0`` disable it.
trusted_official_docs
CPython Docs
distance matching can be used to improve compression for large inputs by finding large matches at greater distances. It increases memory usage and window size. ``True`` or ``1`` enable long distance matching while ``False`` or ``0`` disable it.
distance matching can be used to improve compression for large inputs by finding large matches at greater distances. It increases memory usage and window size. ``True`` or ``1`` enable long distance matching while ``False`` or ``0`` disable it.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e74952a3-212c-432b-ba9f-8aa608d35378
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,721
supabase-export-v2
a1e747b963676e3e
.. attribute:: last_mode The last mode passed to either :meth:`~.compress` or :meth:`~.flush`. The value can be one of :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`. The initial value is :attr:`~.FLUSH_FRAME`, signifying that the compressor is at the start of a new frame.
trusted_official_docs
CPython Docs
.. attribute:: last_mode The last mode passed to either :meth:`~.compress` or :meth:`~.flush`. The value can be one of :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`. The initial value is :attr:`~.FLUSH_FRAME`, signifying that the compressor is at the start of a new frame.
.. attribute:: last_mode The last mode passed to either :meth:`~.compress` or :meth:`~.flush`. The value can be one of :attr:`~.CONTINUE`, :attr:`~.FLUSH_BLOCK`, or :attr:`~.FLUSH_FRAME`. The initial value is :attr:`~.FLUSH_FRAME`, signifying that the compressor is at the start of a new frame.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e757704b-7978-4486-9f5b-c5ac5c9e144f
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,657
supabase-export-v2
4917668bb5de2116
The :mod:`!compression.zstd` module contains: * The :func:`.open` function and :class:`ZstdFile` class for reading and writing compressed files. * The :class:`ZstdCompressor` and :class:`ZstdDecompressor` classes for incremental (de)compression. * The :func:`compress` and :func:`decompress` functions for one-shot (d...
trusted_official_docs
CPython Docs
The :mod:`!compression.zstd` module contains: * The :func:`.open` function and :class:`ZstdFile` class for reading and writing compressed files. * The :class:`ZstdCompressor` and :class:`ZstdDecompressor` classes for incremental (de)compression. * The :func:`compress` and :func:`decompress` functions for one-shot (d...
The :mod:`!compression.zstd` module contains: * The :func:`.open` function and :class:`ZstdFile` class for reading and writing compressed files. * The :class:`ZstdCompressor` and :class:`ZstdDecompressor` classes for incremental (de)compression. * The :func:`compress` and :func:`decompress` functions for one-shot (d...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e8adb225-7fe7-4b86-b1ae-54618934f793
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,727
supabase-export-v2
7d4d2b687595a7af
The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data used during compression. This must be the same Zstandard dictionary used during compression. .. note:: This class does not transparently handle inputs containing multiple compressed frames, unlike the :func:`decompress` function and ...
trusted_official_docs
CPython Docs
The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data used during compression. This must be the same Zstandard dictionary used during compression. .. note:: This class does not transparently handle inputs containing multiple compressed frames, unlike the :func:`decompress` function and ...
The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data used during compression. This must be the same Zstandard dictionary used during compression. .. note:: This class does not transparently handle inputs containing multiple compressed frames, unlike the :func:`decompress` function and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9490331-9ab6-4201-820c-9f53d499c80b
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,691
supabase-export-v2
4b726fbc2a644da1
argument is a Python dictionary containing advanced compression parameters. The valid keys and values for compression parameters are documented as part of the :class:`CompressionParameter` documentation. The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data to improve compression efficie...
trusted_official_docs
CPython Docs
argument is a Python dictionary containing advanced compression parameters. The valid keys and values for compression parameters are documented as part of the :class:`CompressionParameter` documentation. The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data to improve compression efficie...
argument is a Python dictionary containing advanced compression parameters. The valid keys and values for compression parameters are documented as part of the :class:`CompressionParameter` documentation. The *zstd_dict* argument is an instance of :class:`ZstdDict` containing trained data to improve compression efficie...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e955a503-3e43-49f2-bc1b-41e216f7b6e5
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,834
supabase-export-v2
3b4dee404cc3cf55
.. attribute:: checksum_flag A four-byte checksum using XXHash64 of the uncompressed content is written at the end of each frame. Zstandard's decompression code verifies the checksum. If there is a mismatch a :class:`ZstdError` exception is raised.
trusted_official_docs
CPython Docs
.. attribute:: checksum_flag A four-byte checksum using XXHash64 of the uncompressed content is written at the end of each frame. Zstandard's decompression code verifies the checksum. If there is a mismatch a :class:`ZstdError` exception is raised.
.. attribute:: checksum_flag A four-byte checksum using XXHash64 of the uncompressed content is written at the end of each frame. Zstandard's decompression code verifies the checksum. If there is a mismatch a :class:`ZstdError` exception is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9ced2b7-8988-45af-8289-4ab3ad7d0d25
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,796
supabase-export-v2
b74f4d3236b1cb61
This parameter has no effect for the :attr:`~Strategy.fast` strategy. It's still useful when using :attr:`~Strategy.dfast` strategy, in which case it defines a secondary probe table. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
This parameter has no effect for the :attr:`~Strategy.fast` strategy. It's still useful when using :attr:`~Strategy.dfast` strategy, in which case it defines a secondary probe table. A value of zero causes the value to be selected automatically.
This parameter has no effect for the :attr:`~Strategy.fast` strategy. It's still useful when using :attr:`~Strategy.dfast` strategy, in which case it defines a secondary probe table. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
eb4b0448-5663-4072-ae3d-e14f4b89877f
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,665
supabase-export-v2
f508bde3f922f4ee
<path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from or write to. The mode argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'ab'`` for appending, or ``'xb'`` for exclusive creation. These can equivalently be given as ``...
trusted_official_docs
CPython Docs
<path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from or write to. The mode argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'ab'`` for appending, or ``'xb'`` for exclusive creation. These can equivalently be given as ``...
<path-like object>` object), in which case the named file is opened, or it can be an existing file object to read from or write to. The mode argument can be either ``'rb'`` for reading (default), ``'wb'`` for overwriting, ``'ab'`` for appending, or ``'xb'`` for exclusive creation. These can equivalently be given as ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ec568cf0-5f62-4fd8-918b-ef3153f3bbf6
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,751
supabase-export-v2
51d0d45f689911ca
The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. See :func:`train_dict` for suggestions on the maximum dictionary size. The *level* argument (an integer) is the compression level expected to be passed to the compressors using this dictionary. The dictionary infor...
trusted_official_docs
CPython Docs
The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. See :func:`train_dict` for suggestions on the maximum dictionary size. The *level* argument (an integer) is the compression level expected to be passed to the compressors using this dictionary. The dictionary infor...
The *dict_size* argument, an integer, is the maximum size (in bytes) the Zstandard dictionary should be. See :func:`train_dict` for suggestions on the maximum dictionary size. The *level* argument (an integer) is the compression level expected to be passed to the compressors using this dictionary. The dictionary infor...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ed2e7b08-c380-4f74-938f-52e58d7dab52
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,786
supabase-export-v2
fb28562a8321b05a
A high-level means of setting other compression parameters that affect the speed and ratio of compressing data. Regular compression levels are greater than ``0``. Values greater than ``20`` are considered "ultra" compression and require more memory than other levels. Negative values can be used to trade off faster co...
trusted_official_docs
CPython Docs
A high-level means of setting other compression parameters that affect the speed and ratio of compressing data. Regular compression levels are greater than ``0``. Values greater than ``20`` are considered "ultra" compression and require more memory than other levels. Negative values can be used to trade off faster co...
A high-level means of setting other compression parameters that affect the speed and ratio of compressing data. Regular compression levels are greater than ``0``. Values greater than ``20`` are considered "ultra" compression and require more memory than other levels. Negative values can be used to trade off faster co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ee3e6908-bcc2-4e68-a21f-e3bb002c5846
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,840
supabase-export-v2
0ab01bc9d8b0ccf4
.. attribute:: nb_workers Select how many threads will be spawned to compress in parallel. When :attr:`!nb_workers` > 0, enables multi-threaded compression, a value of ``1`` means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio.
trusted_official_docs
CPython Docs
.. attribute:: nb_workers Select how many threads will be spawned to compress in parallel. When :attr:`!nb_workers` > 0, enables multi-threaded compression, a value of ``1`` means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio.
.. attribute:: nb_workers Select how many threads will be spawned to compress in parallel. When :attr:`!nb_workers` > 0, enables multi-threaded compression, a value of ``1`` means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ee900eab-158f-4de2-a952-018cd48804fb
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,747
supabase-export-v2
34f426f787adf321
.. function:: finalize_dict(zstd_dict, /, samples, dict_size, level) An advanced function for converting a "raw content" Zstandard dictionary into a regular Zstandard dictionary. "Raw content" dictionaries are a sequence of bytes that do not need to follow the structure of a normal Zstandard dictionary.
trusted_official_docs
CPython Docs
.. function:: finalize_dict(zstd_dict, /, samples, dict_size, level) An advanced function for converting a "raw content" Zstandard dictionary into a regular Zstandard dictionary. "Raw content" dictionaries are a sequence of bytes that do not need to follow the structure of a normal Zstandard dictionary.
.. function:: finalize_dict(zstd_dict, /, samples, dict_size, level) An advanced function for converting a "raw content" Zstandard dictionary into a regular Zstandard dictionary. "Raw content" dictionaries are a sequence of bytes that do not need to follow the structure of a normal Zstandard dictionary.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f460badb-2941-455e-abc6-50eafd1d5172
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,744
supabase-export-v2
8f4602a0ef8ffaf7
to less repetition. If you are compressing multiple similar groups of data (such as similar files), Zstandard dictionaries can improve compression ratios and speed significantly. The *samples* argument (an iterable of :class:`bytes` objects), is the population of samples used to train the Zstandard dictionary.
trusted_official_docs
CPython Docs
to less repetition. If you are compressing multiple similar groups of data (such as similar files), Zstandard dictionaries can improve compression ratios and speed significantly. The *samples* argument (an iterable of :class:`bytes` objects), is the population of samples used to train the Zstandard dictionary.
to less repetition. If you are compressing multiple similar groups of data (such as similar files), Zstandard dictionaries can improve compression ratios and speed significantly. The *samples* argument (an iterable of :class:`bytes` objects), is the population of samples used to train the Zstandard dictionary.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f51684ec-9b69-4a6c-b794-30997fddb7a7
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,765
supabase-export-v2
263cdf5506cf01d7
Non-zero means the dictionary is ordinary, created by Zstandard functions and following the Zstandard format. ``0`` means a "raw content" dictionary, free of any format restriction, used for advanced users.
trusted_official_docs
CPython Docs
Non-zero means the dictionary is ordinary, created by Zstandard functions and following the Zstandard format. ``0`` means a "raw content" dictionary, free of any format restriction, used for advanced users.
Non-zero means the dictionary is ordinary, created by Zstandard functions and following the Zstandard format. ``0`` means a "raw content" dictionary, free of any format restriction, used for advanced users.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f707d156-738c-4984-a93f-e8090a7090ec
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,759
supabase-export-v2
19d0bd8f785aa8fb
digested dictionary again with the same compression level. - No. If you wish to load an undigested dictionary multiple times, consider reusing a compressor object. If passing a :class:`!ZstdDict` without any attribute, an undigested dictionary is passed by default when compressing and a digested dictionary is generat...
trusted_official_docs
CPython Docs
digested dictionary again with the same compression level. - No. If you wish to load an undigested dictionary multiple times, consider reusing a compressor object. If passing a :class:`!ZstdDict` without any attribute, an undigested dictionary is passed by default when compressing and a digested dictionary is generat...
digested dictionary again with the same compression level. - No. If you wish to load an undigested dictionary multiple times, consider reusing a compressor object. If passing a :class:`!ZstdDict` without any attribute, an undigested dictionary is passed by default when compressing and a digested dictionary is generat...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ff775539-fb13-48ce-aa59-0ad4ae315f6a
CPython Docs
file://datasets/cpython/Doc/library/compression.zstd.rst
unknown
c50e1795-f599-499a-b1fd-932066490d14
15,826
supabase-export-v2
1a2cb75bd4e30eb4
the long distance matcher hash table. Larger values improve compression speed. Deviating far from the default value will likely result in a compression ratio decrease. A value of zero causes the value to be selected automatically.
trusted_official_docs
CPython Docs
the long distance matcher hash table. Larger values improve compression speed. Deviating far from the default value will likely result in a compression ratio decrease. A value of zero causes the value to be selected automatically.
the long distance matcher hash table. Larger values improve compression speed. Deviating far from the default value will likely result in a compression ratio decrease. A value of zero causes the value to be selected automatically.
python, official-docs, cpython, P0
Local_Trusted_Corpus
035352a0-1d9e-4155-9299-0dcbc96376e0
CPython Docs
file://datasets/cpython/Doc/library/site.rst
unknown
6142536b-ffd9-4be4-a642-4911a1c02537
15,966
supabase-export-v2
36d9b293d2b4f7b6
it as a ``pkg.mod:callable`` entry point in a matching :file:`{name}.start` file. Move everything on your ``import`` line after the first semi-colon into the ``callable()`` function. If your package must straddle older Pythons that do not support :pep:`829` and newer Pythons that do, change the ``import`` lines in your...
trusted_official_docs
CPython Docs
it as a ``pkg.mod:callable`` entry point in a matching :file:`{name}.start` file. Move everything on your ``import`` line after the first semi-colon into the ``callable()`` function. If your package must straddle older Pythons that do not support :pep:`829` and newer Pythons that do, change the ``import`` lines in your...
it as a ``pkg.mod:callable`` entry point in a matching :file:`{name}.start` file. Move everything on your ``import`` line after the first semi-colon into the ``callable()`` function. If your package must straddle older Pythons that do not support :pep:`829` and newer Pythons that do, change the ``import`` lines in your...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c119afa-f473-4149-9454-e42696066d09
CPython Docs
file://datasets/cpython/Doc/library/site.rst
unknown
6142536b-ffd9-4be4-a642-4911a1c02537
15,998
supabase-export-v2
460adf4418fb5b57
.. versionchanged:: next Also processes :file:`.start` files. See :ref:`site-start-files`. All :file:`.pth` and :file:`.start` files are now read and accumulated before any path extensions, ``import`` line execution, or entry point invocations take place.
trusted_official_docs
CPython Docs
.. versionchanged:: next Also processes :file:`.start` files. See :ref:`site-start-files`. All :file:`.pth` and :file:`.start` files are now read and accumulated before any path extensions, ``import`` line execution, or entry point invocations take place.
.. versionchanged:: next Also processes :file:`.start` files. See :ref:`site-start-files`. All :file:`.pth` and :file:`.start` files are now read and accumulated before any path extensions, ``import`` line execution, or entry point invocations take place.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ef975e8-db43-4128-9794-977a69d671b7
CPython Docs
file://datasets/cpython/Doc/library/site.rst
unknown
6142536b-ffd9-4be4-a642-4911a1c02537
15,921
supabase-export-v2
23f64f302273b31f
.. index:: single: # (hash); comment pair: statement; import The :mod:`!site` module recognizes two startup configuration files of the form :file:`{name}.pth` for path configurations, and :file:`{name}.start` for pre-first-line code execution. Both files can exist in one of the four directories mentioned above. Within ...
trusted_official_docs
CPython Docs
.. index:: single: # (hash); comment pair: statement; import The :mod:`!site` module recognizes two startup configuration files of the form :file:`{name}.pth` for path configurations, and :file:`{name}.start` for pre-first-line code execution. Both files can exist in one of the four directories mentioned above. Within ...
.. index:: single: # (hash); comment pair: statement; import The :mod:`!site` module recognizes two startup configuration files of the form :file:`{name}.pth` for path configurations, and :file:`{name}.start` for pre-first-line code execution. Both files can exist in one of the four directories mentioned above. Within ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
10516c6b-8f1b-41c4-8521-8071c33d95c5
CPython Docs
file://datasets/cpython/Doc/library/site.rst
unknown
6142536b-ffd9-4be4-a642-4911a1c02537
15,959
supabase-export-v2
852410ab6e225b31
directory precedes the :file:`foo` directory because :file:`bar.pth` comes alphabetically before :file:`foo.pth`; and :file:`spam` is omitted because it is not mentioned in either path configuration file. Let's say that there is also a :file:`foo.start` file containing the following::
trusted_official_docs
CPython Docs
directory precedes the :file:`foo` directory because :file:`bar.pth` comes alphabetically before :file:`foo.pth`; and :file:`spam` is omitted because it is not mentioned in either path configuration file. Let's say that there is also a :file:`foo.start` file containing the following::
directory precedes the :file:`foo` directory because :file:`bar.pth` comes alphabetically before :file:`foo.pth`; and :file:`spam` is omitted because it is not mentioned in either path configuration file. Let's say that there is also a :file:`foo.start` file containing the following::
python, official-docs, cpython, P0
Local_Trusted_Corpus