Skip to main content

ADIF Parser

A Python library for parsing ADIF (Amateur Data Interchange Format) files used in amateur radio.

What Does This Library Do?

adif_parser is a Python library that reads and parses ADIF files, converting them into structured data.

Installation

pip install adif-parser

Or install from source:

git clone https://github.com/0x9900/adif_parser.git
cd adif_parser
pip install .

Usage

Basic Example

from adif_parser import parse_adif

# Parse an ADIF file
with open('logbook.adi', 'r') as f:
    records = parse_adif(f)

# Iterate through contacts
for record in records:
    print(f"Callsign: {record.get('CALL')}")
    print(f"Date: {record.get('QSO_DATE')}")
    print(f"Time: {record.get('TIME_ON')}")
    print(f"Frequency: {record.get('FREQ')}")
    print(f"Mode: {record.get('MODE')}")
    print("---")

Common ADIF Fields

The parser extracts standard ADIF fields including:

  • CALL: Callsign contacted
  • QSO_DATE: Date of contact (YYYYMMDD)
  • TIME_ON: Start time of contact (HHMMSS)
  • BAND: Operating band (e.g., "20M", "40M")
  • FREQ: Operating frequency in MHz
  • MODE: Operating mode (e.g., "SSB", "CW", "FT8")
  • RST_SENT: Signal report sent
  • RST_RCVD: Signal report received
  • NAME: Name of operator contacted
  • QTH: Location of station contacted
  • GRIDSQUARE: Maidenhead grid square
  • COUNTRY: DXCC entity name
  • STATE: State/province
  • And many more defined in the ADIF specification

Use Cases

This library is useful for:

Example ADIF format:

<CALL:6>W1AW <QSO_DATE:8>20231015 <TIME_ON:6>143000 <BAND:3>20M <MODE:3>SSB <EOR>

License

See the LICENSE file in the repository for license information.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests on GitHub.

Support

For questions, bug reports, or feature requests, please open an issue on the GitHub repository.

Metadata

Release files for adif-parser 0.2.6

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

Source distribution (sdist)

Source distribution for adif-parser 0.2.6
File Size Uploaded Provenance Actions
adif_parser-0.2.6.tar.gz 6.2 kB Without provenance Details for adif_parser-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adif-parser 0.2.6
File Interpreter ABI Platform Actions
adif_parser-0.2.6-py3-none-any.whl Python 3 none any Details for adif_parser-0.2.6-py3-none-any.whl

Total release size: 12.6 kB

Release files / adif_parser-0.2.6.tar.gz

Download URL adif_parser-0.2.6.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c00adaa55b0e90d557d041f1eab7a12910465b39b54aab63a02aa0e0560ed7a
BLAKE2b-256 checksum
How to use checksums
9763cf83c2111d52905c7522d33c41f18bf040a4e7b0b6984b0a6b4acbe8b4a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / adif_parser-0.2.6-py3-none-any.whl

Download URL adif_parser-0.2.6-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc6ad7a419b59275c8723ef2f51c2266a6a48f30821e3fadc2e6df02af241e83
BLAKE2b-256 checksum
How to use checksums
af6ecde447fe39776dd524b87ab64984a8667b1536f5ec674fc3e758ed766c56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for adif-parser 0.2.6

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