numcodecs 0.13.1__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of numcodecs might be problematic. Click here for more details.

Files changed (74) hide show
  1. numcodecs/__init__.py +143 -0
  2. numcodecs/_shuffle.cp313-win_amd64.pyd +0 -0
  3. numcodecs/abc.py +126 -0
  4. numcodecs/astype.py +76 -0
  5. numcodecs/base64.py +27 -0
  6. numcodecs/bitround.py +79 -0
  7. numcodecs/blosc.cp313-win_amd64.pyd +0 -0
  8. numcodecs/bz2.py +45 -0
  9. numcodecs/categorize.py +101 -0
  10. numcodecs/checksum32.py +94 -0
  11. numcodecs/compat.py +208 -0
  12. numcodecs/compat_ext.cp313-win_amd64.pyd +0 -0
  13. numcodecs/delta.py +97 -0
  14. numcodecs/fixedscaleoffset.py +132 -0
  15. numcodecs/fletcher32.cp313-win_amd64.pyd +0 -0
  16. numcodecs/gzip.py +52 -0
  17. numcodecs/jenkins.cp313-win_amd64.pyd +0 -0
  18. numcodecs/json.py +107 -0
  19. numcodecs/lz4.cp313-win_amd64.pyd +0 -0
  20. numcodecs/lzma.py +69 -0
  21. numcodecs/msgpacks.py +86 -0
  22. numcodecs/ndarray_like.py +65 -0
  23. numcodecs/packbits.py +85 -0
  24. numcodecs/pcodec.py +89 -0
  25. numcodecs/pickles.py +55 -0
  26. numcodecs/quantize.py +100 -0
  27. numcodecs/registry.py +72 -0
  28. numcodecs/shuffle.py +61 -0
  29. numcodecs/tests/__init__.py +3 -0
  30. numcodecs/tests/common.py +354 -0
  31. numcodecs/tests/package_with_entrypoint/__init__.py +11 -0
  32. numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt +2 -0
  33. numcodecs/tests/test_astype.py +74 -0
  34. numcodecs/tests/test_base64.py +81 -0
  35. numcodecs/tests/test_bitround.py +81 -0
  36. numcodecs/tests/test_blosc.py +277 -0
  37. numcodecs/tests/test_bz2.py +66 -0
  38. numcodecs/tests/test_categorize.py +87 -0
  39. numcodecs/tests/test_checksum32.py +58 -0
  40. numcodecs/tests/test_compat.py +108 -0
  41. numcodecs/tests/test_delta.py +60 -0
  42. numcodecs/tests/test_entrypoints.py +24 -0
  43. numcodecs/tests/test_entrypoints_backport.py +35 -0
  44. numcodecs/tests/test_fixedscaleoffset.py +69 -0
  45. numcodecs/tests/test_fletcher32.py +56 -0
  46. numcodecs/tests/test_gzip.py +110 -0
  47. numcodecs/tests/test_jenkins.py +150 -0
  48. numcodecs/tests/test_json.py +85 -0
  49. numcodecs/tests/test_lz4.py +83 -0
  50. numcodecs/tests/test_lzma.py +90 -0
  51. numcodecs/tests/test_msgpacks.py +123 -0
  52. numcodecs/tests/test_ndarray_like.py +48 -0
  53. numcodecs/tests/test_packbits.py +39 -0
  54. numcodecs/tests/test_pcodec.py +80 -0
  55. numcodecs/tests/test_pickles.py +61 -0
  56. numcodecs/tests/test_quantize.py +76 -0
  57. numcodecs/tests/test_registry.py +40 -0
  58. numcodecs/tests/test_shuffle.py +168 -0
  59. numcodecs/tests/test_vlen_array.py +97 -0
  60. numcodecs/tests/test_vlen_bytes.py +93 -0
  61. numcodecs/tests/test_vlen_utf8.py +91 -0
  62. numcodecs/tests/test_zfpy.py +98 -0
  63. numcodecs/tests/test_zlib.py +94 -0
  64. numcodecs/tests/test_zstd.py +92 -0
  65. numcodecs/version.py +16 -0
  66. numcodecs/vlen.cp313-win_amd64.pyd +0 -0
  67. numcodecs/zfpy.py +111 -0
  68. numcodecs/zlib.py +42 -0
  69. numcodecs/zstd.cp313-win_amd64.pyd +0 -0
  70. numcodecs-0.13.1.dist-info/LICENSE.txt +21 -0
  71. numcodecs-0.13.1.dist-info/METADATA +64 -0
  72. numcodecs-0.13.1.dist-info/RECORD +74 -0
  73. numcodecs-0.13.1.dist-info/WHEEL +5 -0
  74. numcodecs-0.13.1.dist-info/top_level.txt +1 -0
