Skip to main content

dectris-compression

This library provides compression algorithms used by DECTRIS.

Supported algorithms:

Algorithm Identifier Description
COMPRESSION_BSLZ4 bslz4 Bitshuffle with LZ4 compression (HDF5 framing)
COMPRESSION_BSZSTD bszstd Bitshuffle with Zstandard compression (HDF5 framing)
COMPRESSION_LZ4 lz4 LZ4 compression (HDF5 framing)
COMPRESSION_TRPX trpx TERSE/PROLIX v2 (TRPX) compression

All algorithms support decompression. The C API also supports compression with COMPRESSION_BSZSTD and COMPRESSION_TRPX (compression_compress_buffer()) and block by block streaming compression with COMPRESSION_BSZSTD (compression_stream_encoder_create()).

from dectris.compression import decompress

decompress(data, "bszstd", elem_size=2)
decompress(data, "trpx")

Bazel

The repository is a Bazel module (dectris_compression). It does not use the git submodules, so a source archive of a release can be used directly:

# MODULE.bazel
bazel_dep(name = "dectris_compression", version = "<version>")
archive_override(
    module_name = "dectris_compression",
    integrity = "sha256-...",
    strip_prefix = "compression-<version>",
    urls = ["https://github.com/dectris/compression/archive/refs/tags/v<version>.tar.gz"],
)
# BUILD.bazel
cc_library(
    ...
    deps = ["@dectris_compression//:compression"],
)
#include "dectris_compression/src/compression.h"

Metadata

Release files for dectris-compression 0.4.0

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

Source distribution (sdist)

Source distribution for dectris-compression 0.4.0
File Size Uploaded Provenance Actions
dectris_compression-0.4.0.tar.gz 563.8 kB Without provenance Details for dectris_compression-0.4.0.tar.gz

Release files / dectris_compression-0.4.0.tar.gz

Download URL dectris_compression-0.4.0.tar.gz
Size 563.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7d0a6576a6611be4a2da7ad7911f9c3b34105c29c397a6975cc2622eca9de80f
BLAKE2b-256 checksum
How to use checksums
ea5141c9a388fac887730d76a3dbb32788fbac2d9914248f7a5cacc5df492fff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for dectris-compression 0.4.0

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