Small utility to convert cty.plist into a JSON dictionary file (cty_dict.json).
- Python 3
- Open https://www.country-files.com/contest/
- In the side Contest menu, open the latest release announcement.
- In the Download section, download the plist file.
- If your browser shows the file instead of downloading it, use right click and save the link.
- Save it as
cty.plistin the project root.
From the project root:
python3 convert_cty_plist.pyExpected output:
Conversion complete: cty_dict.json created.
- Reads
cty.plist. - Loads plist data as a dictionary structure.
- Writes
cty_dict.jsonusing UTF-8 and 2-space indentation.
- The script does not take command line arguments.
- Input/output names are fixed:
cty.plist->cty_dict.json.