Skip to main content

rp-annot

Minimal compression library for sparse or contiguous 1D numpy boolean arrays.

Only depends on numpy

Install

The latest version is available via PyPI (https://pypi.org/project/rp-annot)

pip install rp-annot

Example usage

import rp_annot as rpa
import numpy as np

np_1d_bool_array = np.zeros(100000, dtype=bool)
np_1d_bool_array[20000:50000] = True
compressed = rpa.compress(np_1d_bool_array) # 16 bytes
decompressed =  rpa.decompress(compressed, len(np_1d_bool_array))
assert np.array_equal(np_1d_bool_array, decompressed)

Metadata

Release files for rp-annot 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rp-annot 0.0.4
File Size Uploaded Provenance Actions
rp_annot-0.0.4.tar.gz 14.7 kB Without provenance Details for rp_annot-0.0.4.tar.gz

Release files / rp_annot-0.0.4.tar.gz

Download URL rp_annot-0.0.4.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5554c8d9ec536febe6ae0d6bd681641ee7cee95f2a71f2d32fed703a2807b728
BLAKE2b-256 checksum
How to use checksums
31843f8569fa5a26c3d5ea31cfdd2db34d70b156526a36e29383cab46e3fa9cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5

Security for rp-annot 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page