Skip to main content

qso-graph-lib

PyPI Python License: GPL v3

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.7 defines it. Passes ADIF's own 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. That is the JT family's protocol: any program that speaks it (JTDX, MSHV, WSJT-X Improved) is read the same way
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.7", "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

GPLv3

Metadata

Release files for qso-graph-lib 0.2.1

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.1
File Size Uploaded Provenance Actions
qso_graph_lib-0.2.1.tar.gz 442.9 kB With provenance Details for qso_graph_lib-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 470.7 kB

Release files / qso_graph_lib-0.2.1.tar.gz

Download URL qso_graph_lib-0.2.1.tar.gz
Size 442.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7a0c2e074abad6dac0f282b7cbaca077467ebf6048d794c47dcc0025faff2689
BLAKE2b-256 checksum
How to use checksums
d3462cdadb2e7d831fc0f3f1c816d26fdae2b89136ef283e8858b135abaa3e64
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 8, 2026.

Transparency log

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

Download URL qso_graph_lib-0.2.1-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1246164ed0f6734345b125f62b1df9b63557c3feaf4126d4c3db2f568cf68d6
BLAKE2b-256 checksum
How to use checksums
4568cc3edf08577b70117dac9b6ae1705c6c4f6a48ae68cafd7c75e56d0caff5
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 8, 2026.

Transparency log

Security for qso-graph-lib 0.2.1

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.1.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 8, 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