mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2025-12-06 06:52:00 +01:00
| docs | ||
| pyhamtools | ||
| test | ||
| LICENSE | ||
| README.md | ||
| readthedocs-pip-requirements.txt | ||
| setup.py | ||
| tox.ini | ||
pyhamtools
Pyhamtools is a set of Functions and classes for Amateur Radio software. Currently the core part is the Callsign Lookup which decodes any amateur radio callsign string and provides the corresponding information (Country, DXCC entity, CQ Zone...etc). This basic functionality is needed for Logbooks, DX-Clusters or Log Checking.
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 DX Cluster, performing several thousand lookups per day.
Documentation
Check out the full documentation at: PyHamTools.readthedocs.org
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
}
Testing
An extensive set of unit tests has been created for all Classes & Methods.