hamkit.itu
A simple library to work with ITU call sign prefixes
pip install hamkit-itu
call_sign_to_country
To determine which country likely issued a call sign, you can do:
from hamkit.itu import call_sign_to_country
print(call_sign_to_country("KK7CMT"))
which will output:
ItuPrefix(prefix='K', country_name='United States', country_code='US')
country_to_prefixes
Likewise, to determine which prefixes a country may use, you can do:
from hamkit.itu import country_to_prefixes
print(country_to_prefixes("US"))
which will output:
[
ItuPrefix(prefix='AA', country_name='United States', country_code='US'),
ItuPrefix(prefix='AB', country_name='United States', country_code='US'),
ItuPrefix(prefix='AC', country_name='United States', country_code='US'),
ItuPrefix(prefix='AD', country_name='United States', country_code='US'),
ItuPrefix(prefix='AE', country_name='United States', country_code='US'),
ItuPrefix(prefix='AF', country_name='United States', country_code='US'),
ItuPrefix(prefix='AG', country_name='United States', country_code='US'),
ItuPrefix(prefix='AH', country_name='United States', country_code='US'),
ItuPrefix(prefix='AI', country_name='United States', country_code='US'),
ItuPrefix(prefix='AJ', country_name='United States', country_code='US'),
ItuPrefix(prefix='AK', country_name='United States', country_code='US'),
ItuPrefix(prefix='AL', country_name='United States', country_code='US'),
ItuPrefix(prefix='K', country_name='United States', country_code='US'),
ItuPrefix(prefix='N', country_name='United States', country_code='US'),
ItuPrefix(prefix='W', country_name='United States', country_code='US')
]
prefix_to_countries
Likewise, to determine which countries might correspond to a given prefix, do:
from hamkit.itu import prefix_to_countries
print(prefix_to_countries("HB"))
which will produce:
[
ItuPrefix(prefix='HB3Y', country_name='Liechtenstein', country_code='LI'),
ItuPrefix(prefix='HB0', country_name='Liechtenstein', country_code='LI'),
ItuPrefix(prefix='HBL', country_name='Liechtenstein', country_code='LI'),
ItuPrefix(prefix='HB', country_name='Switzerland', country_code='CH')
]
License
hamkit-itu is distributed under the terms of the MIT license.
Metadata
Release files for hamkit-itu 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hamkit_itu-0.0.1.tar.gz | 9.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hamkit_itu-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / hamkit_itu-0.0.1.tar.gz
| Download URL | hamkit_itu-0.0.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
053d0cfc3d902d2e34d157174f39aab9b5007ea44b4f84554fb53938c26bae55
|
|
BLAKE2b-256 checksum How to use checksums |
205e294cd16a3a4bb739ed740a3bbdb1fbce447e2b729818f8323a2f74f96435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"6.18.54.1-microsoft-standard-WSL2"}} HTTPX2/2.13.1
|
Release files / hamkit_itu-0.0.1-py3-none-any.whl
| Download URL | hamkit_itu-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ef14054831240333a228f87e0f46a1701f51db18e47e1060910d910c292e37d
|
|
BLAKE2b-256 checksum How to use checksums |
dc9a0bd04523b319363548aacfac22468d22643615dd437864966b51848088d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"6.18.54.1-microsoft-standard-WSL2"}} HTTPX2/2.13.1
|
Security for hamkit-itu 0.0.1
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.