Skip to main content

A Python library that provides methods for encoding and decoding TSDF (Time Series Data Format) data, which allows you to easily create, manipulate and serialize TSDF files in your Python code.

Project description

tsdf

Badges
Packages and Releases Latest release PyPI Static Badge
Build Status Build and test
DOI DOI
License GitHub license
Fairness fair-software.eu OpenSSF Best Practices

A package (documentation) to load TSDF data (specification) into Python.

Overview

The tsdf package is a comprehensively documented reference implementation of the Time Series Data Format (TSDF) standard [1]. TSDF simplifies data storage and exchange of multi-channel digital sensor data, thereby promoting interpretability and reproducibility of scientific results. Sensor measurements and timestamps are stored as raw tabular binary array files. To ensure unambiguous reconstruction, binary array files are accompanied by human-readable JavaScript Object Notation (JSON) metadata files, which contain a set of mandatory fields limited to essential sensor measurement information.

The tsdf Python package implements functions for reading and writing TSDF files. It guarantees formatting and metadata consistency. It enforces usage of the essential metadata such as study identification, time frame, data channel descriptions and data attributes corresponding to the binary data.

Installation

Using pip

The package is available in PyPi and requires Python 3.11 or higher. It can be installed using:

$ pip install tsdf

Usage

See our extended tutorials.

Development

Running tests

poetry install
poetry run pytest

Building the documentation

We use Sphinx to build the documentation. Use this command to build the documentation locally:

poetry run make html --directory docs

Contributing

We welcome contributions! Please see our Contributing Guidelines for more details on coding standards, how to get started, and the submission process.

Code of Conduct

To ensure a welcoming and respectful community, all contributors and participants are expected to adhere to our Code of Conduct. By participating in this project, you agree to abide by its terms.

License

This package was created by Pablo Rodríguez, Peter Kok and Vedran Kasalica. It is licensed under the terms of the Apache License 2.0 license.

Credits

  • The TSDF data format was created by Kasper Claes, Valentina Ticcinelli, Reham Badawy, Yordan P. Raykov, Luc J.W. Evers, Max A. Little.
  • This package was created with cookiecutter and the py-pkgs-cookiecutter template.

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

tsdf-0.6.2.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

tsdf-0.6.2-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file tsdf-0.6.2.tar.gz.

File metadata

  • Download URL: tsdf-0.6.2.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tsdf-0.6.2.tar.gz
Algorithm Hash digest
SHA256 c1fae8be84ea09ed056cdd412431ca0c1e78978275e927a73a323df55d70020f
MD5 915ca2dd2f459507fc797b89be071b38
BLAKE2b-256 4a5cf5db17ef7671764d3134a7852221511a8523e27f9d259e3aeb19dacbdaff

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsdf-0.6.2.tar.gz:

Publisher: publish.yml on biomarkersParkinson/tsdf

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

File details

Details for the file tsdf-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: tsdf-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tsdf-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b367b8fa9699f92338bcf8f287f8119427a219d3ffebb462c99e49d7985ac6bb
MD5 f023679daca20866b9083a9a5462a443
BLAKE2b-256 85b0e2912ef43e9bc6bd21b66bf3f22fcd53c214ff0b5cbb1ef05d7d2b7e6ea8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsdf-0.6.2-py3-none-any.whl:

Publisher: publish.yml on biomarkersParkinson/tsdf

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