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:
	call_info = qrz.get_call('W6BSD')
	print(call_info.fullname, call_info.latlon, call_info.grid, call_info.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.

>>> call_info.to_dict()
{'CLASS': 'E',
 'call': 'W6BSD',
 'aliases': 'KM6IGK',
 'dxcc': 291,
 'fname': 'Fred',
 'ccode': 271,
 'lat': 37.460659,
 'lon': -95.543333,
 'grid': 'EM27fl',
 . . .
 'expdate': datetime.date(2027, 3, 3),
 'cqzone': 3,
 'ituzone': 6,
 }

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-2.0.6.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qrzlib-2.0.6-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qrzlib-2.0.6.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for qrzlib-2.0.6.tar.gz
Algorithm Hash digest
SHA256 9976f3ab2958c88f916b2a58996a3798cba749f17d2217cc64f111ea243b1eb2
MD5 e2de0d37d83824a379abe8e92ab2c149
BLAKE2b-256 636a401a79980e5aaa04eab8f0706ba1a58ab5acd41ff6a07e35e41439cbc73a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qrzlib-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for qrzlib-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 61f8ddb06363eed22b98f213d57f26978fc6afd0708816fb75c770f581270452
MD5 c3f3646799a65e904a3053578581c719
BLAKE2b-256 7c390d19ee84b284d2d2de6459701e328e816091c8762d3875007606547ee1d1

See more details on using hashes here.

Supported by

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