Skip to main content

High-performance mmap-backed time-series storage for Python.

Project description

timslite-py

Python bindings for the timslite high-performance time-series data storage library.

Installation

maturin develop          # Development
maturin develop --release  # Release build

Usage

import timslite

with timslite.Store.open("/data/timslite") as store:
    store.create_dataset("sensor", "waveform")
    ds = store.open_dataset("sensor", "waveform")
    ds.write(1, b"reading_1")
    ds.write(2, b"reading_2")

    # Read single record by timestamp
    record = ds.read(1)  # -> (1, b"reading_1") or None
    if record:
        ts, data = record
        print(f"ts={ts}, data={data}")

    # Read the latest record
    record = ds.read_latest()  # -> (2, b"reading_2") or None for empty dataset

    # Query the latest timestamp without a range scan
    print(f"latest: {ds.latest_timestamp}")  # -> 2

    # Range query
    for ts, data in ds.query(1, 100):
        print(f"ts={ts}, data={data}")

    # Delete a record
    ds.delete(1)

Manual Background Tasks

When enable_background_thread=False, the store does not spawn an internal background thread. You must call store.tick_background_tasks() periodically to drive flush, idle-close, cache eviction, and retention reclaim.

import timslite

cfg = timslite.StoreConfig(enable_background_thread=False)
store = timslite.Store.open("/data/timslite", cfg)

store.create_dataset("sensor", "waveform")
ds = store.open_dataset("sensor", "waveform")
ds.write(1, b"reading_1")

# Manually execute a tick — returns (executed_tasks, next_delay_ms)
executed, delay_ms = store.tick_background_tasks()
print(f"executed={executed}, next in {delay_ms}ms")

# Check the delay without executing anything
delay = store.next_background_delay()
print(f"next task due in {delay}ms")

# In an event loop:
import time
while True:
    executed, delay_ms = store.tick_background_tasks()
    if executed > 0:
        print(f"ran {executed} background tasks")
    time.sleep(delay_ms / 1000.0)

store.close()

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

timslite-0.1.0.tar.gz (352.0 kB view details)

Uploaded Source

Built Distributions

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

timslite-0.1.0-cp313-cp313-win_amd64.whl (820.1 kB view details)

Uploaded CPython 3.13Windows x86-64

timslite-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

timslite-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

