The WFDB Python Package
February 6, 2026 ยท View on GitHub

Introduction
WFDB defines a set of open standards and software tools for the storage, sharing, and analysis of physiologic signal and annotation data. It has been widely used for decades to support biomedical research, clinical studies, and education. For more information on WFDB and its various implementations, see the WFDB website.
This package is heavily inspired by the original WFDB Software Package. It aims to replicate many of its command-line APIs in Python, but there is no promise of consistency between the two. Core I/O functionality is based on the Waveform Database (WFDB) specifications.
Resources
- WFDB Website: https://wfdb.mit.edu/
- WFDB-Python Documentation: http://wfdb.readthedocs.io
- WFDB Specification: https://github.com/wfdb/wfdb-spec/
- Demo Notebook: https://github.com/MIT-LCP/wfdb-python/blob/main/demo.ipynb
- WFDB Development Repository: https://github.com/MIT-LCP/wfdb-python
Installation
The distribution is hosted on PyPI at: https://pypi.python.org/pypi/wfdb/. The package can be directly installed from PyPI using pip:
pip install wfdb
On some less-common systems, you may need to install libsndfile separately. See the soundfile installation notes for more information.
Development
The development version is hosted at: https://github.com/MIT-LCP/wfdb-python. This repository also contains demo scripts and example data. To install the development version, clone or download the repository, navigate to the base directory, and run:
pip install .
If you intend to make changes to the repository, you can install additional packages that are useful for development by running:
pip install ".[dev]"
Please see the DEVELOPING.md document for contribution/development instructions.
Creating a new release
For guidance on creating a new release, see: https://github.com/MIT-LCP/wfdb-python/blob/main/DEVELOPING.md#creating-distributions
Citing
When using this resource, please cite the software publication on PhysioNet.