Skip to main content

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,
 }

Metadata

Release files for qrzlib 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qrzlib 2.1.0
File Size Uploaded
qrzlib-2.1.0.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qrzlib 2.1.0
File Interpreter ABI Platform
qrzlib-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.9 kB

Release files / qrzlib-2.1.0.tar.gz

Download URL qrzlib-2.1.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
49fb6713794ef26b73a0dd3c025713476d7b831a8a2965e503741229ac285d68
BLAKE2b-256 checksum
How to use checksums
8066ab51350daa7b55f0548cba589acafe2b3b2cd250a192d3801049d7d226a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / qrzlib-2.1.0-py3-none-any.whl

Download URL qrzlib-2.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e22ed998a6e1f16197bc3addd66d7a9f52d6283dab88f50d37c9cb867f95bcf1
BLAKE2b-256 checksum
How to use checksums
d760b5dd9e4a2536fb19819cc6a24534eea3da799a668561269803a513b3eb0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

0.3.0

2 release files

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page