numcodecs/zlib.py ADDED
@@ -0,0 +1,42 @@
1
+ import zlib as _zlib
2
+
3
+ from .abc import Codec
4
+ from .compat import ensure_contiguous_ndarray, ndarray_copy
5
+
6
+
7
+ class Zlib(Codec):
8
+ """Codec providing compression using zlib via the Python standard library.
9
+
10
+ Parameters
11
+ ----------
12
+ level : int
13
+ Compression level.
14
+
15
+ """
16
+
17
+ codec_id = 'zlib'
18
+
19
+ def __init__(self, level=1):
20
+ self.level = level
21
+
22
+ def encode(self, buf):
23
+ # normalise inputs
24
+ buf = ensure_contiguous_ndarray(buf)
25
+
26
+ # do compression
27
+ return _zlib.compress(buf, self.level)
28
+
29
+ # noinspection PyMethodMayBeStatic
30
+ def decode(self, buf, out=None):
31
+ # normalise inputs
32
+ buf = ensure_contiguous_ndarray(buf)
33
+ if out is not None:
34
+ out = ensure_contiguous_ndarray(out)
35
+
36
+ # do decompression
37
+ dec = _zlib.decompress(buf)
38
+
39
+ # handle destination - Python standard library zlib module does not
40
+ # support direct decompression into buffer, so we have to copy into
41
+ # out if given
42
+ return ndarray_copy(dec, out)
Binary file
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2018 Zarr Developers <https://github.com/zarr-developers>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.1
2
+ Name: numcodecs
3
+ Version: 0.13.1
4
+ Summary: A Python package providing buffer compression and transformation codecs for use in data storage and communication applications.
5
+ Maintainer-email: Alistair Miles <alimanfoo@googlemail.com>
6
+ License: MIT
7
+ Project-URL: Bug Tracker, https://github.com/zarr-developers/numcodecs/issues
8
+ Project-URL: Changelog, https://numcodecs.readthedocs.io/en/stable/release.html
9
+ Project-URL: Documentation, https://numcodecs.readthedocs.io/
10
+ Project-URL: Homepage, https://github.com/zarr-developers/numcodecs
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Information Technology
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Operating System :: Unix
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3 :: Only
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/x-rst
23
+ License-File: LICENSE.txt
24
+ Requires-Dist: numpy >=1.7
25
+ Provides-Extra: docs
26
+ Requires-Dist: sphinx ; extra == 'docs'
27
+ Requires-Dist: sphinx-issues ; extra == 'docs'
28
+ Requires-Dist: pydata-sphinx-theme ; extra == 'docs'
29
+ Requires-Dist: numpydoc ; extra == 'docs'
30
+ Requires-Dist: mock ; extra == 'docs'
31
+ Provides-Extra: msgpack
32
+ Requires-Dist: msgpack ; extra == 'msgpack'
33
+ Provides-Extra: pcodec
34
+ Requires-Dist: pcodec >=0.2.0 ; extra == 'pcodec'
35
+ Provides-Extra: test
36
+ Requires-Dist: coverage ; extra == 'test'
37
+ Requires-Dist: pytest ; extra == 'test'
38
+ Requires-Dist: pytest-cov ; extra == 'test'
39
+ Provides-Extra: test_extras
40
+ Requires-Dist: importlib-metadata ; extra == 'test_extras'
41
+ Provides-Extra: zfpy
42
+ Requires-Dist: zfpy >=1.0.0 ; extra == 'zfpy'
43
+ Requires-Dist: numpy <2.0.0 ; extra == 'zfpy'
44
+
45
+ Numcodecs
46
+ =========
47
+
48
+ Numcodecs is a Python package providing buffer compression and transformation
49
+ codecs for use in data storage and communication applications.
50
+
51
+ .. image:: https://readthedocs.org/projects/numcodecs/badge/?version=latest
52
+ :target: https://numcodecs.readthedocs.io/en/latest/?badge=latest
53
+
54
+ .. image:: https://github.com/zarr-developers/numcodecs/workflows/Linux%20CI/badge.svg?branch=main
55
+ :target: https://github.com/zarr-developers/numcodecs/actions?query=workflow%3A%22Linux+CI%22
56
+
57
+ .. image:: https://github.com/zarr-developers/numcodecs/workflows/OSX%20CI/badge.svg?branch=main
58
+ :target: https://github.com/zarr-developers/numcodecs/actions?query=workflow%3A%22OSX+CI%22
59
+
60
+ .. image:: https://github.com/zarr-developers/numcodecs/workflows/Wheels/badge.svg?branch=main
61
+ :target: https://github.com/zarr-developers/numcodecs/actions?query=workflow%3AWheels
62
+
63
+ .. image:: https://codecov.io/gh/zarr-developers/numcodecs/branch/main/graph/badge.svg
64
+ :target: https://codecov.io/gh/zarr-developers/numcodecs
@@ -0,0 +1,74 @@
1
+ numcodecs/__init__.py,sha256=7HLiouBg6GIdrvANRbZFmvg6WaML3udAs9AvQa6owYM,3244
2
+ numcodecs/_shuffle.cp313-win_amd64.pyd,sha256=sxAZM59LD-Ip7RnoOFMF2rNSmykJgG2k-XrWxVv48aM,137216
3
+ numcodecs/abc.py,sha256=9zrXoDcAFapcMRGrSThzyi7hNPKlKFZ0FBSZx2vbUEE,4588
4
+ numcodecs/astype.py,sha256=py0m2RrDdDjvEORxWNXaarBE2xKdCkjNWeMf6GCoLg4,2213
5
+ numcodecs/base64.py,sha256=E9166xLd0qzo9IZGb3PdP2jENITahjeD6krbochvBX8,811
6
+ numcodecs/bitround.py,sha256=RBVQ6-zIIkNs93hnulHXsNkLMhfrYxzlKGZ5zATNUig,2903
7
+ numcodecs/blosc.cp313-win_amd64.pyd,sha256=mghq6_0WSe5EOXopokX_OfKS-l250LvOEOG0lKGfFb8,605696
8
+ numcodecs/bz2.py,sha256=bS0L4XqzJDw6pU4MUuEF8UgFOHw6mErnqCXZVg8TEiI,1219
9
+ numcodecs/categorize.py,sha256=EZFF7KyjniCT3LzsitUS3DgJmcNWk1rguTLJemScgJY,3084
10
+ numcodecs/checksum32.py,sha256=W_AV8HeZ2dxgWXMOThORmiFh7E1lmsKdkKCCXWvR-WQ,3252
11
+ numcodecs/compat.py,sha256=Z_Ewy__2nayaih9IG-50E-a4_c5rLmYYmPZO26eiYJs,6721
12
+ numcodecs/compat_ext.cp313-win_amd64.pyd,sha256=WhFIbAyV0nvcRxIaoLjVTF5frpwJ9ggOUeagFSnzBDI,33280
13
+ numcodecs/delta.py,sha256=O24yAsM2kyugkew3VNH0BWptofzxc8PR-dM_wgiM1mI,2903
14
+ numcodecs/fixedscaleoffset.py,sha256=tM3faGimeCC2hzjuyPZU7dfPrSXlIf8kU1rLADUFov0,4328
15
+ numcodecs/fletcher32.cp313-win_amd64.pyd,sha256=HrABhSd5KpF2pQz_sMjMi3NW_9reUS9snygmPLn6n90,157696
16
+ numcodecs/gzip.py,sha256=vPmEDJDkgW14icC-sGeQz1wDUqifhmRBC_B6V-vdEqY,1521
17
+ numcodecs/jenkins.cp313-win_amd64.pyd,sha256=H93lr9A7TKguyDRPbGNXgzCxRyF-Ndk9sTKdOT_p92U,147456
18
+ numcodecs/json.py,sha256=VtI1U1zEGotH56zVWnAA7UwKWso1Kukwyzy_mopVIgY,3462
19
+ numcodecs/lz4.cp313-win_amd64.pyd,sha256=gR9YjIyb9lg_nsQKZzK6a0YQPzOzvCeW9k62Lll3m3k,71168
20
+ numcodecs/lzma.py,sha256=hm-dqMUQnZUQlr3liiLZzbsL88EF4mAZ2U_AaZNNoRE,2204
21
+ numcodecs/msgpacks.py,sha256=58AVf8VovnBaFaVakLU3dRHodLMsJUlMe6uVaYSwmfY,2697
22
+ numcodecs/ndarray_like.py,sha256=J1ROL3NobRzLxU2M7R8yH4wINWdjaJoffzjjlJDETZo,1931
23
+ numcodecs/packbits.py,sha256=CVF7ZB-jYF7Lni2kbKfkmpfTJRg2Cnu3eASatuuymyA,2116
24
+ numcodecs/pcodec.py,sha256=RUwx3Q22e0JWOJ5RllLpM3CshxU1UKNRggQi0qIjVGs,3168
25
+ numcodecs/pickles.py,sha256=MEyNRXM6dQC62LBc4X46q83ZSa6L3Ord5rFst3E7wvQ,1343
26
+ numcodecs/quantize.py,sha256=6cRZolHGF_TToxuB5WhYz7XrirFS9exsr7nKwIzIv6Y,3137
27
+ numcodecs/registry.py,sha256=ENrQpT28HUZ33iGf3KFAwfQOQYLtXjrV4BCkvpwcppg,1835
28
+ numcodecs/shuffle.py,sha256=ty-NJ1bIgsErwmTyJtspSgrrJ4PspQjp6Hb-U2M17hY,1636
29
+ numcodecs/version.py,sha256=ciZvwdy0HBZeRbI0COvEiydD_yAxHeUwQOeMGUovgCo,429
30
+ numcodecs/vlen.cp313-win_amd64.pyd,sha256=7_MGqx2ZIQrif5CuAyY6MaR4NTpWERUN3ooYyoSU1eM,202240
31
+ numcodecs/zfpy.py,sha256=2g_CMrfA8xO53AYjzrE3gOHzIgUF8eKX7rsS2KoKR0Y,3907
32
+ numcodecs/zlib.py,sha256=C5TO2qRPyG6SY25lmB9qeFh6yr4IRAqHz0v4RaPvygE,1091
33
+ numcodecs/zstd.cp313-win_amd64.pyd,sha256=K_51-oqynuPJFhH1Qk-vArjqFY2t_dylVq27iBbp2uM,448000
34
+ numcodecs/tests/__init__.py,sha256=W7MDbDAXcjl7fVmolo3U_30rFkOCb6mWQ8vcByUpu8g,75
35
+ numcodecs/tests/common.py,sha256=94e6AU1RBb-ipYNyInSuQxA67SIVNSdf3dxJVavrVfQ,12522
36
+ numcodecs/tests/test_astype.py,sha256=m-l8k4q8jSZrIqviASKxYsaPzzuBG_Y4tUNlIigYbco,2441
37
+ numcodecs/tests/test_base64.py,sha256=znf-cMk2JBW3vjcZu7CpC2b9wIiIzBPwfmHX_WlkZ1o,2396
38
+ numcodecs/tests/test_bitround.py,sha256=mto8z-up4GBPOlEa9vC6pXTNrT0y1OG8Rn9NhUYwp8o,2439
39
+ numcodecs/tests/test_blosc.py,sha256=EHokmQVkpXLhIEEhwhyIU2_7nVbSrBBcyZis3GuwZ5A,9143
40
+ numcodecs/tests/test_bz2.py,sha256=iH9BPZ8wtXCEfq52RXOqQ9bmQsTMiy3uujIKNpi2Mqs,1955
41
+ numcodecs/tests/test_categorize.py,sha256=wug4Im375r3nM1oTIrDVW5woZiZDCsp5uE1Fz6qwIkI,2843
42
+ numcodecs/tests/test_checksum32.py,sha256=5PA8WBrG1TTsvZpFxIKh0XCu3ye6ZLsr1ksTyetZh9A,1529
43
+ numcodecs/tests/test_compat.py,sha256=Gc0FlCjC42mqNilmVJwV4K487xw3TZQZL0-oZmgQ3_U,3725
44
+ numcodecs/tests/test_delta.py,sha256=Bc1n9aIpqsU8BkX4GphbHjzQHcLRPs20igCFh1aYnrI,1630
45
+ numcodecs/tests/test_entrypoints.py,sha256=poAHVnz9kThz2X1X2DTEw7J9xcCfPCjAqo4ZfQ8wcnw,530
46
+ numcodecs/tests/test_entrypoints_backport.py,sha256=MNv1UlKWrwSxebSzID7YmiJhyM8NAW7e4sQz8YGyzJY,1076
47
+ numcodecs/tests/test_fixedscaleoffset.py,sha256=3V1h0-8lu1vGzHyL3oijib3HVUgLG6fFAmmcWxE2prI,2316
48
+ numcodecs/tests/test_fletcher32.py,sha256=J5ND8xcy4QQKYUYBaH_VyBzKm5biFoV9H5Fp9NsVe3s,1512
49
+ numcodecs/tests/test_gzip.py,sha256=khoVo8QEV4edhsWBHzNk3Tk2xYOwQChddE_5vforF5M,3035
50
+ numcodecs/tests/test_jenkins.py,sha256=h2VG0hFkf6umeUqoXna8cpn_XmdcDNv1sWOQJmk43jI,4596
51
+ numcodecs/tests/test_json.py,sha256=IbWeFjPtSaCrYyvnwQmYG1nTP7siwYRNMdyV1cU1gF0,2373
52
+ numcodecs/tests/test_lz4.py,sha256=pYCzUhI8o0LY1Jfj82EMIbPreZikBY1dB67GJqdZZn0,2436
53
+ numcodecs/tests/test_lzma.py,sha256=4a7rgNAKj2wr_PsXS_W5WZcSZPUwteYUFJhAPyjH058,2725
54
+ numcodecs/tests/test_msgpacks.py,sha256=3z3DDGLcznS6AxlysyylSo187wND6ISGPo8ZOd4Kdho,3957
55
+ numcodecs/tests/test_ndarray_like.py,sha256=GXx-XTSKK8wGLlEeuvrgdFDQ3uGtV55-fKKjzN6G0gc,1321
56
+ numcodecs/tests/test_packbits.py,sha256=UWXpYyaHLybqOHgZgVTP_5VeibGO09CyJyKSO_mTCeI,1028
57
+ numcodecs/tests/test_pcodec.py,sha256=RGd-jmzi0LtfmJP4Q68Fk8Rxu1glwHCndpObWjwbfxQ,2108
58
+ numcodecs/tests/test_pickles.py,sha256=zhmZPPiCgW3uFArYvixgiMPWXdmKjnCj0JThUDt8nn4,1740
59
+ numcodecs/tests/test_quantize.py,sha256=muD4zwQSa4XM4jPO3qXu8rMdoU4eHCpVfQ8z0G7Zh-U,2227
60
+ numcodecs/tests/test_registry.py,sha256=VJI2qPYVzUe3svD-fNFutNz246B2PT3QdvOjiFRowH0,1103
61
+ numcodecs/tests/test_shuffle.py,sha256=WG0soC343hSszp0Gck4cOS9AIUqgTHea7GDfQPaBZJE,4865
62
+ numcodecs/tests/test_vlen_array.py,sha256=sUwLaza31Yo0IMnmKCGykRPaB3ha7i0ImiCY9yvHS9o,2574
63
+ numcodecs/tests/test_vlen_bytes.py,sha256=ujYHFkBn7EultxVkEepbmFriQfO_pJxfh7dEfTxCCco,2566
64
+ numcodecs/tests/test_vlen_utf8.py,sha256=X0nBvLv1hVDHGz3pIRMP4rVs75lAkXGUb0cRcfZM1Ss,2565
65
+ numcodecs/tests/test_zfpy.py,sha256=Eed6TeK1OrLKEs0AB-B5W5gfHiuytuv1VY8TDfgdPT4,2772
66
+ numcodecs/tests/test_zlib.py,sha256=SxgYIyH2bH_eIX7k-9kgPUOXCHEllGPoLSUSn0Qk5rg,2633
67
+ numcodecs/tests/test_zstd.py,sha256=P-wHnm0wOuclHOoX7danVEvufxKNM3GwYBgHBchzILE,2702
68
+ numcodecs/tests/package_with_entrypoint/__init__.py,sha256=j0h1AHePXH8ONfd-TMGwKsMW4gBqbgiGOuGP25S9hLE,223
69
+ numcodecs-0.13.1.dist-info/LICENSE.txt,sha256=IxxTq7WTy9_G9AbShWjbBcg6x2G3pDlJEIBJN2o95ks,1145
70
+ numcodecs-0.13.1.dist-info/METADATA,sha256=ikUjWEtV6XcEM61bdnTIGwS6MwoW-gi19fUqojmrVPE,2997
71
+ numcodecs-0.13.1.dist-info/WHEEL,sha256=WsITy9NjrxZo875xZQhJpU3vZUHVZRtNnEd5DMBQpxU,101
72
+ numcodecs-0.13.1.dist-info/top_level.txt,sha256=JkHllzt6IuVudg4Tk--wF-yfPPsdVOiMTag1tjGIihw,10
73
+ numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt,sha256=COk3sfJsTt3T00bA2bcUMCuWEhwkQvf4lPHcBDk34qA,62
74
+ numcodecs-0.13.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.1.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_amd64
5
+
@@ -0,0 +1 @@
1
+ numcodecs