Skip to main content

Python bindings for jzip (Zig) - near-lossless embedding compression

Project description

jzip Python Bindings

Python bindings for jzip (near-lossless compression for unit-norm embedding vectors).

Install (dev)

Requires Zig and Python 3.10+.

pip install -e .

Usage

import numpy as np
import jzip

x = np.random.randn(1000, 384).astype(np.float32)
x /= np.linalg.norm(x, axis=1, keepdims=True)

blob = jzip.compress(x, level=1, threads=8)
y = jzip.decompress(blob, threads=8)

PyPI

pip install jzip-zig

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jzip_zig-0.0.8.tar.gz (713.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jzip_zig-0.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

jzip_zig-0.0.8-cp312-cp312-macosx_11_0_arm64.whl (248.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

jzip_zig-0.0.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

jzip_zig-0.0.8-cp311-cp311-macosx_11_0_arm64.whl (248.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

jzip_zig-0.0.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

jzip_zig-0.0.8-cp310-cp310-macosx_11_0_arm64.whl (248.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file jzip_zig-0.0.8.tar.gz.

File metadata

  • Download URL: jzip_zig-0.0.8.tar.gz
  • Upload date:
  • Size: 713.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jzip_zig-0.0.8.tar.gz
Algorithm Hash digest
SHA256 2072e4f597b6fb9bbcb06dae07dc70ff6031ff586b01f66a2043384da44a2a50
MD5 71354f0cf8e5b1aca65130c114343fe2
BLAKE2b-256 c5b8ebf41fa668ce1e4964b3dfc75ba0342ef4f76b631a4389a1584fd2692c2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for jzip_zig-0.0.8.tar.gz:

Publisher: pypi.yml on drexalt/jzip-zig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jzip_zig-0.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for jzip_zig-0.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 95094dfb5f5a250734cba0504d1e2425821a374f8fa762ae5824b0ef1c79cd0e
MD5 20bb078a3830ab1809d455751f5fb285
BLAKE2b-256 73c7a2698313f76d66c30f702033c1921300ec9bf56c6f1726ec595e32470295

See more details on using hashes here.

Provenance

The following attestation bundles were made for jzip_zig-0.0.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypi.yml on drexalt/jzip-zig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jzip_zig-0.0.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jzip_zig-0.0.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63b5691cbc335de2016e18b1f1eb740c20534658f45a70a7c6e68533626f7ab6
MD5 4eb4223a2a0b104fee6a1e046fee7ddc
BLAKE2b-256 d18092363d0567e1b929f6de6b584addf8d8ef2cc0daf825c01f88f69c1534f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for jzip_zig-0.0.8-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: pypi.yml on drexalt/jzip-zig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jzip_zig-0.0.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for jzip_zig-0.0.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24ed8cf84413df2781af1ad47618e8d69b7c6d695000c65efd5e9fb021fe5154
MD5 3f117c3f5bcab8103f349b959b8f3d8b
BLAKE2b-256 d5c45a0032cdc87a3bf52eb0575139e92c020f336122d1c0ae5e17dd075fab52

See more details on using hashes here.

Provenance

The following attestation bundles were made for jzip_zig-0.0.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypi.yml on drexalt/jzip-zig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jzip_zig-0.0.8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jzip_zig-0.0.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 409817f9310c23e28b77150554193381fd300aa659885f8c37971343ebecde51
MD5 9dae617ba78e3c16c407f561c3c16aa9
BLAKE2b-256 bec6692859b632a6189ab9d8d9bf99ec7ba0e067c10ad20ecf05fa7945839910

See more details on using hashes here.

Provenance

The following attestation bundles were made for jzip_zig-0.0.8-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: pypi.yml on drexalt/jzip-zig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jzip_zig-0.0.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for jzip_zig-0.0.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9d44606cbf59603a6617a2be9e88e83aef3e61d23b8e6b4775f243a2c91434d9
MD5 52cdba43a9a66b3c9ead134c4a94c916
BLAKE2b-256 2a72d5b292fd6823c54693977527de805b7d1cf71b4999ab2122c2c1f9f1ddd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for jzip_zig-0.0.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pypi.yml on drexalt/jzip-zig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jzip_zig-0.0.8-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jzip_zig-0.0.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 225b8b8038a982e38b36df0ddddea8d33b423454b49b3db9f4079c0c86c8900a
MD5 8e6d4a30b270f7eac1540ed3f1ae8876
BLAKE2b-256 374737497eb891de15e2baf4c9c9b21739dde38b1530ba8879d5cd327e229fbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for jzip_zig-0.0.8-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: pypi.yml on drexalt/jzip-zig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page