pyqso package

Submodules

pyqso.adif module

class pyqso.adif.ADIF[source]

The ADIF class supplies methods for reading, parsing, and writing log files in the Amateur Data Interchange Format (ADIF). For more information, visit http://adif.org/

is_valid(field_name, data, data_type)[source]

Validate the data in a field (with name ‘field_name’) with respect to the ADIF specification. This method returns either True or False to indicate whether the data is valid or not.

read(path)[source]

Read an ADIF file with a specified path (given in the ‘path’ argument), and then parse it. The output is a list of dictionaries (one dictionary per QSO), with each dictionary containing field-value pairs, e.g. {FREQ:145.500, BAND:2M, MODE:FM}.

write(records, path)[source]

Write an ADIF file containing all the QSOs in the ‘records’ list. The desired path is specified in the ‘path’ argument. This method returns None.

class pyqso.adif.TestADIF(methodName='runTest')[source]

Bases: unittest.case.TestCase

The unit tests for the ADIF module.

setUp()[source]

Set up the ADIF object needed for the unit tests.

test_adif_is_valid()[source]

Check that ADIF field validation is working correctly for different data types.

test_adif_read()[source]

Check that a single ADIF record can be read and parsed correctly.

test_adif_read_alphabet()[source]

Check that none of the letters of the alphabet are ignored during parsing.

test_adif_read_capitalisation()[source]

Check that the CALL field is capitalised correctly.

test_adif_read_header_only()[source]

Check that no records are read in if the ADIF file only contains header information.

test_adif_read_multiple()[source]

Check that multiple ADIF records can be read and parsed correctly.

test_adif_read_no_header()[source]

Check that an ADIF file can be parsed with no header information.

test_adif_write()[source]

Check that records can be written to an ADIF file correctly.

test_adif_write_sqlite3_Row()[source]

Check that records can be written to an ADIF file from a test database file.

pyqso.auxiliary_dialogs module

pyqso.awards module

pyqso.callsign_lookup module

pyqso.dx_cluster module

pyqso.grey_line module

pyqso.log module

pyqso.log_name_dialog module

pyqso.logbook module

pyqso.menu module

pyqso.preferences_dialog module

pyqso.record_dialog module

pyqso.telnet_connection_dialog module

pyqso.toolbar module

pyqso.toolbox module

Module contents