timslite-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (869.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

timslite-0.1.0-cp312-cp312-win_amd64.whl (820.5 kB view details)

Uploaded CPython 3.12Windows x86-64

timslite-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

timslite-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

timslite-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (870.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

timslite-0.1.0-cp311-cp311-win_amd64.whl (823.3 kB view details)

Uploaded CPython 3.11Windows x86-64

timslite-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

timslite-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

timslite-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (873.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

timslite-0.1.0-cp310-cp310-win_amd64.whl (823.3 kB view details)

Uploaded CPython 3.10Windows x86-64

timslite-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

timslite-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

timslite-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (873.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

timslite-0.1.0-cp39-cp39-win_amd64.whl (826.0 kB view details)

Uploaded CPython 3.9Windows x86-64

timslite-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64

timslite-0.1.0-cp39-cp39-manylinux_2_28_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

timslite-0.1.0-cp39-cp39-macosx_11_0_arm64.whl (875.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file timslite-0.1.0.tar.gz.

File metadata

  • Download URL: timslite-0.1.0.tar.gz
  • Upload date:
  • Size: 352.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for timslite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8d7ef81539e7d9b1873a4bd522c4c51e301f95c83af5f8809e9a728edb963bd
MD5 279777691e9aa9d6ed688640260ee949
BLAKE2b-256 9cd0c4f4295dfd2b041c774077e049b4bf8a6877329599d6c9941c0e589e11e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0.tar.gz:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: timslite-0.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 820.1 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for timslite-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d27dcb1330ffdd74fc3299daccf0a546ef916c3b9c2176e2a5b924c562974182
MD5 d96759f415b4b233c2f7a58ceeb8c747
BLAKE2b-256 eadc354998bdb2d5f8bd1f05a44cd0ad76420018f9cfcce7998598b5973496df

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp313-cp313-win_amd64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ca49a6e32fdf355672ff4ccb0a060e8ecae3dc12908e946eb3815a7a4b7dd12d
MD5 effeea007c8557f7436bfb2d43f14b32
BLAKE2b-256 82d9ff547efab2731716cf4df8d7b3b11c8b965524f31a36ca5ccbcc78bed466

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5859fe881c628661bb52cff0ef0c1c912629148be597430db69d5396cf0f6a58
MD5 020d9fe186e4991575970549419ece4b
BLAKE2b-256 2602eef5e85ebcbd4ff15151eff3a4e452436b2ec4ae75a7b84f89db286913a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp313-cp313-manylinux_2_28_aarch64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6651ab02c282b012ef646e4f588fa45cf5034630e3af31967d491bf3081a55cc
MD5 bcbde51aa4d8cf504d0cb01816c54007
BLAKE2b-256 8f2ec1449978d65bea761e2946d17c275c8a3e4be13d47d07dac9113d6e706ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: timslite-0.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 820.5 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for timslite-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 321b403e7e9d470d9dba30911bba6e68bb3c88084970b67192d7b397efbe5e04
MD5 e541ea70ef4585a44547adba8d0a5b42
BLAKE2b-256 322d8e5537a0560b828338f94bbb5587260ea7dbc5075af6b89d4b8763930de7

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 128aa10b57c694279110b808a9cea415ed8d7f6f03e367b0c42636bdecea4565
MD5 b20a0c639b086729e4b231ab0d576fc0
BLAKE2b-256 3491fb8a7711110374e595cb5aabaea63818496f0e589a6802f2df601045a781

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 336cc9c03f8af86d0bbe76f04a4e0516ce2daa32fd500f9713e2d11f8e5678ec
MD5 2fa3bc4a43a29ea5cea5ab98850b76a8
BLAKE2b-256 ef993a24d072a82ad393539f193d8fc90008484f2db85c0c911a1d4b9ed77f9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp312-cp312-manylinux_2_28_aarch64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd2152f001af3acdebd9ab4bf8c420468349aeabae4a24c2277b9ac1a631bad7
MD5 2496c3fdbc4ad2e4762c2e3912736c77
BLAKE2b-256 76fb7668f56fa5c1b7c9c156d937952f76b36e7d5adcfa87ac4603f73167341b

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: timslite-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 823.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for timslite-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aa1d7344e9fb3902347c5dc515de3fd633febd301ad9aca88be5dcfaa09fd08a
MD5 0cfdd71fd8736c0b1c140b0da109048a
BLAKE2b-256 a6bf0c5517d4a05a93113990127455bf6f735bebfa92e57c5538826e1eeeca69

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 13be88c2cc8d5947907aa6ca2ab8c544cb7279ad9e7fd5e138b56e70cc8ce9b1
MD5 f07c03831c70c03f644c838fbb95cd35
BLAKE2b-256 48e6d0178a87bedfbf0cbe983bfd4547a57a506d5442323cf8772287436cd768

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3312eb313fabc3bfd2c808a12dd89081d8e869b081def84741c8d65abfbd4cb7
MD5 d0510a10222b5669fa2169f14f0c5870
BLAKE2b-256 864a283445fde5027a7cabf21738459e89752c45d1e86c346bf28337d38db9aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp311-cp311-manylinux_2_28_aarch64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bf5534fcfbb6fbe0c7fb916506ae39674a3eece66861bc90193c2797258d86a
MD5 f9879d4cc445b8cc76b59a06988c2a51
BLAKE2b-256 9199d482622dea43c2a0b9b512db0c3f2d2267f88042520b03b8146057abdc34

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: timslite-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 823.3 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for timslite-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 af35be55d6fd7e1e4345014869aeef0a8ded29ea25a9c488ef289f0216ff2484
MD5 1a208a569f80c3f764943b07922a9773
BLAKE2b-256 7ed8b781934c5e53a9ecf85351429775fa16aa4ed4c3c422e5808e5bbd470e21

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7a75e89967b3577c7400de253f852653d4f8e0721f77f694387a2043cdbe2d38
MD5 64f0e51e7a5f816f95e1bec848671ae7
BLAKE2b-256 64198fb6d44c34b4ae420d688dca1ec4cc6202f97c2f333a5ce950bad70d9059

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 19ad84f0671a0cc81d679883a261be7f5ac05fcc5781aa647e8d4f1976e170bb
MD5 563436665f86e4dea4d073f87ff8e2ee
BLAKE2b-256 e47d4087a7401665dbc97147d709650664ad327c9f762051a828ad500380944f

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp310-cp310-manylinux_2_28_aarch64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77b169d17e1209077a807ea95cdd564e6f3753659975001732feaa9d56306ede
MD5 fc43aa74828f01060ac959d72f8cf36a
BLAKE2b-256 c42d7306a52962a6a54be821ffd75e7f18f0090cee123c34bf2b08d77149f8dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: timslite-0.1.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 826.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for timslite-0.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cd6e4e7d5ceb3153b4a6052e2de1a3214b4658c37a18e5101512a3c0aad11699
MD5 1d0331197baf9359be72cfbbe8d0beb7
BLAKE2b-256 16741babbc807a3561af3a60c453bd5399fa08425526c6cdbd0c6b83ea8bb5a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp39-cp39-win_amd64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 47304c150c209a5e9ced9c857d1870c084805c6c632ea6aa0b22b55db8b40960
MD5 aa83f7ceaedf50ff7b93845477d292df
BLAKE2b-256 9bca758674ea7dd89aad90a76a1025d1e0d9b1b0f38a860221e89dbab000d792

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp39-cp39-manylinux_2_28_x86_64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e7708a127b3c76eaee6b47f36a40a1f036829711ae8da461a0a44f70a877734
MD5 2c0cb4eea32fd7283b749c15b481a4a8
BLAKE2b-256 68b5d2443ef8004a5ad959e181cf79f479e6d94864494fe24e37b1451fb975bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp39-cp39-manylinux_2_28_aarch64.whl:

Publisher: python-release.yml on snower/timslite

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

File details

Details for the file timslite-0.1.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for timslite-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc16d0c2c3e10a4a5057de1634c4952773f7d0a836a9bd2f653e27e403d8d50b
MD5 5d55e41fcd39f29b51a7ad2c1805e345
BLAKE2b-256 833c293315d051d60677ef3aa557499b32f4ffcfbf5a44eafb030b4719c43050

See more details on using hashes here.

Provenance

The following attestation bundles were made for timslite-0.1.0-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: python-release.yml on snower/timslite

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