qso-graph-lib
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 |
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
Metadata
Release files for qso-graph-lib 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qso_graph_lib-0.2.2.tar.gz | 444.1 kB | With provenance | Details for qso_graph_lib-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qso_graph_lib-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for qso_graph_lib-0.2.2-py3-none-any.whl |
Total release size: 471.7 kB
Release files / qso_graph_lib-0.2.2.tar.gz
| Download URL | qso_graph_lib-0.2.2.tar.gz |
|---|---|
| Size | 444.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1a280f2f239cdf755b794bd9501845c7d307dc372142fa15615b213e2282c0b
|
|
BLAKE2b-256 checksum How to use checksums |
6706753cac1605f2d5a30240deeadaa454bbec4157bd0a38354e3dc5ece728f3
|
| 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 9, 2026.
Transparency logRelease files / qso_graph_lib-0.2.2-py3-none-any.whl
| Download URL | qso_graph_lib-0.2.2-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06ae38031eba2575a9b03c5b0716bddcc66e3d58061779b2500b9a9770aaec9b
|
|
BLAKE2b-256 checksum How to use checksums |
698670df9f149ee784017afa5bd4b053734d6abcea7d7118a921e055d4e46073
|
| 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 9, 2026.
Transparency logSecurity for qso-graph-lib 0.2.2
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.
Attestation for qso_graph_lib-0.2.2.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 9, 2026.
Transparency logA 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.