Skip to main content

Convert ADIF ADI content to dictionary and vice versa

Project description

PyADIF-File

Convert ADIF ADI content (ham radio QSO logs) to dictionary and vice versa

The required/resulting dictionary format is

{
    'HEADER': 
        {Header param: Value,
         'USERDEFS': [list of user definitions]},
    'RECORDS': [list of records]
}

The header or each record is/must be a dictionary in the format

{
    ADIF parameter name: Text value,
}

A user definition is a dictionary of

{
    'dtype': one char representing the type,
    'userdef': the field definition text
}

You have to care about reading/writing the content from/to the file.

Installation

The package is available via PyPI

pip install adif-file

Exporting ADI

If an empty header is provided, the fields are generated with suiting defaults. Missing header fields are inserted.

Empty record fields and records are not exported at all.

*_INTL fields are not exported (see ADIF specification). If non ASCII characters are used the API raises an Exception.

Copyright

DragonLog © 2023 by Andreas Schawo is licensed under CC BY-SA 4.0

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

PyADIF-File-0.3.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

PyADIF_File-0.3-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

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