pcodec 0.3.0__cp313-none-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.
- pcodec/__init__.py +5 -0
- pcodec/pcodec.cp313-win_amd64.pyd +0 -0
- pcodec-0.3.0.dist-info/METADATA +49 -0
- pcodec-0.3.0.dist-info/RECORD +5 -0
- pcodec-0.3.0.dist-info/WHEEL +4 -0
pcodec/__init__.py
ADDED
|
Binary file
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pcodec
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Requires-Dist: numpy
|
|
5
|
+
Summary: Good compression for numerical sequences
|
|
6
|
+
Keywords: compression,numerical
|
|
7
|
+
Author-email: mwlon <m.w.loncaric@gmail.com>
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
10
|
+
Project-URL: Repository, https://github.com/mwlon/pcodec
|
|
11
|
+
|
|
12
|
+
<div style="text-align:center">
|
|
13
|
+
<img alt="Pco logo: a pico-scale, compressed version of the Pyramid of Khafre in the palm of your hand" src="https://raw.githubusercontent.com/mwlon/pcodec/cac902e714077426d915f4fc397508b187c72380/images/logo.svg" width="160px">
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
[![pypi.org][pypi-badge]][pypi-url]
|
|
17
|
+
|
|
18
|
+
[pypi-badge]: https://img.shields.io/pypi/v/pcodec.svg
|
|
19
|
+
|
|
20
|
+
[pypi-url]: https://pypi.org/project/pcodec/
|
|
21
|
+
|
|
22
|
+
# Pcodec Python API
|
|
23
|
+
|
|
24
|
+
Pcodec is a codec for numerical sequences. Example usage:
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
>>> from pcodec import standalone, ChunkConfig
|
|
28
|
+
>>> import numpy as np
|
|
29
|
+
>>>
|
|
30
|
+
>>> np.random.seed(0)
|
|
31
|
+
>>> nums = np.random.normal(size=1000000)
|
|
32
|
+
>>>
|
|
33
|
+
>>> # compress
|
|
34
|
+
>>> compressed = standalone.simple_compress(nums, ChunkConfig())
|
|
35
|
+
>>> print(f'compressed to {len(compressed)} bytes')
|
|
36
|
+
compressed to 6946257 bytes
|
|
37
|
+
>>>
|
|
38
|
+
>>> # decompress
|
|
39
|
+
>>> recovered = standalone.simple_decompress(compressed)
|
|
40
|
+
>>>
|
|
41
|
+
>>> np.testing.assert_array_equal(recovered, nums)
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
For pcodec's uses, design, and benchmarks, [see the main repo](https://github.com/mwlon/pcodec).
|
|
46
|
+
|
|
47
|
+
At the moment, we don't have sphinx + a website set up, so run `help(pcodec)`
|
|
48
|
+
(or whatever module name) in Python to read pcodec's documentation.
|
|
49
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
pcodec-0.3.0.dist-info/METADATA,sha256=aDpZjADk9Girc1hFYqgT_QGwc5HQdP64buam4ox9YTY,1571
|
|
2
|
+
pcodec-0.3.0.dist-info/WHEEL,sha256=1ZpRl7NI5FUTGBGfAoLBw2DqQx_-H3hwfjZ2VbdjU5g,95
|
|
3
|
+
pcodec/__init__.py,sha256=QxiL7cvJ9fZNTkPxHw1hDKR_vSp0FviT90F8fW1YEFY,107
|
|
4
|
+
pcodec/pcodec.cp313-win_amd64.pyd,sha256=E4xg3ynJ3gZQlnbMejIbnkwe6M1OwaMyYi8B6Ah7iIo,1077760
|
|
5
|
+
pcodec-0.3.0.dist-info/RECORD,,
|