numcodecs 0.13.1__cp312-cp312-macosx_10_13_x86_64.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.cpython-312-darwin.so +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.cpython-312-darwin.so +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.cpython-312-darwin.so +0 -0
  13. numcodecs/delta.py +97 -0
  14. numcodecs/fixedscaleoffset.py +132 -0
  15. numcodecs/fletcher32.cpython-312-darwin.so +0 -0
  16. numcodecs/gzip.py +52 -0
  17. numcodecs/jenkins.cpython-312-darwin.so +0 -0
  18. numcodecs/json.py +107 -0
  19. numcodecs/lz4.cpython-312-darwin.so +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.cpython-312-darwin.so +0 -0
  67. numcodecs/zfpy.py +111 -0
  68. numcodecs/zlib.py +42 -0
  69. numcodecs/zstd.cpython-312-darwin.so +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-0.13.1.dist-info/RECORD,,
2
+ numcodecs-0.13.1.dist-info/WHEEL,sha256=XKcF31Zaw3JbUhzndjJ5pxA5UZO_hOCCOjGU939S708,111
3
+ numcodecs-0.13.1.dist-info/top_level.txt,sha256=JkHllzt6IuVudg4Tk--wF-yfPPsdVOiMTag1tjGIihw,10
4
+ numcodecs-0.13.1.dist-info/LICENSE.txt,sha256=lJysaEeeE7bJeSRjUVC04e9eaXZq2eRy6oWgjBV2u5Y,1124
5
+ numcodecs-0.13.1.dist-info/METADATA,sha256=6RpdX2_nPC23BntpRTEMveVtMnhchKj7Eb8HeMbDeFQ,2933
6
+ numcodecs/jenkins.cpython-312-darwin.so,sha256=Ko47Sg5OOSCePycYqI8HDEkHZyEiO6FNaSUm3pZqhiw,208840
7
+ numcodecs/lzma.py,sha256=8wYnJzWCi_SlQW_vhGOwChO0crYQSEbLHGNAvO-zHfs,2135
8
+ numcodecs/astype.py,sha256=0M9nV2Jb-8EwyoZGmOhCssaBvMej_B6hQ2p41VkmDdA,2137
9
+ numcodecs/gzip.py,sha256=7TyUzc9oliPqKA58VV7fNkCi_c9PP04MioAKG7a1oV0,1469
10
+ numcodecs/zstd.cpython-312-darwin.so,sha256=cyamUOL6nxmrHBCKkLNsCk2FnnVfkI7MOaZFdCp2RNE,1088760
11
+ numcodecs/base64.py,sha256=i-WpnY7A-vT-71By_tVBvHi41O4DzuqYyB829eNd29E,784
12
+ numcodecs/bz2.py,sha256=4Ups3IMVsjvBlXyaeYONPdE14TaK9V-4LH5LSNe7AGc,1174
13
+ numcodecs/version.py,sha256=2tfL_x7--SF9Szc7f-1EYHtdawpHz4gvIzw8B6TKeRA,413
14
+ numcodecs/compat.py,sha256=jBKRckLkgVXf3M7sZwpu7l0REtYkydxkMQDaMeczCmE,6513
15
+ numcodecs/_shuffle.cpython-312-darwin.so,sha256=A5HZeRdx7nkXtpL_-l5BzeP0v3j4tNlUOmSCQXa-aPA,187568
16
+ numcodecs/checksum32.py,sha256=QAum8WwnDwzt1b6E_awZwNxHjqHzQl3526MePct1A6w,3158
17
+ numcodecs/ndarray_like.py,sha256=hf94ErUEodzVUG3l2D8NWkhmbwDfF0dhR15drpn5S40,1866
18
+ numcodecs/quantize.py,sha256=WNgbVPNR6CnaF58yBbVHIQ_jg1mBe8dirkZ2ErNpQOI,3037
19
+ numcodecs/registry.py,sha256=IgYSlM-tIYxQ4ZZAasf33twddYqjAOZhk5zlcfIhkks,1763
20
+ numcodecs/blosc.cpython-312-darwin.so,sha256=CI9nezyYYY4lqVOaLA3VFsnuOrLu66-zaLc8FQ0Ao0s,1488696
21
+ numcodecs/pickles.py,sha256=qWNRLnWZnZ9nq_QhNNI2x-s1Uoq9Eq1lsgwCSRTTxJo,1288
22
+ numcodecs/fixedscaleoffset.py,sha256=3J5JWZcE13lAJz9axSEpTUpAC9H-yI2RBOX8oGhtwns,4196
23
+ numcodecs/lz4.cpython-312-darwin.so,sha256=YUL6Y5Gg2wUVjdCulwvy5KrtH9GpkmpvhEEXqPTv-nQ,283520
24
+ numcodecs/__init__.py,sha256=zwD__WYuAknEKLbBPdqqa7zlpQCe86UKhcxxSdRAsWI,3101
25
+ numcodecs/bitround.py,sha256=l0Na1MkqNvUIA6emP0HklWT-JGsxPqjeZ2h1HtXXHv8,2824
26
+ numcodecs/vlen.cpython-312-darwin.so,sha256=YPQKy-kAbFwJjtCzgXnaeExHUURRGJdJctqZAmyfvUA,286904
27
+ numcodecs/zlib.py,sha256=gLPUICEQc5p6DICC_63nOsbUqxzJH_5ynuzenTQXzOQ,1049
28
+ numcodecs/shuffle.py,sha256=hYOFJOCEeDSNI-TqT1JrbQxbprkQD4R8VfSzD4IPI3I,1575
29
+ numcodecs/delta.py,sha256=RvjPnBK-6PR0K_Cb0B12pdJzQdE5JRDKhnJIU9VxMRo,2806
30
+ numcodecs/zfpy.py,sha256=E4a182gFNWnwKMv9jhjMpKgDl56CrcQfZ2DugYICCPs,3796
31
+ numcodecs/msgpacks.py,sha256=sd3uuMN1wQz9XecP8eZOQY-huqbjC6BlOzx4NsJ95kY,2611
32
+ numcodecs/fletcher32.cpython-312-darwin.so,sha256=hy67vhCBxEHpSsoM_g0WgVDNXFfOx697-p8Lq7w1lXo,211896
33
+ numcodecs/compat_ext.cpython-312-darwin.so,sha256=X5ePFJSuSchOahaPKFwWxB499ibbYLShyMIN2Y98V6E,62504
34
+ numcodecs/packbits.py,sha256=Vm5Nvah68zShRRBuAQBrKtq8gLpYw3mP8O2qe0ndIUU,2031
35
+ numcodecs/categorize.py,sha256=yUzeAuPTNbMiI2vhkPRcxpEi0yQnr1orFs_I_BVoEoo,2983
36
+ numcodecs/json.py,sha256=Xu4dN-FydFaV-5jOewJxVBsV6rUfGUWIp4IncrjIR-E,3355
37
+ numcodecs/abc.py,sha256=Bi34cxGfgi3E7MxE3ZghWag5EB3swZuqi5_pkCIjCgo,4462
38
+ numcodecs/pcodec.py,sha256=7fOqhKUWURCbfbQFoEy8772UGna59F6v_6k_4QJrzZg,3079
39
+ numcodecs/tests/test_categorize.py,sha256=ftL-LSVq63R-kGuQxUb96uL1e563mlF9CWAf3yQB-Bk,2756
40
+ numcodecs/tests/test_registry.py,sha256=LJR5PzHdza5pzYOPu2h_5_iKuah0-Y9NBeX2wRLXQvk,1063
41
+ numcodecs/tests/test_vlen_utf8.py,sha256=H92YtqNY0kpO2Icu1Ey2iItK38ZhKMnJi_2FBwcKSvU,2474
42
+ numcodecs/tests/test_bitround.py,sha256=enJTj9BLkH0f0NH6QdMuPDTTJxEpR3GyKO-erC5_G7g,2358
43
+ numcodecs/tests/test_gzip.py,sha256=I685q0_vu3b_JibUz3nhW1mQtlLSQzGdgGD2twbGPXc,2925
44
+ numcodecs/tests/test_delta.py,sha256=njQay9mt8Evu8tB9eB3iUgtl0x_UfQx3ol3iwhWz8zk,1570
45
+ numcodecs/tests/test_lzma.py,sha256=WjZNlHEWdT2Ess5_L2AAt8fdpZa8UIKVNqrh4m9hlWU,2635
46
+ numcodecs/tests/test_bz2.py,sha256=pefO_YlOLr-RIswHas8DAQ4j81jhqLT5XGEuQ2i8DtI,1889
47
+ numcodecs/tests/__init__.py,sha256=Q6sNFjGUjcEU3MvCUd-PDtmYcS79Yvys3wbWWXvU5qY,72
48
+ numcodecs/tests/test_pickles.py,sha256=p7LfH5qJp1mmJC0nRWJbyPVCvt46raS_A6pjOZYOXqY,1679
49
+ numcodecs/tests/test_quantize.py,sha256=KvOyoj-u4S_-z8pT4syR6yE4i1ftFGkRfCTmgafumGw,2151
50
+ numcodecs/tests/test_entrypoints_backport.py,sha256=kD_s7ggoU-zf5ywsXhtf-v7y-eV4T7BRhcHS1frkO1s,1041
51
+ numcodecs/tests/test_pcodec.py,sha256=f7P82MoilQmWxmuspBNiA_7rjNtJ_WsVGpNSWpypIvA,2028
52
+ numcodecs/tests/test_lz4.py,sha256=63bjnBmT-bHCduj9w_LRTkJKBvo8emBzwVpzoDC5-A0,2353
53
+ numcodecs/tests/test_msgpacks.py,sha256=qcWCSXA1DhKxa9_ruOCWCaXw8PZnz8cvnpDieATfZZ4,3834
54
+ numcodecs/tests/test_astype.py,sha256=Wu1HtHZA6K_rW-JCxSWmU4Wwp9U83JUbUZ2ro9xDk9s,2367
55
+ numcodecs/tests/test_jenkins.py,sha256=DoOXdTLD25aXA0nwiO1zk_vG4N2UI6Wc3C72yqIByNc,4446
56
+ numcodecs/tests/test_fletcher32.py,sha256=hNf2zSAi16k4222qI2k-n5X4GgswVBfOqvKHSgSoRxQ,1456
57
+ numcodecs/tests/test_packbits.py,sha256=8B2sQnM-DiAEtehCEm5xm7fQ1xWm0rMk_z7Uk8OXvGI,989
58
+ numcodecs/tests/common.py,sha256=cLiS3SwUORLL0N8Yx4TjqgrB7Y9nwxx_5-T2qL0vqD0,12168
59
+ numcodecs/tests/test_base64.py,sha256=QseE5-aDwz7yv5-0dAG_6vTjeN3OpFvgcg8IhklRA4Y,2315
60
+ numcodecs/tests/test_shuffle.py,sha256=2aDDN9X61oaTINBW-BgY_Pp8Uc60QnJnAwsOl4XYzxg,4697
61
+ numcodecs/tests/test_fixedscaleoffset.py,sha256=ShOETVOAxABLp_c8g8KeJZmtv3EGbXBxfiPAgklJqaQ,2247
62
+ numcodecs/tests/test_compat.py,sha256=xmpCvkB0pWnHIvhoXpQH37b6EIchza1AHd49lpb4tXk,3617
63
+ numcodecs/tests/test_zlib.py,sha256=TFa-I15xHd4h2nNC2goChWdlB_xZLbK_vAL7s4upPWI,2539
64
+ numcodecs/tests/test_json.py,sha256=gT0D55oLGCtj_y-BECTwV13NOc2AXSyGsgAwBntvTfo,2288
65
+ numcodecs/tests/test_ndarray_like.py,sha256=Bh8wDqkbSL-yr_MDQqE5XUoWzZav5J_VzC8Lfv3BBlA,1273
66
+ numcodecs/tests/test_vlen_array.py,sha256=QaWVuflGxQUFToVcWVIzZHG_b8Vm4JJG6mBZVGNasK0,2477
67
+ numcodecs/tests/test_zstd.py,sha256=79R6VMhni-6kg9LmlmBzGe22HXhg0RvSVjw4jVNPMJQ,2610
68
+ numcodecs/tests/test_vlen_bytes.py,sha256=BpASj3-ap_ZjyK_nYP7YQSZg4gsECCh5DW_4pdNlhRs,2473
69
+ numcodecs/tests/test_entrypoints.py,sha256=7Tp92Sq9SvA9GuV32ePN7K2L9umqzT4yj3WlxTb8pQE,506
70
+ numcodecs/tests/test_checksum32.py,sha256=oqNXaOHEqk15u6CybHpO4fDELcoH6fwI04Sd9rAeOGY,1471
71
+ numcodecs/tests/test_zfpy.py,sha256=Oxo-D-ejDlQBZGIdI3mpfhnI8xhbjGfWVdbwTOATCSQ,2674
72
+ numcodecs/tests/test_blosc.py,sha256=wVHLJy4YL6dcsTnKYjWse-u6q_tTjPlEitreDjUNRfI,8866
73
+ numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt,sha256=wel2k9KStuNez__clm2tjAwrcXiP17De8yNScHYtQZU,60
74
+ numcodecs/tests/package_with_entrypoint/__init__.py,sha256=wLyrk73nqKO8rcFtA_sXlcC8PKMzdYbbBRY8eH8Xc10,212
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.1.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-macosx_10_13_x86_64
5
+
@@ -0,0 +1 @@
1
+ numcodecs