Skip to main content

aECG (Python parser for annotated ECG HL7 files)

Python library to parse and visualize aECG files.

Demo

Open in Streamlit

Installation

pip install aecg

Usage

  • Read your aECG xml file.
import aecg

file_path = r"tests/data/Example aECG.xml"
aecg_o = aecg.read(file_path)
  • Use summary to get an overview of the data.
aecg_o.summary()
{
    'id': UUID('61d1a24f-b47e-41aa-ae95-f8ac302f4eeb'),
    'date': datetime.datetime(2002, 11, 22, 9, 10),
    'series_count': 1,
    'annotations_count': 167,
}
  • Get waveforms dataframes and their associated plots.
titles = []
dfs = []
figs = []

for serie in aecg_o.series:
    for i, seq_set in enumerate(serie.sequence_sets, 1):
        title = f"Serie {serie.id} | Sequence set {i}"
        df = seq_set.get_sequences_df()
        fig = aecg.plotter.plot_seq_set(df, title=title)
        dfs.append(df)
        titles.append(title)
        figs.append(fig)

    for i, seq_set in enumerate(serie.derived_sequence_sets, 1):
        title = f"Serie {serie.id} | Derived sequence set {i}"
        df = seq_set.get_sequences_df()
        fig = aecg.plotter.plot_seq_set(df, title=title)
        dfs.append(df)
        titles.append(title)
        figs.append(fig)
dfs[0]
figs[0].show()
  • You can choose to plot all the curves together.
aecg.plotter.plot_seq_set(dfs[0], plot_mode="one")

Metadata

Release files for aecg 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aecg 0.1.3
File Size Uploaded Provenance
aecg-0.1.3.tar.gz 10.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 19.4 kB

Release files / aecg-0.1.3.tar.gz

Download URL aecg-0.1.3.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41c122a0a173493a2149e1053df48850029e494e7792e3e51c2e0774df0fab1f
BLAKE2b-256 checksum
How to use checksums
a0964da5e10bd78d29b0f853416fcd5fa182b536076fcd764c1e9d4a6b0fc773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / aecg-0.1.3-py3-none-any.whl

Download URL aecg-0.1.3-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28f4168f1aa698d0240f6953f1bf01d7c87a9d6d011387ee80783a4e3d17d771
BLAKE2b-256 checksum
How to use checksums
78d6716977bc6c85c0393973ad9967493d48ee5a5956a3649666ffaa9da58dc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for aecg 0.1.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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