Skip to main content

Streamed Array Data compressor

Project description

sadcompressor

sadcompressor is a compact archival format and Python library for streamed time-series data (mainly NumPy arrays). It stores frames with delta updates, optional prediction, and quantization-based compression.

Quick Start

import numpy as np
import sadcompressor as sad

filename = "example.sad"

# Create archive
with sad.SADWriter(filename, prec_nbits=20, prec_maxexp=8) as writer:
    writer["x"] = np.array([1.0, 2.0, 3.0], dtype=np.float32)
    writer.next_key(0.1)
    writer["x"] = np.array([1.1, 2.1, 3.1], dtype=np.float32)

# Read archive sequentially
with sad.SADReader(filename) as reader:
    while not reader.next_key():
        print(f"t={reader.t:.3f}", reader["x"])

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

sadcompressor-0.1.1-cp38-abi3-win_amd64.whl (121.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

sadcompressor-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl (262.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

sadcompressor-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (239.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

File details

Details for the file sadcompressor-0.1.1-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for sadcompressor-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b4302509101ce38602df57e288e155ac66d0315338575c8780dd4a0d2aa8c447
MD5 6dd3ff4f88020e1c2c4b19b655101baf
BLAKE2b-256 3a1b1a6c321ff70cc7548c298abda2c9972b982016eb116135591ceef9b215e8

See more details on using hashes here.

File details

Details for the file sadcompressor-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sadcompressor-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 250289e0fc5763abad98935639392b0e10ec5bc6d4cd68a93290cd8e96515761
MD5 07b18418af98a6d48cdcca9d6b5bd988
BLAKE2b-256 e672bed732046aebe033b7fd782668fc7fa2a869e176a1854f91e341cf575f56

See more details on using hashes here.

File details

Details for the file sadcompressor-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sadcompressor-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ad1628a1eefc0c20916550f9631bda978d291c7aaf4dd65c6afd6f0b168a4b8
MD5 629488c679460ed6b9721f1f415c31b4
BLAKE2b-256 69e9ec09dec07261c384853959fff7b56d729bcedec852b9141e4bffed17f1fc

See more details on using hashes here.

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