numcodecs 0.16.0__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.16.1__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.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.
- numcodecs/_shuffle.cpython-311-aarch64-linux-gnu.so +0 -0
- numcodecs/blosc.cpython-311-aarch64-linux-gnu.so +0 -0
- numcodecs/compat_ext.cpython-311-aarch64-linux-gnu.so +0 -0
- numcodecs/fletcher32.cpython-311-aarch64-linux-gnu.so +0 -0
- numcodecs/jenkins.cpython-311-aarch64-linux-gnu.so +0 -0
- numcodecs/lz4.cpython-311-aarch64-linux-gnu.so +0 -0
- numcodecs/tests/common.py +1 -1
- numcodecs/tests/test_blosc.py +19 -13
- numcodecs/tests/test_vlen_bytes.py +0 -4
- numcodecs/tests/test_zarr3.py +40 -1
- numcodecs/version.py +2 -2
- numcodecs/vlen.cpython-311-aarch64-linux-gnu.so +0 -0
- numcodecs/zarr3.py +72 -128
- numcodecs/zstd.cpython-311-aarch64-linux-gnu.so +0 -0
- {numcodecs-0.16.0.dist-info → numcodecs-0.16.1.dist-info}/METADATA +10 -3
- {numcodecs-0.16.0.dist-info → numcodecs-0.16.1.dist-info}/RECORD +28 -20
- {numcodecs-0.16.0.dist-info → numcodecs-0.16.1.dist-info}/WHEEL +1 -1
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSE.txt +31 -0
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/BITSHUFFLE.txt +21 -0
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/FASTLZ.txt +20 -0
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/LZ4.txt +25 -0
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/SNAPPY.txt +28 -0
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/STDINT.txt +29 -0
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/ZLIB-NG.txt +17 -0
- numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/ZLIB.txt +22 -0
- {numcodecs-0.16.0.dist-info → numcodecs-0.16.1.dist-info}/entry_points.txt +0 -0
- {numcodecs-0.16.0.dist-info → numcodecs-0.16.1.dist-info}/licenses/LICENSE.txt +0 -0
- {numcodecs-0.16.0.dist-info → numcodecs-0.16.1.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
numcodecs/tests/common.py
CHANGED
|
@@ -202,7 +202,7 @@ def check_backwards_compatibility(codec_id, arrays, codecs, precision=None, pref
|
|
|
202
202
|
|
|
203
203
|
for j, codec in enumerate(codecs):
|
|
204
204
|
if codec is None:
|
|
205
|
-
|
|
205
|
+
continue
|
|
206
206
|
|
|
207
207
|
# setup a directory to hold encoded data
|
|
208
208
|
codec_dir = os.path.join(fixture_dir, f'codec.{j:02d}')
|
numcodecs/tests/test_blosc.py
CHANGED
|
@@ -245,20 +245,20 @@ def test_err_encode_object_buffer():
|
|
|
245
245
|
check_err_encode_object_buffer(Blosc())
|
|
246
246
|
|
|
247
247
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
248
|
+
@pytest.mark.parametrize('codec', codecs)
|
|
249
|
+
def test_decompression_error_handling(codec):
|
|
250
|
+
_skip_null(codec)
|
|
251
|
+
with pytest.raises(RuntimeError):
|
|
252
|
+
codec.decode(bytearray())
|
|
253
|
+
with pytest.raises(RuntimeError):
|
|
254
|
+
codec.decode(bytearray(0))
|
|
255
255
|
|
|
256
256
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
@pytest.mark.parametrize('codec', codecs)
|
|
258
|
+
def test_max_buffer_size(codec):
|
|
259
|
+
_skip_null(codec)
|
|
260
|
+
assert codec.max_buffer_size == 2**31 - 1
|
|
261
|
+
check_max_buffer_size(codec)
|
|
262
262
|
|
|
263
263
|
|
|
264
264
|
def test_typesize_explicit():
|
|
@@ -278,7 +278,13 @@ def test_typesize_less_than_1():
|
|
|
278
278
|
Blosc(shuffle=Blosc.SHUFFLE, typesize=0)
|
|
279
279
|
compressor = Blosc(shuffle=Blosc.SHUFFLE)
|
|
280
280
|
# not really something that should be done in practice, but good for testing.
|
|
281
|
-
compressor.
|
|
281
|
+
compressor._typesize = 0
|
|
282
282
|
arr = np.arange(100)
|
|
283
283
|
with pytest.raises(ValueError, match=r"Cannot use typesize"):
|
|
284
284
|
compressor.encode(arr.tobytes())
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def test_config_no_typesize():
|
|
288
|
+
codec = Blosc(shuffle=Blosc.SHUFFLE, typesize=5)
|
|
289
|
+
config = codec.get_config()
|
|
290
|
+
assert "typesize" not in config
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import unittest
|
|
3
2
|
|
|
4
3
|
import numpy as np
|
|
@@ -85,9 +84,6 @@ def test_decode_errors():
|
|
|
85
84
|
codec.decode(enc, out=np.zeros(10, dtype='i4'))
|
|
86
85
|
|
|
87
86
|
|
|
88
|
-
# TODO: fix this test on GitHub actions somehow...
|
|
89
|
-
# See https://github.com/zarr-developers/numcodecs/issues/683
|
|
90
|
-
@pytest.mark.skipif(sys.platform == "darwin", reason="Test is failing on macOS on GitHub actions.")
|
|
91
87
|
def test_encode_none():
|
|
92
88
|
a = np.array([b'foo', None, b'bar'], dtype=object)
|
|
93
89
|
codec = VLenBytes()
|
numcodecs/tests/test_zarr3.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import pickle
|
|
3
4
|
from typing import TYPE_CHECKING
|
|
4
5
|
|
|
5
6
|
import numpy as np
|
|
6
7
|
import pytest
|
|
7
8
|
|
|
9
|
+
import numcodecs.bitround
|
|
10
|
+
|
|
8
11
|
if TYPE_CHECKING: # pragma: no cover
|
|
9
12
|
import zarr
|
|
10
13
|
else:
|
|
@@ -260,7 +263,7 @@ def test_delta_astype(store: StorePath):
|
|
|
260
263
|
dtype=data.dtype,
|
|
261
264
|
fill_value=0,
|
|
262
265
|
filters=[
|
|
263
|
-
numcodecs.zarr3.Delta(dtype="i8", astype="i2"),
|
|
266
|
+
numcodecs.zarr3.Delta(dtype="i8", astype="i2"),
|
|
264
267
|
],
|
|
265
268
|
)
|
|
266
269
|
|
|
@@ -277,3 +280,39 @@ def test_repr():
|
|
|
277
280
|
def test_to_dict():
|
|
278
281
|
codec = numcodecs.zarr3.LZ4(level=5)
|
|
279
282
|
assert codec.to_dict() == {"name": "numcodecs.lz4", "configuration": {"level": 5}}
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
@pytest.mark.parametrize(
|
|
286
|
+
"codec_cls",
|
|
287
|
+
[
|
|
288
|
+
numcodecs.zarr3.Blosc,
|
|
289
|
+
numcodecs.zarr3.LZ4,
|
|
290
|
+
numcodecs.zarr3.Zstd,
|
|
291
|
+
numcodecs.zarr3.Zlib,
|
|
292
|
+
numcodecs.zarr3.GZip,
|
|
293
|
+
numcodecs.zarr3.BZ2,
|
|
294
|
+
numcodecs.zarr3.LZMA,
|
|
295
|
+
numcodecs.zarr3.Shuffle,
|
|
296
|
+
numcodecs.zarr3.BitRound,
|
|
297
|
+
numcodecs.zarr3.Delta,
|
|
298
|
+
numcodecs.zarr3.FixedScaleOffset,
|
|
299
|
+
numcodecs.zarr3.Quantize,
|
|
300
|
+
numcodecs.zarr3.PackBits,
|
|
301
|
+
numcodecs.zarr3.AsType,
|
|
302
|
+
numcodecs.zarr3.CRC32,
|
|
303
|
+
numcodecs.zarr3.CRC32C,
|
|
304
|
+
numcodecs.zarr3.Adler32,
|
|
305
|
+
numcodecs.zarr3.Fletcher32,
|
|
306
|
+
numcodecs.zarr3.JenkinsLookup3,
|
|
307
|
+
numcodecs.zarr3.PCodec,
|
|
308
|
+
numcodecs.zarr3.ZFPY,
|
|
309
|
+
],
|
|
310
|
+
)
|
|
311
|
+
def test_codecs_pickleable(codec_cls):
|
|
312
|
+
codec = codec_cls()
|
|
313
|
+
|
|
314
|
+
expected = codec
|
|
315
|
+
|
|
316
|
+
p = pickle.dumps(codec)
|
|
317
|
+
actual = pickle.loads(p)
|
|
318
|
+
assert actual == expected
|
numcodecs/version.py
CHANGED
|
Binary file
|
numcodecs/zarr3.py
CHANGED
|
@@ -28,8 +28,8 @@ from __future__ import annotations
|
|
|
28
28
|
import asyncio
|
|
29
29
|
import math
|
|
30
30
|
from dataclasses import dataclass, replace
|
|
31
|
-
from functools import cached_property
|
|
32
|
-
from typing import Any, Self
|
|
31
|
+
from functools import cached_property
|
|
32
|
+
from typing import Any, Self
|
|
33
33
|
from warnings import warn
|
|
34
34
|
|
|
35
35
|
import numpy as np
|
|
@@ -79,6 +79,18 @@ class _NumcodecsCodec(Metadata):
|
|
|
79
79
|
codec_name: str
|
|
80
80
|
codec_config: dict[str, JSON]
|
|
81
81
|
|
|
82
|
+
def __init_subclass__(cls, *, codec_name: str | None = None, **kwargs):
|
|
83
|
+
"""To be used only when creating the actual public-facing codec class."""
|
|
84
|
+
super().__init_subclass__(**kwargs)
|
|
85
|
+
if codec_name is not None:
|
|
86
|
+
namespace = codec_name
|
|
87
|
+
|
|
88
|
+
cls_name = f"{CODEC_PREFIX}{namespace}.{cls.__name__}"
|
|
89
|
+
cls.codec_name = f"{CODEC_PREFIX}{namespace}"
|
|
90
|
+
cls.__doc__ = f"""
|
|
91
|
+
See :class:`{cls_name}` for more details and parameters.
|
|
92
|
+
"""
|
|
93
|
+
|
|
82
94
|
def __init__(self, **codec_config: JSON) -> None:
|
|
83
95
|
if not self.codec_name:
|
|
84
96
|
raise ValueError(
|
|
@@ -180,159 +192,77 @@ class _NumcodecsArrayBytesCodec(_NumcodecsCodec, ArrayBytesCodec):
|
|
|
180
192
|
return chunk_spec.prototype.buffer.from_bytes(out)
|
|
181
193
|
|
|
182
194
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
def _add_docstring(cls: type[T], ref_class_name: str) -> type[T]:
|
|
187
|
-
cls.__doc__ = f"""
|
|
188
|
-
See :class:`{ref_class_name}` for more details and parameters.
|
|
189
|
-
"""
|
|
190
|
-
return cls
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
def _add_docstring_wrapper(ref_class_name: str) -> partial:
|
|
194
|
-
return partial(_add_docstring, ref_class_name=ref_class_name)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
def _make_bytes_bytes_codec(codec_name: str, cls_name: str) -> type[_NumcodecsBytesBytesCodec]:
|
|
198
|
-
# rename for class scope
|
|
199
|
-
_codec_name = CODEC_PREFIX + codec_name
|
|
200
|
-
|
|
201
|
-
class _Codec(_NumcodecsBytesBytesCodec):
|
|
202
|
-
codec_name = _codec_name
|
|
203
|
-
|
|
204
|
-
def __init__(self, **codec_config: JSON) -> None:
|
|
205
|
-
super().__init__(**codec_config)
|
|
206
|
-
|
|
207
|
-
_Codec.__name__ = cls_name
|
|
208
|
-
return _Codec
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
def _make_array_array_codec(codec_name: str, cls_name: str) -> type[_NumcodecsArrayArrayCodec]:
|
|
212
|
-
# rename for class scope
|
|
213
|
-
_codec_name = CODEC_PREFIX + codec_name
|
|
214
|
-
|
|
215
|
-
class _Codec(_NumcodecsArrayArrayCodec):
|
|
216
|
-
codec_name = _codec_name
|
|
217
|
-
|
|
218
|
-
def __init__(self, **codec_config: JSON) -> None:
|
|
219
|
-
super().__init__(**codec_config)
|
|
220
|
-
|
|
221
|
-
_Codec.__name__ = cls_name
|
|
222
|
-
return _Codec
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
def _make_array_bytes_codec(codec_name: str, cls_name: str) -> type[_NumcodecsArrayBytesCodec]:
|
|
226
|
-
# rename for class scope
|
|
227
|
-
_codec_name = CODEC_PREFIX + codec_name
|
|
195
|
+
# bytes-to-bytes codecs
|
|
196
|
+
class Blosc(_NumcodecsBytesBytesCodec, codec_name="blosc"):
|
|
197
|
+
pass
|
|
228
198
|
|
|
229
|
-
class _Codec(_NumcodecsArrayBytesCodec):
|
|
230
|
-
codec_name = _codec_name
|
|
231
199
|
|
|
232
|
-
|
|
233
|
-
|
|
200
|
+
class LZ4(_NumcodecsBytesBytesCodec, codec_name="lz4"):
|
|
201
|
+
pass
|
|
234
202
|
|
|
235
|
-
_Codec.__name__ = cls_name
|
|
236
|
-
return _Codec
|
|
237
203
|
|
|
204
|
+
class Zstd(_NumcodecsBytesBytesCodec, codec_name="zstd"):
|
|
205
|
+
pass
|
|
238
206
|
|
|
239
|
-
def _make_checksum_codec(codec_name: str, cls_name: str) -> type[_NumcodecsBytesBytesCodec]:
|
|
240
|
-
# rename for class scope
|
|
241
|
-
_codec_name = CODEC_PREFIX + codec_name
|
|
242
207
|
|
|
243
|
-
|
|
244
|
-
|
|
208
|
+
class Zlib(_NumcodecsBytesBytesCodec, codec_name="zlib"):
|
|
209
|
+
pass
|
|
245
210
|
|
|
246
|
-
def __init__(self, **codec_config: JSON) -> None:
|
|
247
|
-
super().__init__(**codec_config)
|
|
248
211
|
|
|
249
|
-
|
|
250
|
-
|
|
212
|
+
class GZip(_NumcodecsBytesBytesCodec, codec_name="gzip"):
|
|
213
|
+
pass
|
|
251
214
|
|
|
252
|
-
_ChecksumCodec.__name__ = cls_name
|
|
253
|
-
return _ChecksumCodec
|
|
254
215
|
|
|
216
|
+
class BZ2(_NumcodecsBytesBytesCodec, codec_name="bz2"):
|
|
217
|
+
pass
|
|
255
218
|
|
|
256
|
-
# bytes-to-bytes codecs
|
|
257
|
-
Blosc = _add_docstring(_make_bytes_bytes_codec("blosc", "Blosc"), "numcodecs.blosc.Blosc")
|
|
258
|
-
LZ4 = _add_docstring(_make_bytes_bytes_codec("lz4", "LZ4"), "numcodecs.lz4.LZ4")
|
|
259
|
-
Zstd = _add_docstring(_make_bytes_bytes_codec("zstd", "Zstd"), "numcodecs.zstd.Zstd")
|
|
260
|
-
Zlib = _add_docstring(_make_bytes_bytes_codec("zlib", "Zlib"), "numcodecs.zlib.Zlib")
|
|
261
|
-
GZip = _add_docstring(_make_bytes_bytes_codec("gzip", "GZip"), "numcodecs.gzip.GZip")
|
|
262
|
-
BZ2 = _add_docstring(_make_bytes_bytes_codec("bz2", "BZ2"), "numcodecs.bz2.BZ2")
|
|
263
|
-
LZMA = _add_docstring(_make_bytes_bytes_codec("lzma", "LZMA"), "numcodecs.lzma.LZMA")
|
|
264
219
|
|
|
220
|
+
class LZMA(_NumcodecsBytesBytesCodec, codec_name="lzma"):
|
|
221
|
+
pass
|
|
265
222
|
|
|
266
|
-
@_add_docstring_wrapper("numcodecs.shuffle.Shuffle")
|
|
267
|
-
class Shuffle(_NumcodecsBytesBytesCodec):
|
|
268
|
-
codec_name = f"{CODEC_PREFIX}shuffle"
|
|
269
|
-
|
|
270
|
-
def __init__(self, **codec_config: JSON) -> None:
|
|
271
|
-
super().__init__(**codec_config)
|
|
272
223
|
|
|
224
|
+
class Shuffle(_NumcodecsBytesBytesCodec, codec_name="shuffle"):
|
|
273
225
|
def evolve_from_array_spec(self, array_spec: ArraySpec) -> Shuffle:
|
|
274
|
-
if self.codec_config.get("elementsize"
|
|
226
|
+
if self.codec_config.get("elementsize") is None:
|
|
275
227
|
return Shuffle(**{**self.codec_config, "elementsize": array_spec.dtype.itemsize})
|
|
276
228
|
return self # pragma: no cover
|
|
277
229
|
|
|
278
230
|
|
|
279
231
|
# array-to-array codecs ("filters")
|
|
280
|
-
|
|
281
|
-
class Delta(_NumcodecsArrayArrayCodec):
|
|
282
|
-
codec_name = f"{CODEC_PREFIX}delta"
|
|
283
|
-
|
|
284
|
-
def __init__(self, **codec_config: dict[str, JSON]) -> None:
|
|
285
|
-
super().__init__(**codec_config)
|
|
286
|
-
|
|
232
|
+
class Delta(_NumcodecsArrayArrayCodec, codec_name="delta"):
|
|
287
233
|
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
|
|
288
234
|
if astype := self.codec_config.get("astype"):
|
|
289
235
|
return replace(chunk_spec, dtype=np.dtype(astype)) # type: ignore[call-overload]
|
|
290
236
|
return chunk_spec
|
|
291
237
|
|
|
292
238
|
|
|
293
|
-
BitRound =
|
|
294
|
-
|
|
295
|
-
)
|
|
296
|
-
|
|
239
|
+
class BitRound(_NumcodecsArrayArrayCodec, codec_name="bitround"):
|
|
240
|
+
pass
|
|
297
241
|
|
|
298
|
-
@_add_docstring_wrapper("numcodecs.fixedscaleoffset.FixedScaleOffset")
|
|
299
|
-
class FixedScaleOffset(_NumcodecsArrayArrayCodec):
|
|
300
|
-
codec_name = f"{CODEC_PREFIX}fixedscaleoffset"
|
|
301
|
-
|
|
302
|
-
def __init__(self, **codec_config: JSON) -> None:
|
|
303
|
-
super().__init__(**codec_config)
|
|
304
242
|
|
|
243
|
+
class FixedScaleOffset(_NumcodecsArrayArrayCodec, codec_name="fixedscaleoffset"):
|
|
305
244
|
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
|
|
306
245
|
if astype := self.codec_config.get("astype"):
|
|
307
246
|
return replace(chunk_spec, dtype=np.dtype(astype)) # type: ignore[call-overload]
|
|
308
247
|
return chunk_spec
|
|
309
248
|
|
|
310
249
|
def evolve_from_array_spec(self, array_spec: ArraySpec) -> FixedScaleOffset:
|
|
311
|
-
if self.codec_config.get("dtype"
|
|
250
|
+
if self.codec_config.get("dtype") is None:
|
|
312
251
|
return FixedScaleOffset(**{**self.codec_config, "dtype": str(array_spec.dtype)})
|
|
313
252
|
return self
|
|
314
253
|
|
|
315
254
|
|
|
316
|
-
|
|
317
|
-
class Quantize(_NumcodecsArrayArrayCodec):
|
|
318
|
-
codec_name = f"{CODEC_PREFIX}quantize"
|
|
319
|
-
|
|
255
|
+
class Quantize(_NumcodecsArrayArrayCodec, codec_name="quantize"):
|
|
320
256
|
def __init__(self, **codec_config: JSON) -> None:
|
|
321
257
|
super().__init__(**codec_config)
|
|
322
258
|
|
|
323
259
|
def evolve_from_array_spec(self, array_spec: ArraySpec) -> Quantize:
|
|
324
|
-
if self.codec_config.get("dtype"
|
|
260
|
+
if self.codec_config.get("dtype") is None:
|
|
325
261
|
return Quantize(**{**self.codec_config, "dtype": str(array_spec.dtype)})
|
|
326
262
|
return self
|
|
327
263
|
|
|
328
264
|
|
|
329
|
-
|
|
330
|
-
class PackBits(_NumcodecsArrayArrayCodec):
|
|
331
|
-
codec_name = f"{CODEC_PREFIX}packbits"
|
|
332
|
-
|
|
333
|
-
def __init__(self, **codec_config: JSON) -> None:
|
|
334
|
-
super().__init__(**codec_config)
|
|
335
|
-
|
|
265
|
+
class PackBits(_NumcodecsArrayArrayCodec, codec_name="packbits"):
|
|
336
266
|
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
|
|
337
267
|
return replace(
|
|
338
268
|
chunk_spec,
|
|
@@ -345,36 +275,50 @@ class PackBits(_NumcodecsArrayArrayCodec):
|
|
|
345
275
|
raise ValueError(f"Packbits filter requires bool dtype. Got {dtype}.")
|
|
346
276
|
|
|
347
277
|
|
|
348
|
-
|
|
349
|
-
class AsType(_NumcodecsArrayArrayCodec):
|
|
350
|
-
codec_name = f"{CODEC_PREFIX}astype"
|
|
351
|
-
|
|
352
|
-
def __init__(self, **codec_config: JSON) -> None:
|
|
353
|
-
super().__init__(**codec_config)
|
|
354
|
-
|
|
278
|
+
class AsType(_NumcodecsArrayArrayCodec, codec_name="astype"):
|
|
355
279
|
def resolve_metadata(self, chunk_spec: ArraySpec) -> ArraySpec:
|
|
356
280
|
return replace(chunk_spec, dtype=np.dtype(self.codec_config["encode_dtype"])) # type: ignore[arg-type]
|
|
357
281
|
|
|
358
282
|
def evolve_from_array_spec(self, array_spec: ArraySpec) -> AsType:
|
|
359
|
-
if self.codec_config.get("decode_dtype"
|
|
283
|
+
if self.codec_config.get("decode_dtype") is None:
|
|
360
284
|
return AsType(**{**self.codec_config, "decode_dtype": str(array_spec.dtype)})
|
|
361
285
|
return self
|
|
362
286
|
|
|
363
287
|
|
|
364
288
|
# bytes-to-bytes checksum codecs
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
)
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
289
|
+
class _NumcodecsChecksumCodec(_NumcodecsBytesBytesCodec):
|
|
290
|
+
def compute_encoded_size(self, input_byte_length: int, chunk_spec: ArraySpec) -> int:
|
|
291
|
+
return input_byte_length + 4 # pragma: no cover
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
class CRC32(_NumcodecsChecksumCodec, codec_name="crc32"):
|
|
295
|
+
pass
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
class CRC32C(_NumcodecsChecksumCodec, codec_name="crc32c"):
|
|
299
|
+
pass
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
class Adler32(_NumcodecsChecksumCodec, codec_name="adler32"):
|
|
303
|
+
pass
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
class Fletcher32(_NumcodecsChecksumCodec, codec_name="fletcher32"):
|
|
307
|
+
pass
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class JenkinsLookup3(_NumcodecsChecksumCodec, codec_name="jenkins_lookup3"):
|
|
311
|
+
pass
|
|
312
|
+
|
|
374
313
|
|
|
375
314
|
# array-to-bytes codecs
|
|
376
|
-
PCodec
|
|
377
|
-
|
|
315
|
+
class PCodec(_NumcodecsArrayBytesCodec, codec_name="pcodec"):
|
|
316
|
+
pass
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class ZFPY(_NumcodecsArrayBytesCodec, codec_name="zfpy"):
|
|
320
|
+
pass
|
|
321
|
+
|
|
378
322
|
|
|
379
323
|
__all__ = [
|
|
380
324
|
"BZ2",
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: numcodecs
|
|
3
|
-
Version: 0.16.
|
|
3
|
+
Version: 0.16.1
|
|
4
4
|
Summary: A Python package providing buffer compression and transformation codecs for use in data storage and communication applications.
|
|
5
5
|
Maintainer-email: Alistair Miles <alimanfoo@googlemail.com>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Project-URL: Bug Tracker, https://github.com/zarr-developers/numcodecs/issues
|
|
8
8
|
Project-URL: Changelog, https://numcodecs.readthedocs.io/en/stable/release.html
|
|
9
9
|
Project-URL: Documentation, https://numcodecs.readthedocs.io/
|
|
@@ -12,7 +12,6 @@ Classifier: Development Status :: 4 - Beta
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: Intended Audience :: Information Technology
|
|
14
14
|
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Programming Language :: Python
|
|
17
16
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
17
|
Classifier: Operating System :: Unix
|
|
@@ -21,6 +20,14 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
21
20
|
Requires-Python: >=3.11
|
|
22
21
|
Description-Content-Type: text/x-rst
|
|
23
22
|
License-File: LICENSE.txt
|
|
23
|
+
License-File: c-blosc/LICENSE.txt
|
|
24
|
+
License-File: c-blosc/LICENSES/BITSHUFFLE.txt
|
|
25
|
+
License-File: c-blosc/LICENSES/FASTLZ.txt
|
|
26
|
+
License-File: c-blosc/LICENSES/LZ4.txt
|
|
27
|
+
License-File: c-blosc/LICENSES/SNAPPY.txt
|
|
28
|
+
License-File: c-blosc/LICENSES/STDINT.txt
|
|
29
|
+
License-File: c-blosc/LICENSES/ZLIB-NG.txt
|
|
30
|
+
License-File: c-blosc/LICENSES/ZLIB.txt
|
|
24
31
|
Requires-Dist: numpy>=1.24
|
|
25
32
|
Requires-Dist: typing_extensions
|
|
26
33
|
Provides-Extra: docs
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
numcodecs/__init__.py,sha256=cgA3s5JGgVs9lAu6olFajOWgHpsCYtnLih10kMBBxS0,3104
|
|
2
|
-
numcodecs/_shuffle.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
2
|
+
numcodecs/_shuffle.cpython-311-aarch64-linux-gnu.so,sha256=L0WrCxgO6FqUKF5WnS1w4MJ2qB8nvOajHJDcd6-93w4,1477624
|
|
3
3
|
numcodecs/abc.py,sha256=13vRquZ-u_n1YqM9SYx8sBDseJlH9A_A57_Z2QE-4KY,4504
|
|
4
4
|
numcodecs/astype.py,sha256=pfdFqjNvb-PETswa2_UxZm632O-y2Lex-g_68IJpiuk,2099
|
|
5
5
|
numcodecs/base64.py,sha256=79BSqVvloKc8JYenUQfqdPm0a0JAZhd9Zld7k5Cp2lc,752
|
|
6
6
|
numcodecs/bitround.py,sha256=4lei39ZG4G2GGkDxl12q29nR5_8a4Icx4T-OgP1A1D4,2845
|
|
7
|
-
numcodecs/blosc.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
7
|
+
numcodecs/blosc.cpython-311-aarch64-linux-gnu.so,sha256=t2cg1QgT9IIIJaHLY8bxcHecqDRLmGnXwLzUS7dOEeo,13402184
|
|
8
8
|
numcodecs/bz2.py,sha256=4Ups3IMVsjvBlXyaeYONPdE14TaK9V-4LH5LSNe7AGc,1174
|
|
9
9
|
numcodecs/categorize.py,sha256=jPipT6mVrpGSe9QuI-MeVzTZuUKAZWF0XN5Wj_8Ifng,2948
|
|
10
10
|
numcodecs/checksum32.py,sha256=KoaT9cwXE-JEdwjEi6v5CM8HDgRcdqPm-G6IwEp45Po,5726
|
|
11
11
|
numcodecs/compat.py,sha256=JadagE6pTEcrX3V8wDml0n1tdkHvOWo6D21J3a4P0mw,6505
|
|
12
|
-
numcodecs/compat_ext.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
12
|
+
numcodecs/compat_ext.cpython-311-aarch64-linux-gnu.so,sha256=oMrvVpqDyx4FL1Bu8nHEJ8B0v6b8x7tqmqCkDVVA0HI,175080
|
|
13
13
|
numcodecs/delta.py,sha256=x0PjNiuX48rmh9M6ZHoYkI9bKOq00Aiyz_jLrVlAq8w,2791
|
|
14
14
|
numcodecs/errors.py,sha256=IV0B9fw_Wn8k3fjLtXOOU_-0_Al-dWY_dizvqFiNwkk,663
|
|
15
15
|
numcodecs/fixedscaleoffset.py,sha256=fQwP_H-P3Mq4_LXtMQw5CLYeMjCBUdTtV-AKWVAIzkY,4188
|
|
16
|
-
numcodecs/fletcher32.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
16
|
+
numcodecs/fletcher32.cpython-311-aarch64-linux-gnu.so,sha256=U-LCAmIx1389zORT7l--tiik3GyJOIj9JxLi48KSp0I,1680960
|
|
17
17
|
numcodecs/gzip.py,sha256=DJuc87g8neqn-SYEeCEQwPSdEN5oZGgDUan9MTI6Fb4,1436
|
|
18
|
-
numcodecs/jenkins.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
18
|
+
numcodecs/jenkins.cpython-311-aarch64-linux-gnu.so,sha256=QBAaApJzc-ieX_82M2p50ytXVkb9yGFHtAyU2oprBv8,1569288
|
|
19
19
|
numcodecs/json.py,sha256=WQcDcDPVxAQm-sxUg_XD70InKLD4iyjQOBiHPn2N3VE,3393
|
|
20
|
-
numcodecs/lz4.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
20
|
+
numcodecs/lz4.cpython-311-aarch64-linux-gnu.so,sha256=HsfPJIo1lgDFYOi7J_MmWOSUd5Pbe--yVhxyGix0ia8,2533360
|
|
21
21
|
numcodecs/lzma.py,sha256=6XeJ-c-lTJN1EVrIOb5cEFEiMGlNHsS4c_OentmUox0,2257
|
|
22
22
|
numcodecs/msgpacks.py,sha256=GkTcFJrhKdpWnwQn4-282q4_edqlzZFdJFux2LtNk30,2619
|
|
23
23
|
numcodecs/ndarray_like.py,sha256=fVupUg_K_rDZNRlUmTiRp53OmF6YHb-yNyixJNFR8ME,1883
|
|
@@ -27,18 +27,18 @@ numcodecs/pickles.py,sha256=LtcMa6cK-V5TUYJNR4dRDsWWRmLfNv0syZddbrbRv3A,1290
|
|
|
27
27
|
numcodecs/quantize.py,sha256=4mPx4kWanv5wGa22HvEiP893xqG5dDDtN-oKChj6nfE,3016
|
|
28
28
|
numcodecs/registry.py,sha256=oRN9uJsWIosZbAZFkOWyUos3GZ-h_zq_cN-t_uPLk0A,1864
|
|
29
29
|
numcodecs/shuffle.py,sha256=hYOFJOCEeDSNI-TqT1JrbQxbprkQD4R8VfSzD4IPI3I,1575
|
|
30
|
-
numcodecs/version.py,sha256=
|
|
31
|
-
numcodecs/vlen.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
32
|
-
numcodecs/zarr3.py,sha256=
|
|
30
|
+
numcodecs/version.py,sha256=F9gYFcoy3pBKCGHGvpyLTi-COcjAERgGjmHEmYnZSSQ,513
|
|
31
|
+
numcodecs/vlen.cpython-311-aarch64-linux-gnu.so,sha256=soTIv8uOxT_Ktls4TNY_eD4lGy8vz4IbFSSb0ykVf7I,2319960
|
|
32
|
+
numcodecs/zarr3.py,sha256=4OxPvdvqlUTek07Uvw1-wo_0wZz_7EaGZuSwmapZtjg,11889
|
|
33
33
|
numcodecs/zfpy.py,sha256=--TCrXOsSJ-2uU_7d-0YwHpk8Hti98hofB4jht5helk,3900
|
|
34
34
|
numcodecs/zlib.py,sha256=gLPUICEQc5p6DICC_63nOsbUqxzJH_5ynuzenTQXzOQ,1049
|
|
35
|
-
numcodecs/zstd.cpython-311-aarch64-linux-gnu.so,sha256=
|
|
35
|
+
numcodecs/zstd.cpython-311-aarch64-linux-gnu.so,sha256=WnJB20uM7rGRjLNxYchli2ze4xxPA8l-M4PKtGic9d0,10552024
|
|
36
36
|
numcodecs/tests/__init__.py,sha256=Q6sNFjGUjcEU3MvCUd-PDtmYcS79Yvys3wbWWXvU5qY,72
|
|
37
|
-
numcodecs/tests/common.py,sha256=
|
|
37
|
+
numcodecs/tests/common.py,sha256=_aRsy2opNa4t4byfvsUgMe4lxH_Oua125tfQWR1gBgI,9307
|
|
38
38
|
numcodecs/tests/test_astype.py,sha256=Wu1HtHZA6K_rW-JCxSWmU4Wwp9U83JUbUZ2ro9xDk9s,2367
|
|
39
39
|
numcodecs/tests/test_base64.py,sha256=QseE5-aDwz7yv5-0dAG_6vTjeN3OpFvgcg8IhklRA4Y,2315
|
|
40
40
|
numcodecs/tests/test_bitround.py,sha256=ayCuANNDA0cP3mqZkJ90QU9eI7ws4-lPRKU_gkflOlg,2349
|
|
41
|
-
numcodecs/tests/test_blosc.py,sha256=
|
|
41
|
+
numcodecs/tests/test_blosc.py,sha256=zm9zPNk-Si3TjoMG3c2T_y3V7szH7sxNrDLAeM3qElY,9663
|
|
42
42
|
numcodecs/tests/test_bz2.py,sha256=pefO_YlOLr-RIswHas8DAQ4j81jhqLT5XGEuQ2i8DtI,1889
|
|
43
43
|
numcodecs/tests/test_categorize.py,sha256=ftL-LSVq63R-kGuQxUb96uL1e563mlF9CWAf3yQB-Bk,2756
|
|
44
44
|
numcodecs/tests/test_checksum32.py,sha256=D0BV_p3XQ2Dv9jIoI9zEQel-PO25KWYIpUDgrhr6Cf8,4601
|
|
@@ -62,18 +62,26 @@ numcodecs/tests/test_quantize.py,sha256=KvOyoj-u4S_-z8pT4syR6yE4i1ftFGkRfCTmgafu
|
|
|
62
62
|
numcodecs/tests/test_registry.py,sha256=9Wp-VxGtEtNvwj46Edv6R8Jc4WPu80yWP7mRZyxepJ4,1116
|
|
63
63
|
numcodecs/tests/test_shuffle.py,sha256=uFWTuBbdcqwnWbyh2knwc46klZ00VekzWh8Ya0I2HiE,4659
|
|
64
64
|
numcodecs/tests/test_vlen_array.py,sha256=QaWVuflGxQUFToVcWVIzZHG_b8Vm4JJG6mBZVGNasK0,2477
|
|
65
|
-
numcodecs/tests/test_vlen_bytes.py,sha256=
|
|
65
|
+
numcodecs/tests/test_vlen_bytes.py,sha256=BpASj3-ap_ZjyK_nYP7YQSZg4gsECCh5DW_4pdNlhRs,2473
|
|
66
66
|
numcodecs/tests/test_vlen_utf8.py,sha256=H92YtqNY0kpO2Icu1Ey2iItK38ZhKMnJi_2FBwcKSvU,2474
|
|
67
|
-
numcodecs/tests/test_zarr3.py,sha256=
|
|
67
|
+
numcodecs/tests/test_zarr3.py,sha256=LbE8gWkH7tSMMaHPJiBb06sD-g_Xtd0_e-CfpuZTgCE,9414
|
|
68
68
|
numcodecs/tests/test_zarr3_import.py,sha256=JBDyrL57lbZMI9axb9eA1OZnd_Lg-ppfsNV3VvxwVxk,332
|
|
69
69
|
numcodecs/tests/test_zfpy.py,sha256=g_2txraHDbnBPtbymJXsgAiD6MBH44-JYRkNx9tttYw,2762
|
|
70
70
|
numcodecs/tests/test_zlib.py,sha256=TFa-I15xHd4h2nNC2goChWdlB_xZLbK_vAL7s4upPWI,2539
|
|
71
71
|
numcodecs/tests/test_zstd.py,sha256=79R6VMhni-6kg9LmlmBzGe22HXhg0RvSVjw4jVNPMJQ,2610
|
|
72
72
|
numcodecs/tests/package_with_entrypoint/__init__.py,sha256=wLyrk73nqKO8rcFtA_sXlcC8PKMzdYbbBRY8eH8Xc10,212
|
|
73
73
|
numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt,sha256=wel2k9KStuNez__clm2tjAwrcXiP17De8yNScHYtQZU,60
|
|
74
|
-
numcodecs-0.16.
|
|
75
|
-
numcodecs-0.16.
|
|
76
|
-
numcodecs-0.16.
|
|
77
|
-
numcodecs-0.16.
|
|
78
|
-
numcodecs-0.16.
|
|
79
|
-
numcodecs-0.16.
|
|
74
|
+
numcodecs-0.16.1.dist-info/METADATA,sha256=naRVJ5q6M8hV2cfBpfg_ecAsXyiHKDWBjvrUC8IAi94,3251
|
|
75
|
+
numcodecs-0.16.1.dist-info/WHEEL,sha256=VeOu_lQnCWruFeoAmCqgp7zIl5nV9OhFCc3C6pwQGgA,153
|
|
76
|
+
numcodecs-0.16.1.dist-info/entry_points.txt,sha256=3W3FHKrwE52X3fLq8KdioOtf93lh5KaoGV5t2D10DBI,919
|
|
77
|
+
numcodecs-0.16.1.dist-info/top_level.txt,sha256=JkHllzt6IuVudg4Tk--wF-yfPPsdVOiMTag1tjGIihw,10
|
|
78
|
+
numcodecs-0.16.1.dist-info/RECORD,,
|
|
79
|
+
numcodecs-0.16.1.dist-info/licenses/LICENSE.txt,sha256=lJysaEeeE7bJeSRjUVC04e9eaXZq2eRy6oWgjBV2u5Y,1124
|
|
80
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSE.txt,sha256=ImIxMam59qhqTca5vMux0q6zkN-GvKAPxyevJHNcL64,1644
|
|
81
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/BITSHUFFLE.txt,sha256=7zV8IGHPZ9spj58VZVcu4imtkmNYKp-dDr_1CU9dEKw,1148
|
|
82
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/FASTLZ.txt,sha256=z1KQnm7XcP6BURumLU6-4TGF0wo30P194rVmheKIqzg,1135
|
|
83
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/LZ4.txt,sha256=_m3B8n9o2d1rAZLjm-Go8fvtD-huE1QPYYpxM5cbELM,1312
|
|
84
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/SNAPPY.txt,sha256=UiGjaoAbmB-9_ae4fbZM_yMaO4giOgZsMlQRtTnfeW8,1475
|
|
85
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/STDINT.txt,sha256=8q8D21YuiFOfAZsasIgYeO6C0MgPO85oxlAGRlLiXXs,1568
|
|
86
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/ZLIB-NG.txt,sha256=-K03V7wq6fWmr3fhOzelchOXQhzlWrFuHaSeRikmTSw,893
|
|
87
|
+
numcodecs-0.16.1.dist-info/licenses/c-blosc/LICENSES/ZLIB.txt,sha256=hF78d4V9SF2R-z4LiEqqkpNoxxeugYa2b-HtJJV1MkM,1002
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
BSD License
|
|
2
|
+
|
|
3
|
+
For Blosc - A blocking, shuffling and lossless compression library
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2009-2018 Francesc Alted <francesc@blosc.org>
|
|
6
|
+
Copyright (c) 2019-present Blosc Development Team <blosc@blosc.org>
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
9
|
+
are permitted provided that the following conditions are met:
|
|
10
|
+
|
|
11
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
12
|
+
list of conditions and the following disclaimer.
|
|
13
|
+
|
|
14
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
15
|
+
this list of conditions and the following disclaimer in the documentation
|
|
16
|
+
and/or other materials provided with the distribution.
|
|
17
|
+
|
|
18
|
+
* Neither the name Francesc Alted nor the names of its contributors may be used
|
|
19
|
+
to endorse or promote products derived from this software without specific
|
|
20
|
+
prior written permission.
|
|
21
|
+
|
|
22
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
23
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
24
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
25
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
26
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
27
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
28
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
29
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
30
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
31
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Bitshuffle - Filter for improving compression of typed binary data.
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Kiyoshi Masui (kiyo@physics.ubc.ca)
|
|
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
|
|
13
|
+
all 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
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
FastLZ - Byte-aligned LZ77 compression library
|
|
2
|
+
Copyright (C) 2005-2020 Ariya Hidayat <ariya.hidayat@gmail.com>
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in
|
|
12
|
+
all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
LZ4 Library
|
|
3
|
+
Copyright (c) 2011-2020, Yann Collet
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
7
|
+
are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice, this
|
|
13
|
+
list of conditions and the following disclaimer in the documentation and/or
|
|
14
|
+
other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
17
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
18
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
19
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
20
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
21
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
22
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
23
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
24
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
25
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Copyright 2011, Google Inc.
|
|
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
|
|
6
|
+
met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright
|
|
9
|
+
notice, this list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above
|
|
11
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
12
|
+
in the documentation and/or other materials provided with the
|
|
13
|
+
distribution.
|
|
14
|
+
* Neither the name of Google Inc. nor the names of its
|
|
15
|
+
contributors may be used to endorse or promote products derived from
|
|
16
|
+
this software without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
19
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
20
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
21
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
22
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
23
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
25
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
26
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
27
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
ISO C9x compliant stdint.h for Microsoft Visual Studio
|
|
2
|
+
Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2006-2013 Alexander Chemeris
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
10
|
+
this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
13
|
+
notice, this list of conditions and the following disclaimer in the
|
|
14
|
+
documentation and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the product nor the names of its contributors may
|
|
17
|
+
be used to endorse or promote products derived from this software
|
|
18
|
+
without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
21
|
+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
22
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
23
|
+
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
24
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
25
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
26
|
+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
27
|
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
28
|
+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
29
|
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
(C) 1995-2013 Jean-loup Gailly and Mark Adler
|
|
2
|
+
|
|
3
|
+
This software is provided 'as-is', without any express or implied
|
|
4
|
+
warranty. In no event will the authors be held liable for any damages
|
|
5
|
+
arising from the use of this software.
|
|
6
|
+
|
|
7
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
8
|
+
including commercial applications, and to alter it and redistribute it
|
|
9
|
+
freely, subject to the following restrictions:
|
|
10
|
+
|
|
11
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
12
|
+
claim that you wrote the original software. If you use this software
|
|
13
|
+
in a product, an acknowledgment in the product documentation would be
|
|
14
|
+
appreciated but is not required.
|
|
15
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
16
|
+
misrepresented as being the original software.
|
|
17
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright notice:
|
|
2
|
+
|
|
3
|
+
(C) 1995-2022 Jean-loup Gailly and Mark Adler
|
|
4
|
+
|
|
5
|
+
This software is provided 'as-is', without any express or implied
|
|
6
|
+
warranty. In no event will the authors be held liable for any damages
|
|
7
|
+
arising from the use of this software.
|
|
8
|
+
|
|
9
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
10
|
+
including commercial applications, and to alter it and redistribute it
|
|
11
|
+
freely, subject to the following restrictions:
|
|
12
|
+
|
|
13
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
14
|
+
claim that you wrote the original software. If you use this software
|
|
15
|
+
in a product, an acknowledgment in the product documentation would be
|
|
16
|
+
appreciated but is not required.
|
|
17
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
18
|
+
misrepresented as being the original software.
|
|
19
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
20
|
+
|
|
21
|
+
Jean-loup Gailly Mark Adler
|
|
22
|
+
jloup@gzip.org madler@alumni.caltech.edu
|
|
File without changes
|
|
File without changes
|
|
File without changes
|