reading and parsing Cabrillo log-file

Reading and parsing a Cabrillo log-file made easy using Python library cabrillo.

Link to github: https://github.com/thxo/cabrillo/tree/master

Install using pip install cabrillo

Note:
Watch out for suitable command line arguments to avoid runtime errors.
When importing N1MM cabrillo log files for example, N1MM uses e.g. “Category”, which is not compliant to the Cabrillo specification (latest: V3). Setting below to TRUE helps solve parsing issues.

def parse_log_text(text, ignore_unknown_key=TRUE, check_categories=True, ignore_order=False):


>>> from cabrillo.parser import parse_log_file
>>> cab = parse_log_file('tests/CQWPX.log')
>>> cab.callsign
'AA1ZZZ'
>>> cab.qso
[<cabrillo.qso.QSO object at 0x10cb09f28>, <cabrillo.qso.QSO object at 0x10cbc8860>]
>>> cab.text()
'START-OF-LOG: 3.0\nCREATED-BY: WriteLog V10.72C\nCALLSIGN: AA1ZZZ\n[...snip...]END-OF-LOG:\n'

Leave a comment