Skip to main content

BDSP Python Reader

Reader-first Python package for BDSP/Sleep YODA standardized HDF5 data.

import bdsp

record = bdsp.read_h5("/path/to/study.h5")

record.signals["c3-m2"]
record.metadata
record.annotations
record.features
record.channel_info

df = record.to_dataframe(resample_fs=200)

with bdsp.open_h5("/path/to/study.h5") as reader:
    x, t = reader.read_signal("c3-m2", start=60, duration=30)

Scope

Version 0.1 reads BDSP/Sleep YODA H5 files. It intentionally does not include EDF conversion, S3 downloading, GUI code, model inference, report generation, or feature computation.

API

  • bdsp.read(path, **kwargs) dispatches to the H5 reader for .h5 and .hdf5.
  • bdsp.read_h5(path, raw_digital=False, include_annotations=True, include_features=True) returns a BDSPRecord.
  • BDSPRecord.to_dataframe(resample_fs=200) returns synchronized signal and annotation columns.
  • bdsp.open_h5(path) returns a lazy BDSPH5Reader for slice-based reads.
  • bdsp.compat.sleep_yoda exposes load_standardized_h5 and PSGReader compatibility aliases.

Development

python -m pip install -e ".[test]"
pytest

The project metadata requires Python 3.10+. The reader source itself is kept small and depends only on h5py, numpy, pandas, and scipy.

License

This package is licensed under the Apache License, Version 2.0.

Metadata

Release files for bdsp 0.1.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 bdsp 0.1.0
File Size Uploaded
bdsp-0.1.0.tar.gz 24.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bdsp 0.1.0
File Interpreter ABI Platform
bdsp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.5 kB

Release files / bdsp-0.1.0.tar.gz

Download URL bdsp-0.1.0.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a47a0e6b20fd454d500ad6c3d1186b62e9875ded238f466f979427e875e72cc1
BLAKE2b-256 checksum
How to use checksums
ed465e8b8060f55272d289eb58fdbafed8c850ea33d0d42f7619949e377fd0c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 17, 2026.

Transparency log

Release files / bdsp-0.1.0-py3-none-any.whl

Download URL bdsp-0.1.0-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f471309a64e162cc1db3933677841ad83e2f46f6ab3440799535020aa2a5b0b
BLAKE2b-256 checksum
How to use checksums
4f50e367edaf28bd08f17d4aee13c8fc4f2baace8d045dd724a32b650bf716e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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