### Navigation

- index
- modules |
- PyQSO 0.2 documentation »

# pyqso package

## Submodules

## pyqso.adif module

class `pyqso.adif.``ADIF`

  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)

    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)

    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)

    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')

  Bases: `unittest.case.TestCase`

  The unit tests for the ADIF module.

  `setUp`()

    Set up the ADIF object needed for the unit tests.

  `test_adif_is_valid`()

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

  `test_adif_read`()

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

  `test_adif_read_alphabet`()

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

  `test_adif_read_capitalisation`()

    Check that the CALL field is capitalised correctly.

  `test_adif_read_header_only`()

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

  `test_adif_read_multiple`()

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

  `test_adif_read_no_header`()

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

  `test_adif_write`()

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

  `test_adif_write_sqlite3_Row`()

    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

### Navigation

- index
- modules |
- PyQSO 0.2 documentation »