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)
| File | Size | Uploaded | |
|---|---|---|---|
| qrzlib-2.1.0.tar.gz | 18.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|