Skip to main content

Convert ADIF ADI content to dictionary and vice versa

Project description

PyADIF-File

Python test & lint

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

PyADIF-File-0.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyADIF_File-0.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file PyADIF-File-0.4.tar.gz.

File metadata

  • Download URL: PyADIF-File-0.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for PyADIF-File-0.4.tar.gz
Algorithm Hash digest
SHA256 d3ef41378dccfc62d1d8f339e5300530b471848565f1ccc5706f5b0c4dee819d
MD5 f5e601abfc1836bc340c8f01580b783b
BLAKE2b-256 5b679d45642f9e1deac14bfb2657ede8e222d1f62586b79c12d0648c6a395eaa

See more details on using hashes here.

File details

Details for the file PyADIF_File-0.4-py3-none-any.whl.

File metadata

  • Download URL: PyADIF_File-0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for PyADIF_File-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1b367896f35c11e4e66a58a5c18a0f1fb23af956bf0952ee9db409a56fb99875
MD5 dfd0203574eebb6d9db4e483656a299a
BLAKE2b-256 6f4fcb986a8084fce595f8d49db4e670190b7178b34e65e48980653b03a8adab

See more details on using hashes here.

Supported by

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