adi_parser
This is a simple utility package, originally to parse .adi files from LoTW, but now from anywhere.
By default, adi_parser parses LoTW .adi arguments. You can optionally parse all arguments as a python dictionary.
Examples
Parsing in LoTW .adi format
from adi_parser import parse_adi
adi_header, qso_reports = parse_adi("path/to/your_data.adi")
Where adi_header: Header and qso_reports: list[QSOReport].
These are dataclasses, which are defined in adi_parser.dataclasses.
All dataclass values are assumed to be missing by default.
Both GRIDSQUARE and MY_GRIDSQUARE are converted to lat/lat with
maidenhead.
Parsing all arguments from a .adi
from adi_parser import parse_adi
result = parse_adi("path/to/your_data.adi", return_type=dict)
Where the result dictionary follows this format:
result = {
"header": {
"full_text": str,
"argument_1": str,
"argument_2": str,
...
},
"qso_reports": [
{
"full_text": str,
"argument_1": {
"value": str,
"length": int,
"type": str | None,
"comment": str | None,
},
"argument_2": {
...
},
...
},
...
]
}
Metadata
Release files for adi-parser 0.1.1
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 |
|---|---|---|---|---|
| adi_parser-0.1.1.tar.gz | 7.4 kB | Without provenance | Details for adi_parser-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adi_parser-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for adi_parser-0.1.1-py3-none-any.whl |
Total release size: 14.4 kB
Release files / adi_parser-0.1.1.tar.gz
| Download URL | adi_parser-0.1.1.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47225c34fc6a393ecda73b6e766d74832723351c7522c63ff3f9eb49f46c29bf
|
|
BLAKE2b-256 checksum How to use checksums |
f7048c210fe10fe462a0082ad9a2fc690e54933f63ffafb45c86676994314b03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / adi_parser-0.1.1-py3-none-any.whl
| Download URL | adi_parser-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c6cc3966531d938b0c13dbfc88c58190aa4accd02f0925cb855195f70d9dff8
|
|
BLAKE2b-256 checksum How to use checksums |
bb4a9f4828ad54bc7148d07076d7f459a621a61a27362c92bc952feba17ee7dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for adi-parser 0.1.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.
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.