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 pyadif-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.
Source Code
The source code is available at GitHub
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
Built Distribution
Hashes for PyADIF_File-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b367896f35c11e4e66a58a5c18a0f1fb23af956bf0952ee9db409a56fb99875 |
|
MD5 | dfd0203574eebb6d9db4e483656a299a |
|
BLAKE2b-256 | 6f4fcb986a8084fce595f8d49db4e670190b7178b34e65e48980653b03a8adab |