dxcty_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 dxcty_parser import load_cty
>>> table = load_cty() # build once, reuse for many lookups
>>> result = table.lookup("W1AW")
>>> print(f'Result: {result.entity.country}, {result.entity.itu_zone}')
Result: United States, 8
CLI
This is intended to be used as a library. The CLI is just for testing purpose.
% dxcty_parser W1AW KM6ETX
W1AW: United States (K) CQ=5 ITU=8 Cont=NA GMT=-5.0 Latitude=42.38, Longitude=71.65
KM6ETX: United States (K) CQ=3 ITU=6 Cont=NA GMT=-8.0 Latitude=35.48, Longitude=119.35
Requirements
Python 3.10+, standard library only.
Metadata
Release files for dxcty-parser 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dxcty_parser-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / dxcty_parser-0.0.4-py3-none-any.whl
| Download URL | dxcty_parser-0.0.4-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98d3f139b4bdbf87cc0959ac753daeb5ca7a2c3192ce5f037baf37bf5ccd7929
|
|
BLAKE2b-256 checksum How to use checksums |
5bff20e5850af5f148ae98cf51172c977efe5eed157c0fcce55b353ec088f4b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|