mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2025-12-06 06:52:00 +01:00
1.2 KiB
1.2 KiB
pyhamtools
A Library with Amateur Radio specific Functions and Classes for any kind of Callsign Lookup Service, e.g. Logbooks or DX-Clusters. Currently,
- Country-Files.org,
- Clublog Prefixes & Exceptions XML File
- Clublog DXCC Query API
- Redis.io are supported sources. All services can be accessed through a unified interface.
This Library is used in production at DxHeat.com.
Installation
Easiest way to install pyhamtools is through the packet manager PIP: `pip install pyhamtools'
How to use pyhamtools
>>> from pyhamtools import LookupLib, Callinfo
>>> my_lookuplib = LookupLib(lookuptype="countryfile")
>>> cic = Callinfo(my_lookuplib)
>>> cic.get_all("DH1TW")
{
'country': 'Fed. Rep. of Germany',
'adif': 230,
'continent': 'EU',
'latitude': 51.0,
'longitude': -10.0,
'cqz': 14,
'ituz': 28
}
Check out the full documentation at: PyHamTools.readthedocs.org