Skip to main content

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.5

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

Built distribution (wheel)

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

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

Download URL dxcty_parser-0.0.5-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e79a57b42d35a3dfaebefe24f1007619c2196b45c823418020f8281f771ba93d
BLAKE2b-256 checksum
How to use checksums
e5974ec96c4f0ce9c4984b763ba12096ac21b703f639c43323bf18d133505e13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for dxcty-parser 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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