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
dectris_compression-0.4.0.tar.gz 563.8 kB Details

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

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.0

1 release file

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