Skip to main content

Biosig Package

Biosig is a toolbox for processing biomedical signals like ECG, EEG etc. It can read about 50 different data formats including EDF, GDF, BDF, CFS, Heka, ABF, HL7aECG, SCP (EN1064), BrainVision, and many more. The heavy lifting is done in "libbbiosig" the biosig library implemented in C/C++. The Python module of Biosig provides an interface between libbiosig and Python. Currently, two functions are provided, one for reading the data samples, and one for extracting the meta information, like event table, scaling factors, sampling rates, etc.

More information is available at

Installation:

GNU/Linux (Debian, Ubuntu, and family)

  sudo apt install python3-biosig

or if you want to install in your own venv

  sudo apt install libbiosig-dev  # make sure that libbiosig and its prerequisites are in place
  pip install biosig

MacOSX/Homebrew

  brew install biosig             # make sure libbiosig is in place.
  pip install biosig

MS-Windows (Python >=3.9,<=3.14)

  pip install biosig

Other *NIX (Linux, Unix) OS

  • install libbiosig from source (configure && make && make install)
  • pip install biosig

Usage

  import biosig
  import json

read header/metainformation

  HDR=json.loads(biosig.header(FILENAME))

read data

  DATA=biosig.data(FILENAME)

A more elaborate example is this demo

showing

  • how to load data
  • displaying the traces with matplotlib
  • splitting the traces into sweeps

History

In the past there were several attempts of providing Python support. A first attempt using pure python should to be very slow and a lot of implementation effort, only some early version of GDF has been supported. Later, Swig was used for providing a python binding. This was reasonable flexible, and the libbiosig implementation could be mostly used. Disadvantages were the effort to maintain swig.i interface file, which is currently most likely broken. Known issues are string support, lack of Python3 support. Also this attempt is considered deprecated.

The third attempt is using "module extensions". Currently, two functions, one for reading the header information (in JSON format) and one for reading the data samples is provided.

Download files

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

Source Distribution

biosig-3.9.6.tar.gz (22.6 kB view details)

Uploaded Source

Built Distributions

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

biosig-3.9.6-cp314-cp314-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.14Windows x86-64

biosig-3.9.6-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

biosig-3.9.6-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

biosig-3.9.6-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

biosig-3.9.6-cp310-cp310-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10Windows x86-64

biosig-3.9.6-cp39-cp39-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file biosig-3.9.6.tar.gz.

File metadata

  • Download URL: biosig-3.9.6.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.6.tar.gz
Algorithm Hash digest
SHA256 bdaa92afb0891849bee2bbf0abba9ad22b18d2d693c25a1eba6ed847e6504618
MD5 fc2ca3e9ce96fd321b93e27ee71e09f3
BLAKE2b-256 efb53a6db0c9e5730aaaf8d2b512a35b8d207e0440626da9a14a217bb5a3a1b5

See more details on using hashes here.

File details

Details for the file biosig-3.9.6-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.6-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 899a5a8992b9170acf83d9fd16490173eb57869873589499352cad1a6797a0a4
MD5 48ecaedc893b308da98c0a414735b291
BLAKE2b-256 4206f2257febe9a9d699f8602d2640dca3a1851df5c3b1495edea86f58945749

See more details on using hashes here.

File details

Details for the file biosig-3.9.6-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 95c39461d5043898e3d87f0b9f374e0b2a8e88ea61573472c4e6ab68c85acc84
MD5 466495d867a958b16595c44b875a8918
BLAKE2b-256 09e5c79c30a1ce7d00f459c162cc36ad7147d05f4885db2875a5df66d003b0eb

See more details on using hashes here.

File details

Details for the file biosig-3.9.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4cf8195487c9bc8f9aca90e6cbf9a5d8a3439a507a670ab6755ed4fd8bf65a0f
MD5 404c1ea082f2e01fa4a100b3d01ab747
BLAKE2b-256 1859c0b4c348c9aba62468745db71f521ea19b926f9e304c5630512e7690fbc2

See more details on using hashes here.

File details

Details for the file biosig-3.9.6-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3aa63b3909397b59d4c5c99341b4e81ff0596895d425c54378bacd37516f0ed
MD5 93ca7b1c90ec35b48aada4a114c4bc95
BLAKE2b-256 e0009b6a6f95b0fbe01af2717b2b07d80efec39bf851d4a767e3475b45e0857b

See more details on using hashes here.

File details

Details for the file biosig-3.9.6-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5a97492f3ee49cd6f2eb91cb93cb0ffa12f4b273e99f123b03790b230579e21e
MD5 89c145b3b42655a502d5457c5de130de
BLAKE2b-256 2cdc93e9bfa16e065082c3a197a573a288b1ff3336b4fff47a5797bf1c9abfe3

See more details on using hashes here.

File details

Details for the file biosig-3.9.6-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: biosig-3.9.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for biosig-3.9.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b5ca1be150ef3b86bff996ef4696e8b1ffce7d551802dcf19d0044551030bcf8
MD5 57ecd32295700171a94efd66720d6d0b
BLAKE2b-256 15e660e6e8efccbbab007e2f62ff57ece06b412ee62261520a3d619f12ded257

See more details on using hashes here.

Release history Release notifications | RSS feed

3.9.7.post2

7 files

3.9.7

7 files

3.9.6.post3

7 files

3.9.6.post2

7 files

This release

3.9.6 This release

7 files

3.9.5

7 files

3.9.3

7 files

3.9.2

6 files

3.9.1

6 files

3.9.0

6 files

2.6.1

5 files

2.6.0

1 file

2.1.0

6 files

2.0.6

3 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page