Skip to content

ea1nk/hamradio-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert_cty_plist

Small utility to convert cty.plist into a JSON dictionary file (cty_dict.json).

Requirement

  • Python 3

Download cty.plist

  1. Open https://www.country-files.com/contest/
  2. In the side Contest menu, open the latest release announcement.
  3. In the Download section, download the plist file.
  4. If your browser shows the file instead of downloading it, use right click and save the link.
  5. Save it as cty.plist in the project root.

Usage

From the project root:

python3 convert_cty_plist.py

Expected output:

Conversion complete: cty_dict.json created.

What it does

  1. Reads cty.plist.
  2. Loads plist data as a dictionary structure.
  3. Writes cty_dict.json using UTF-8 and 2-space indentation.

Notes

  • The script does not take command line arguments.
  • Input/output names are fixed: cty.plist -> cty_dict.json.

Releases

No releases published

Packages

 
 
 

Contributors

Languages