Skip to main content

A simple parser library.

Project description

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.

Links

Support

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adif_parser-0.1.5.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adif_parser-0.1.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file adif_parser-0.1.5.tar.gz.

File metadata

  • Download URL: adif_parser-0.1.5.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for adif_parser-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0b57966bafd7d7edb66eefc6364563e586aff585a8cbd3aa4bd7103596833e87
MD5 8e8dda2fda93530429b9f28cf5625525
BLAKE2b-256 f75e028727101969c4134124e8f7bf56f37010c9ad6fadd13f78ef9a1086647c

See more details on using hashes here.

File details

Details for the file adif_parser-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: adif_parser-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for adif_parser-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4f497cb4200274e6fb91826bf4c8f84a6a24b4fdb3b5a3bdc1f3f36ebb9e1f54
MD5 dbb9c94db8b01e80b87adf8323304c6a
BLAKE2b-256 3f0abe25f66b2d6d5a484541d4edbc74e3c0a1a4828769ed54134faa05270b2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page