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