zstd 1.5.6.3__cp36-cp36m-manylinux_2_4_i686.whl
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,24 @@
|
|
1
|
+
Copyright (c) 2015-2022, Sergey Dryabzhinsky, Anton Stuk
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
* Redistributions of source code must retain the above copyright notice, this
|
8
|
+
list of conditions and the following disclaimer.
|
9
|
+
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
12
|
+
and/or other materials provided with the distribution.
|
13
|
+
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
15
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
16
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
18
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
19
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
20
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
21
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
22
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
23
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
24
|
+
|
@@ -0,0 +1,496 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: zstd
|
3
|
+
Version: 1.5.6.3
|
4
|
+
Summary: ZSTD Bindings for Python
|
5
|
+
Home-page: https://github.com/sergey-dryabzhinsky/python-zstd
|
6
|
+
Author: Sergey Dryabzhinsky, Anton Stuk
|
7
|
+
Author-email: sergey.dryabzhinsky@gmail.com
|
8
|
+
Maintainer: Sergey Dryabzhinsky
|
9
|
+
Maintainer-email: sergey.dryabzhinsky@gmail.com
|
10
|
+
License: BSD
|
11
|
+
Keywords: zstd,zstandard,compression
|
12
|
+
Platform: UNKNOWN
|
13
|
+
Classifier: License :: OSI Approved :: BSD License
|
14
|
+
Classifier: Intended Audience :: Developers
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
16
|
+
Classifier: Operating System :: POSIX
|
17
|
+
Classifier: Programming Language :: C
|
18
|
+
Classifier: Programming Language :: Python
|
19
|
+
Classifier: Programming Language :: Python :: 2.7
|
20
|
+
Classifier: Programming Language :: Python :: 3.4
|
21
|
+
Classifier: Programming Language :: Python :: 3.5
|
22
|
+
Classifier: Programming Language :: Python :: 3.6
|
23
|
+
Classifier: Programming Language :: Python :: 3.7
|
24
|
+
Classifier: Programming Language :: Python :: 3.8
|
25
|
+
Classifier: Programming Language :: Python :: 3.9
|
26
|
+
Classifier: Programming Language :: Python :: 3.10
|
27
|
+
Classifier: Programming Language :: Python :: 3.11
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
29
|
+
Classifier: Programming Language :: Python :: 3.13
|
30
|
+
Classifier: Programming Language :: Python :: 3.14
|
31
|
+
License-File: LICENSE
|
32
|
+
|
33
|
+
=============
|
34
|
+
python-zstd
|
35
|
+
=============
|
36
|
+
|
37
|
+
.. |releaseW| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg?tag=v1.5.6.3
|
38
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml
|
39
|
+
|
40
|
+
.. |masterW| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg
|
41
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml
|
42
|
+
|
43
|
+
.. |cpython27x64| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython27_x86_64.yml/badge.svg
|
44
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython27_x86_64.yml
|
45
|
+
|
46
|
+
.. |cpython27x86| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython27_x86.yml/badge.svg
|
47
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython27_x86.yml
|
48
|
+
|
49
|
+
.. |cpython27armhf| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython27_armhf.yml/badge.svg
|
50
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython27_armhf.yml
|
51
|
+
|
52
|
+
.. |cpython34x86| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython34_x86.yml/badge.svg
|
53
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython34_x86.yml
|
54
|
+
|
55
|
+
.. |cpython34x64| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython34_x86_64.yml/badge.svg
|
56
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython34_x86_64.yml
|
57
|
+
|
58
|
+
.. |cpython35x86| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython35_x86.yml/badge.svg
|
59
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython35_x86.yml
|
60
|
+
|
61
|
+
.. |cpython35x64| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython35_x86_64.yml/badge.svg
|
62
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython35_x86_64.yml
|
63
|
+
|
64
|
+
.. |cpython36x86| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython36_x86.yml/badge.svg
|
65
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython36_x86.yml
|
66
|
+
|
67
|
+
.. |cpython36x64| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython36_x86_64.yml/badge.svg
|
68
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython36_x86_64.yml
|
69
|
+
|
70
|
+
.. |cpython37x86| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython37_x86.yml/badge.svg
|
71
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython37_x86.yml
|
72
|
+
|
73
|
+
.. |cpython37x64| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython37_x86_64_u24.yml/badge.svg
|
74
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython37_x86_64_u24.yml
|
75
|
+
|
76
|
+
.. |cpython38x86| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython38_x86.yml/badge.svg
|
77
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython38_x86.yml
|
78
|
+
|
79
|
+
.. |cpython38x64| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython38_x86_64_u24.yml/badge.svg
|
80
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython38_x86_64_u24.yml
|
81
|
+
|
82
|
+
.. |cpython39x86| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython39_x86.yml/badge.svg
|
83
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython39_x86.yml
|
84
|
+
|
85
|
+
.. |cpython39x64| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython39_x86_64_u24.yml/badge.svg
|
86
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython39_x86_64_u24.yml
|
87
|
+
|
88
|
+
.. |cpython310x86u16| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython310_x86_u16.yml/badge.svg
|
89
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython310_x86_u16.yml
|
90
|
+
|
91
|
+
.. |cpython310x64u20| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython310_x86_64_u24.yml/badge.svg
|
92
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython310_x86_64_u24.yml
|
93
|
+
|
94
|
+
.. |cpython311x86u16| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython311_x86_u16.yml/badge.svg
|
95
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython311_x86_u16.yml
|
96
|
+
|
97
|
+
.. |cpython311x64u20| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython311_x86_64_u24.yml/badge.svg
|
98
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython311_x86_64_u24.yml
|
99
|
+
|
100
|
+
.. |cpython312x86u16| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython312_x86_u16.yml/badge.svg
|
101
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython312_x86_u16.yml
|
102
|
+
|
103
|
+
.. |cpython312x64u20| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython312_x86_64_u20.yml/badge.svg
|
104
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython312_x86_64_u20.yml
|
105
|
+
|
106
|
+
.. |cpython313x64u20| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython313_x86_64_u24.yml/badge.svg
|
107
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython313_x86_64_u24.yml
|
108
|
+
|
109
|
+
.. |cpython314x64u20| image:: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython314_x86_64_u24.yml/badge.svg
|
110
|
+
:target: https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/Build_wheels_for_cpython314_x86_64_u24.yml
|
111
|
+
|
112
|
+
+----------------------+---------------------+
|
113
|
+
| wheels for: | status |
|
114
|
+
+======================+=====================+
|
115
|
+
| cpython 2.7 x86 | |cpython27x86| |
|
116
|
+
+----------------------+---------------------+
|
117
|
+
| cpython 2.7 x64 | |cpython27x64| |
|
118
|
+
+----------------------+---------------------+
|
119
|
+
| cpython 2.7 armhf | |cpython27armhf| |
|
120
|
+
+----------------------+---------------------+
|
121
|
+
| cpython 3.4 x86 | |cpython34x86| |
|
122
|
+
+----------------------+---------------------+
|
123
|
+
| cpython 3.4 x64 | |cpython34x64| |
|
124
|
+
+----------------------+---------------------+
|
125
|
+
| cpython 3.5 x86 | |cpython35x86| |
|
126
|
+
+----------------------+---------------------+
|
127
|
+
| cpython 3.5 x64 | |cpython35x64| |
|
128
|
+
+----------------------+---------------------+
|
129
|
+
| cpython 3.6 x86 | |cpython36x86| |
|
130
|
+
+----------------------+---------------------+
|
131
|
+
| cpython 3.6 x64 | |cpython36x64| |
|
132
|
+
+----------------------+---------------------+
|
133
|
+
| cpython 3.7 x86 | |cpython37x86| |
|
134
|
+
+----------------------+---------------------+
|
135
|
+
| cpython 3.7 x64 u24 | |cpython37x64| |
|
136
|
+
+----------------------+---------------------+
|
137
|
+
| cpython 3.8 x86 | |cpython38x86| |
|
138
|
+
+----------------------+---------------------+
|
139
|
+
| cpython 3.8 x64 u24 | |cpython38x64| |
|
140
|
+
+----------------------+---------------------+
|
141
|
+
| cpython 3.9 x86 | |cpython39x86| |
|
142
|
+
+----------------------+---------------------+
|
143
|
+
| cpython 3.9 x64 u24 | |cpython39x64| |
|
144
|
+
+----------------------+---------------------+
|
145
|
+
| cpython 3.10 x86 u16 | |cpython310x86u16| |
|
146
|
+
+----------------------+---------------------+
|
147
|
+
| cpython 3.10 x64 u24 | |cpython310x64u20| |
|
148
|
+
+----------------------+---------------------+
|
149
|
+
| cpython 3.11 x86 u16 | |cpython311x86u16| |
|
150
|
+
+----------------------+---------------------+
|
151
|
+
| cpython 3.11 x64 u24 | |cpython311x64u20| |
|
152
|
+
+----------------------+---------------------+
|
153
|
+
| cpython 3.12 x86 u16 | |cpython312x86u16| |
|
154
|
+
+----------------------+---------------------+
|
155
|
+
| cpython 3.12 x64 u24 | |cpython312x64u20| |
|
156
|
+
+----------------------+---------------------+
|
157
|
+
| cpython 3.13 x64 u24 | |cpython313x64u20| |
|
158
|
+
+----------------------+---------------------+
|
159
|
+
| cpython 3.14 x64 u24 | |cpython314x64u20| |
|
160
|
+
+----------------------+---------------------+
|
161
|
+
| Release | |releaseW| |
|
162
|
+
| 1.5.6.3 | |
|
163
|
+
+----------------------+---------------------+
|
164
|
+
| Master | |masterW| |
|
165
|
+
+----------------------+---------------------+
|
166
|
+
|
167
|
+
Simple python bindings to Yann Collet ZSTD compression library.
|
168
|
+
|
169
|
+
**Zstd**, short for Zstandard, is a new lossless compression algorithm,
|
170
|
+
which provides both good compression ratio *and* speed for your standard compression needs.
|
171
|
+
"Standard" translates into everyday situations which neither look for highest possible ratio
|
172
|
+
(which LZMA and ZPAQ cover) nor extreme speeds (which LZ4 covers).
|
173
|
+
|
174
|
+
It is provided as a BSD-license package, hosted on GitHub_.
|
175
|
+
|
176
|
+
.. _GitHub: https://github.com/facebook/zstd
|
177
|
+
|
178
|
+
|
179
|
+
WARNING!!!
|
180
|
+
----------
|
181
|
+
|
182
|
+
If you setup 1.0.0.99.1 version - remove it manualy to able to update.
|
183
|
+
PIP matching version strings not tuple of numbers.
|
184
|
+
|
185
|
+
Result generated by versions prior to 1.0.0.99.1 is not compatible with orignial Zstd
|
186
|
+
by any means. It generates custom header and can be read only by zstd python module.
|
187
|
+
|
188
|
+
As of 1.0.0.99.1 version it uses standard Zstd output, not modified.
|
189
|
+
|
190
|
+
To prevent data loss there is two functions now: ```compress_old``` and ```decompress_old```.
|
191
|
+
They are works just like in old versions prior to 1.0.0.99.1.
|
192
|
+
|
193
|
+
As of 1.1.4 version module build without them by default.
|
194
|
+
|
195
|
+
As of 1.3.4 version these functions are deprecated and will be removed in future releases.
|
196
|
+
|
197
|
+
As of 1.5.0 version these functions are removed.
|
198
|
+
|
199
|
+
|
200
|
+
DISCLAIMER
|
201
|
+
__________
|
202
|
+
|
203
|
+
These python bindings are kept simple and blunt.
|
204
|
+
|
205
|
+
Support of dictionaries and streaming is not planned.
|
206
|
+
|
207
|
+
|
208
|
+
LINKS
|
209
|
+
-----
|
210
|
+
|
211
|
+
* Zstandard: https://github.com/facebook/zstd
|
212
|
+
* More full-featured and compatible with Zstandard python bindings by Gregory Szorc: https://github.com/indygreg/python-zstandard
|
213
|
+
|
214
|
+
|
215
|
+
Build from source
|
216
|
+
-----------------
|
217
|
+
|
218
|
+
>>> $ git clone https://github.com/sergey-dryabzhinsky/python-zstd
|
219
|
+
>>> $ git submodule update --init
|
220
|
+
>>> $ apt-get install python-dev python3-dev python-setuptools python3-setuptools
|
221
|
+
>>> $ python setup.py build_ext clean
|
222
|
+
>>> $ python3 setup.py build_ext clean
|
223
|
+
|
224
|
+
And you need to install `libzstd` developer files at least version *1.4.0*:
|
225
|
+
|
226
|
+
>>> $ dnf install -y libzstd-devel
|
227
|
+
# or
|
228
|
+
>>> $ apt install -y libzstd-dev
|
229
|
+
# or
|
230
|
+
>>> $ apk add zstd-dev
|
231
|
+
|
232
|
+
or do manual installation of zstd from source.
|
233
|
+
|
234
|
+
Note: Zstd legacy format support disabled by default.
|
235
|
+
To build with Zstd legacy versions support - pass ``--legacy`` option to setup.py script:
|
236
|
+
|
237
|
+
>>> $ python setup.py build_ext --legacy clean
|
238
|
+
|
239
|
+
When using a PEP 517 builder you can use ``ZSTD_LEGACY`` environment variable instead:
|
240
|
+
|
241
|
+
>>> $ ZSTD_LEGACY=1 python -m build -w
|
242
|
+
|
243
|
+
Note: Python-Zstd legacy format support removed since 1.5.0.
|
244
|
+
If you need to convert old data - checkout 1.4.9.1 module version. Support of it disabled by default.
|
245
|
+
To build with python-zstd legacy format support (pre 1.1.2) - pass ``--pyzstd-legacy`` option to setup.py script:
|
246
|
+
|
247
|
+
>>> $ python setup.py build_ext --pyzstd-legacy clean
|
248
|
+
|
249
|
+
But beware! Legacy formats support state is unknown in this case.
|
250
|
+
And if your version not equal with python-zstd - tests may not pass.
|
251
|
+
|
252
|
+
If you're scared of threads you may pass option `--libzstd-no-threads`:
|
253
|
+
|
254
|
+
>>> $ python setup.py build_ext --libzstd-no-threads clean
|
255
|
+
|
256
|
+
When using a PEP 517 builder you can use ``ZSTD_THREADS`` environment variable instead:
|
257
|
+
|
258
|
+
>>> $ ZSTD_THREADS=0 python -m build -w
|
259
|
+
|
260
|
+
If you're meet some cpu instruction errorrs you may try to disable built-in optimizations and pass option `--libzstd-no-use-asm`:
|
261
|
+
|
262
|
+
>>> $ python setup.py build_ext --libzstd-no-use-asm clean
|
263
|
+
|
264
|
+
Or add more speed with option `--libzstd-use-asm-bmi2` to use instructions for new AMD CPU.
|
265
|
+
When using a PEP 517 builder you can use ``ZSTD_ASM`` environment variable instead:
|
266
|
+
And ``ZST_ASM_BMI2=1`` too for bmi2 use.
|
267
|
+
|
268
|
+
>>> $ ZSTD_ASM=0 python -m build -w
|
269
|
+
|
270
|
+
If you want bo build smaller module by size try to use option `--small`, but it will work slower.
|
271
|
+
|
272
|
+
>>> $ python setup.py build_ext --small clean
|
273
|
+
|
274
|
+
When using a PEP 517 builder you can use ``ZSTD_SMALL`` environment variable instead:
|
275
|
+
|
276
|
+
>>> $ ZSTD_SMALL=1 python -m build -w
|
277
|
+
|
278
|
+
If you want to build with existing distribution of libzstd just add ``--external`` option
|
279
|
+
|
280
|
+
>>> $ python setup.py build_ext --external clean
|
281
|
+
|
282
|
+
When using a PEP 517 builder you can use ``ZSTD_EXTERNAL`` environment variable instead:
|
283
|
+
|
284
|
+
>>> $ ZSTD_EXTERNAL=1 python -m build -w
|
285
|
+
|
286
|
+
If paths to header file ``zstd.h`` and libraries is uncommon - use common ``build`` params:
|
287
|
+
--libraries --include-dirs --library-dirs.
|
288
|
+
|
289
|
+
>>> $ python setup.py build_ext --external --include-dirs /opt/zstd/usr/include --libraries zstd --library-dirs /opt/zstd/lib clean
|
290
|
+
|
291
|
+
But If you want to build with bundled distribution of libzstd just add ``--
|
292
|
+
libzstd-bundled`` option
|
293
|
+
|
294
|
+
>>> $ python setup.py build_ext --libzstd-bundled clean
|
295
|
+
|
296
|
+
When using a PEP 517 builder you can use ``ZSTD_BUNDLED`` environment variable instead:
|
297
|
+
|
298
|
+
>>> $ ZSTD_BUNDLED=1 python -m build -w
|
299
|
+
|
300
|
+
Install from pypi
|
301
|
+
-----------------
|
302
|
+
|
303
|
+
>>> # for Python 2.7+
|
304
|
+
>>> $ pip install zstd
|
305
|
+
>>> # or for Python 3.4+
|
306
|
+
>>> $ pip3 install zstd
|
307
|
+
|
308
|
+
|
309
|
+
API
|
310
|
+
___
|
311
|
+
|
312
|
+
Error
|
313
|
+
Standard python Exception for zstd module
|
314
|
+
|
315
|
+
ZSTD_compress (data[, level, threads, strict]): string|bytes
|
316
|
+
Function, compress input data block via mutliple threads, return compressed block, or raises Error.
|
317
|
+
|
318
|
+
Params:
|
319
|
+
|
320
|
+
* **data**: string|bytes - input data block, length limited by 2Gb by Python API
|
321
|
+
* **level**: int - compression level, ultra-fast levels from -100 (ultra) to -1 (fast) available since zstd-1.3.4, and from 1 (fast) to 22 (slowest), 0 or unset - means default (3). Default - 3.
|
322
|
+
* **threads**: int - how many threads to use, from 0 to 200, 0 or unset - auto-tune by cpu cores count. Default - 0. Since: 1.4.4.1
|
323
|
+
* **strict**: int - strict behaviour, raise `zstd.Error` if threads number or compression level is beyond limitations. Default - 0. Since: 1.5.6.3
|
324
|
+
|
325
|
+
Aliases:
|
326
|
+
- *compress(...)*,
|
327
|
+
- *dumps(...)*,
|
328
|
+
- *encode(...)* since: 1.5.6.2
|
329
|
+
|
330
|
+
Exception if:
|
331
|
+
- level bigger than max level
|
332
|
+
|
333
|
+
Max number of threads:
|
334
|
+
- 32bit system: 64
|
335
|
+
- 64bit system: 256
|
336
|
+
If provided bigger number - silently set maximber (since 1.5.4.1)
|
337
|
+
|
338
|
+
Since: 0.1
|
339
|
+
|
340
|
+
ZSTD_uncompress (data): string|bytes
|
341
|
+
Function, decompress input compressed data block, return decompressed block, or raises Error.
|
342
|
+
|
343
|
+
Support compressed data with multiple/concatenated frames (blocks) (since 1.5.5.1).
|
344
|
+
|
345
|
+
Params:
|
346
|
+
|
347
|
+
* **data**: string|bytes - input compressed data block, length limited by 2Gb by Python API
|
348
|
+
|
349
|
+
Aliases:
|
350
|
+
- *decompress(...)*,
|
351
|
+
- *uncompress(...)*,
|
352
|
+
- *loads(...)*,
|
353
|
+
- *decode(...)* since: 1.5.6.2
|
354
|
+
|
355
|
+
Since: 0.1
|
356
|
+
|
357
|
+
ZSTD_check (data): int
|
358
|
+
Function, checks if input is zstd compressed data block, returns 1 if yes, 0 if no, or raises Error.
|
359
|
+
|
360
|
+
Support compressed data with multiple/concatenated frames (blocks) .
|
361
|
+
|
362
|
+
Params:
|
363
|
+
|
364
|
+
* **data**: string|bytes - input compressed data block, length limited by 2Gb by Python API
|
365
|
+
|
366
|
+
Aliases:
|
367
|
+
- *check(...)*,
|
368
|
+
- *verify(...)* since: 1.5.6.3
|
369
|
+
|
370
|
+
Since: 1.5.6.2
|
371
|
+
|
372
|
+
version (): string|bytes
|
373
|
+
Returns this module doted version string.
|
374
|
+
|
375
|
+
The first three digits are folow libzstd version.
|
376
|
+
Fourth digit - module release number for that version.
|
377
|
+
|
378
|
+
Since: 1.3.4.3
|
379
|
+
|
380
|
+
ZSTD_version (): string|bytes
|
381
|
+
Returns ZSTD library doted version string.
|
382
|
+
|
383
|
+
Since: 1.3.4.3
|
384
|
+
|
385
|
+
ZSTD_version_number (): int
|
386
|
+
Returns ZSTD library version in format: MAJOR*100*100 + MINOR*100 + RELEASE.
|
387
|
+
|
388
|
+
Since: 1.3.4.3
|
389
|
+
|
390
|
+
ZSTD_threads_count (): int
|
391
|
+
Returns ZSTD determined CPU cores count.
|
392
|
+
|
393
|
+
Since: 1.5.4.1
|
394
|
+
|
395
|
+
ZSTD_max_threads_count (): int
|
396
|
+
Returns ZSTD library determined maximum working threads count.
|
397
|
+
|
398
|
+
Since: 1.5.4.1
|
399
|
+
|
400
|
+
ZSTD_max_compression_level (): int
|
401
|
+
Returns ZSTD library determined maximum number of compression level .
|
402
|
+
|
403
|
+
Since: 1.5.6.3
|
404
|
+
|
405
|
+
ZSTD_min_compression_level (): int
|
406
|
+
Returns ZSTD library determined minimum number of compression level .
|
407
|
+
|
408
|
+
Since: 1.5.6.3
|
409
|
+
|
410
|
+
ZSTD_external (): int
|
411
|
+
Returns 0 of 1 if ZSTD library linked as external.
|
412
|
+
|
413
|
+
Since: 1.5.0.2
|
414
|
+
|
415
|
+
ZSTD_legacy_support (): int
|
416
|
+
Returns 0 of 1 if ZSTD library built with legacy formats support.
|
417
|
+
|
418
|
+
Since: 1.5.6.3
|
419
|
+
|
420
|
+
ZSTD_with_threads (): int
|
421
|
+
Returns 0 of 1 if bundled ZSTD library build with threads support.
|
422
|
+
|
423
|
+
Since: 1.5.6.2
|
424
|
+
|
425
|
+
ZSTD_with_asm (): int
|
426
|
+
Returns 0 of 1 if bundled ZSTD library build with asm optimization s.
|
427
|
+
|
428
|
+
Since: 1.5.6.2
|
429
|
+
|
430
|
+
|
431
|
+
Removed
|
432
|
+
_______
|
433
|
+
|
434
|
+
ZSTD_compress_old (data[, level]): string|bytes
|
435
|
+
Function, compress input data block, return compressed block, or raises Error.
|
436
|
+
|
437
|
+
**DEPRECATED**: Returns not compatible with ZSTD block header
|
438
|
+
|
439
|
+
**REMOVED**: since 1.5.0
|
440
|
+
|
441
|
+
Params:
|
442
|
+
|
443
|
+
* **data**: string|bytes - input data block, length limited by 2Gb by Python API
|
444
|
+
* **level**: int - compression level, ultra-fast levels from -5 (ultra) to -1 (fast) available since zstd-1.3.4, and from 1 (fast) to 22 (slowest), 0 or unset - means default (3). Default - 3.
|
445
|
+
|
446
|
+
Since: 1.0.0.99.1
|
447
|
+
|
448
|
+
ZSTD_uncompress_old (data): string|bytes
|
449
|
+
Function, decompress input compressed data block, return decompressed block, or raises Error.
|
450
|
+
|
451
|
+
**DEPRECATED**: Accepts data with not compatible with ZSTD block header
|
452
|
+
|
453
|
+
**REMOVED**: since 1.5.0
|
454
|
+
|
455
|
+
Params:
|
456
|
+
|
457
|
+
* **data**: string|bytes - input compressed data block, length limited by 2Gb by Python API
|
458
|
+
|
459
|
+
Since: 1.0.0.99.1
|
460
|
+
|
461
|
+
Use
|
462
|
+
___
|
463
|
+
|
464
|
+
Module has simple API:
|
465
|
+
|
466
|
+
>>> import zstd
|
467
|
+
>>> dir(zstd)
|
468
|
+
['Error', 'ZSTD_compress', 'ZSTD_external', 'ZSTD_uncompress', 'ZSTD_version', 'ZSTD_version_number', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'compress', 'decompress', 'dumps', 'loads', 'uncompress', 'version']
|
469
|
+
>>> zstd.version()
|
470
|
+
'1.5.1.0'
|
471
|
+
>>> zstd.ZSTD_version()
|
472
|
+
'1.5.1'
|
473
|
+
>>> zstd.ZSTD_version_number()
|
474
|
+
10501
|
475
|
+
>>> zstd.ZSTD_external()
|
476
|
+
0
|
477
|
+
|
478
|
+
In python2
|
479
|
+
|
480
|
+
>>> data = "123456qwert"
|
481
|
+
|
482
|
+
In python3 use bytes
|
483
|
+
|
484
|
+
>>> data = b"123456qwert"
|
485
|
+
|
486
|
+
|
487
|
+
>>> cdata = zstd.compress(data, 1)
|
488
|
+
>>> data == zstd.decompress(cdata)
|
489
|
+
True
|
490
|
+
>>> cdata_mt = zstd.compress(data, 1, 4)
|
491
|
+
>>> cdata == cdata_mt
|
492
|
+
True
|
493
|
+
>>> data == zstd.decompress(cdata_mt)
|
494
|
+
True
|
495
|
+
|
496
|
+
|
@@ -0,0 +1,6 @@
|
|
1
|
+
zstd.cpython-36m-i386-linux-gnu.so,sha256=6XYuqO1PRsdliSho6XXX4kWQ3bGP7zV1C1Nfet72jiY,624640
|
2
|
+
zstd-1.5.6.3.dist-info/LICENSE,sha256=uFlI3LUItL6HHwW5JwyqwrihDxfV2LORnmQkAhy3b-8,1320
|
3
|
+
zstd-1.5.6.3.dist-info/METADATA,sha256=GPjOBVhjl8e89gkMvWzqzAKTquYk7141cd2D3FhDR8Q,20335
|
4
|
+
zstd-1.5.6.3.dist-info/WHEEL,sha256=h-NjklnXDBEy_A62Gokctr8w9syUJEGS1wOMj7saliI,102
|
5
|
+
zstd-1.5.6.3.dist-info/top_level.txt,sha256=DhQX04hbm3dWgbCywpue8ejkkSuxZjpZGkVlo8ca-jM,5
|
6
|
+
zstd-1.5.6.3.dist-info/RECORD,,
|
@@ -0,0 +1 @@
|
|
1
|
+
zstd
|
Binary file
|