A Library with Amateur Radio specific Functions and Methods
Find a file
2014-06-15 15:13:09 +07:00
docs improved documentation 2014-06-15 15:13:09 +07:00
pyhamtools Improved documentation 2014-06-15 14:06:17 +07:00
test Improved documentation 2014-06-15 14:06:17 +07:00
LICENSE Initial commit 2014-04-24 04:48:38 -07:00
README.md improved documentation 2014-06-15 15:13:09 +07:00
readthedocs-pip-requirements.txt changed to sphinxcontrib-napoleon and google style 2014-04-24 17:05:24 +02:00
setup.py Added Push to Redis and Redis as a LookupLib 2014-05-08 15:03:16 +02:00
tox.ini Added documentation for class Callinfo 2014-04-30 08:56:08 +02:00

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,

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.