Metadata-Version: 2.1
Name: PyADIF-File
Version: 0.2
Summary: Convert ADIF ADI content to dictionary and vice versa
Home-page: https://github.com/gitandy/PyADIF-File
Author: Andreas Schawo
Author-email: Andreas Schawo <andreas@schawo.de>
License: Copyright 2023 by Andreas Schawo,licensed under CC BY-SA 4.0
Project-URL: Homepage, https://github.com/gitandy/PyADIF-File
Project-URL: Bug Tracker, https://github.com/gitandy/PyADIF-File/issues
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Other Audience
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Communications :: Ham Radio
Classifier: Topic :: File Formats
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

PyADIF-File
===========
Convert ADIF ADI content 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 &copy; 2023 by Andreas Schawo is licensed under [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/) 
