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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file qrzlib-0.3.0.tar.gz.

File metadata

  • Download URL: qrzlib-0.3.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for qrzlib-0.3.0.tar.gz
Algorithm Hash digest
SHA256 265b1796e27ca5a133e2f90e4dcc43d1a0f86b64f6ae66992bff09f12e98f803
MD5 dcf09905201f92457e52161facfe646c
BLAKE2b-256 004e97c30e4f03f5e8dbca37a6e6f1b6ba91f074ceef268f046bc196227d16c3

See more details on using hashes here.

File details

Details for the file qrzlib-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qrzlib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for qrzlib-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 530739cb0a29cddf3133454aa7967aeb84810b5d6f09b2600eacaa3a9da1e72e
MD5 be3bd6027df83d6722cabe3f10e7d3fa
BLAKE2b-256 34767121f46ffc0c220ff64423233bc21e91991ec31a4f953955119552c022d3

See more details on using hashes here.

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