Skip to main content

qso-graph-lib

PyPI Python License: GPL-3.0-or-later

The code QSO Graph's Python packages share, in one place, so it is written and tested once. Standard library only: no dependencies.

What's in it

Module What
qso_graph_lib.adif ADIF's ADI format, read and written as ADIF 3.1.8 defines it. Passes ADIF's own 3.1.8 and 3.1.7 test files; non-compliant input real logs contain is repaired where it can be and reported in Document.problems, never silently
qso_graph_lib.jt.protocol WSJT-X's UDP messages, encoded and decoded: Heartbeat, Status, Decode, WSPRDecode, Clear, Close, Replay and the rest, schema 3, written to WSJT-X's own Network/NetworkMessage.hpp
qso_graph_lib.jt.alltxt WSJT-X's ALL.TXT, the log of every decode, read into cycles

The JT modules are used by qso-graph-sim and jt-mcp; the ADIF module by the logbook servers and qsp-client.

Install

uv add qso-graph-lib

It has no command of its own; it is imported.

Example

from qso_graph_lib.jt import protocol

message = protocol.parse(datagram)          # ValueError if it isn't a WSJT-X message
if message.kind == protocol.MessageType.DECODE:
    print(message.sender, message.fields["snr"], message.fields["message"])

Unknown message types, and fields past the ones it knows, are ignored, as WSJT-X's protocol requires. A message cut short inside a field it needs is refused.

from qso_graph_lib import adif

doc = adif.read_file("log.adi")             # line ends as written, never text mode
for record in doc.records:
    print(record.fields["CALL"], record.fields.get("BAND"))
for problem in doc.problems:                # what broke ADIF's rules, and what was done
    print(problem.offset, problem.message)

text = adif.write(records, header={"ADIF_VER": "3.1.8", "PROGRAMID": "my-app"})

Development

git clone https://github.com/qso-graph/qso-graph-lib.git
cd qso-graph-lib
uv sync --group dev
uv run pytest

Part of QSO-Graph

This package is part of qso-graph, tools for amateur radio. See qso-graph.io for documentation.

License

GPL-3.0-or-later

Metadata

Release files for qso-graph-lib 0.2.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 qso-graph-lib 0.2.3
File Size Uploaded Provenance Actions
qso_graph_lib-0.2.3.tar.gz 816.7 kB With provenance Details for qso_graph_lib-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qso-graph-lib 0.2.3
File Interpreter ABI Platform Actions
qso_graph_lib-0.2.3-py3-none-any.whl Python 3 none any Details for qso_graph_lib-0.2.3-py3-none-any.whl

Total release size: 844.7 kB

Release files / qso_graph_lib-0.2.3.tar.gz

Download URL qso_graph_lib-0.2.3.tar.gz
Size 816.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7ad666c58b3d48ca2c630682d0855aedf994cc8c3d3d399f6df68f2ede8c1a0b
BLAKE2b-256 checksum
How to use checksums
771e48fba53e6612287bda6ddd4f9c8e39eac1c7bf8735a02be77bc4b0baf034
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

Release files / qso_graph_lib-0.2.3-py3-none-any.whl

Download URL qso_graph_lib-0.2.3-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57c129ab775e5862ebc774baab66d185eb8b5a632f0c16864f63c18ecad368b5
BLAKE2b-256 checksum
How to use checksums
8dfca2f021e849b8cd65e3ad6c37f120736920c51db89b137406bd478e16f18e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 15, 2026.

Transparency log

Security for qso-graph-lib 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qso_graph_lib-0.2.3.tar.gz

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 Nov 15, 2026.

Transparency log

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