Skip to main content

API to access data from qrz.com.

Project description

qrzlib

Python interface to qrz.com

In order to use this interface you need to have a valid Ham radio license and a qrz.com account.

Usage

import qrzlib

qrz = qrzlib.QRZ()
qrz.authenticate('qrz-id', 'xmldata-key')
try:
	qrz.get_call('W6BSD')
	print(qrz.fullname, qrz.zip, qrz.latlon, qrz.grid, qrz.email)
except QRZ.NotFound as err:
	print(err)

On the first request the class QRZ get the data from the qrz web service. Then, by default, the information will be cached forever.

the object QRZ can also return all the fields as a dictionary of as a json object.

In [6]: qrz.to_dict()
Out[6]:
{'call': 'W6BSD',
 'aliases': 'KM6IGK',
 'dxcc': '291',
 'fname': 'Fred',
 . . .
 'ituzone': '6',
 'geoloc': 'user',
 'born': None}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qrzlib-0.3.0.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

qrzlib-0.3.0-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page