Skip to main content

cty_parser

Parse cty.dat (the AD1C "country file") and resolve amateur radio callsigns to DXCC entities — country, CQ zone, ITU zone, continent, lat/long, and GMT offset.

Usage

from cty_parser import load_cty

table = load_cty()  # build once, reuse for many lookups

result = table.lookup("W1AW")
print(result.entity.country, result.entity.cq_zone)

CLI

python cty_parser.py W1AW KM6ETX

Requirements

Python 3.10+, standard library only.

Metadata

Release files for dxcty-parser 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dxcty-parser 0.0.2
File Size Uploaded
dxcty_parser-0.0.2.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dxcty-parser 0.0.2
File Interpreter ABI Platform
dxcty_parser-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / dxcty_parser-0.0.2.tar.gz

Download URL dxcty_parser-0.0.2.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
17c7c183f0319560c4f583318a71b5656b8b82d8b6ca2586292b6d1e9c9bba1c
BLAKE2b-256 checksum
How to use checksums
a29641c27a58578f4213d27f037d690f566fe5064789fdd5922f99148d8087bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / dxcty_parser-0.0.2-py3-none-any.whl

Download URL dxcty_parser-0.0.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f70471b97fb9f50af2966049e65fdfcdda105d81c862b82a55b5145f88545b9
BLAKE2b-256 checksum
How to use checksums
9ca8bddb5c174a4df0c7852d9183f288345ede7c6c656ea84fb53a46723efb87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.0.4

1 release file

0.0.3

2 release files

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page