hamkit.uls
A simple library to work with a local copy of the FCC ULS database
pip install hamkit-uls
Download the ULS data, and load it into a sqlite database
At present, the library is mainly only useful for downloading and parsing the FCC ULS database (from their weekly database dumps), loading it into a sqlite database, and retrieving information about call signs. Here is an example, showing these operations:
import os
import logging
from hamkit.uls import ULS
logging.basicConfig(level=logging.DEBUG)
# Download the database, if not already present
db_file = "uls.db"
if not os.path.isfile(db_file):
ULS.download("uls.db")
# Query information about a callsign
uls = ULS(db_file)
print(uls.call_sign_lookup("kk7cmt"))
which will output the following:
UlsRecord(service='AMAT', unique_id='12345678', uls_file_number='', call_sign='KK7CMT', entity_type='L', entity_name='Fourney, Adam', first_name='Adam', middle_initial='', last_name='Fourney', street_address='1234 Streetname ST', city='Cityname', state='WA', zip_code='12345', status_code='', status_date='', linked_call_sign='', operator_class='T', group_code='D', region_code='7')
In general, the operation is straightforward enough, but ULS.download() has numerous options, as per the following docstring:
"""
Download the amateur and/or GMRS license data from the FCC, and load
it into a local sqlite database.
Parameters:
db_filename: The location of the sqlite database to create.
overwrite: If true, overwrite any existing file (Default: False)
amat_uri: The URI from where to download amateur radio license data.
Set to None to skip downloading amateur radio data.
(Default: ULS_AMAT_URI)
gmrs_uri: The URI from where to download GMRS license data.
Set to None to skip downloading GMRS data.
(Default: ULS_GMRS_URI)
"""
License
hamkit-uls is distributed under the terms of the MIT license.
Metadata
Release files for hamkit-uls 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hamkit_uls-0.0.1.tar.gz | 8.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hamkit_uls-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.1 kB
Release files / hamkit_uls-0.0.1.tar.gz
| Download URL | hamkit_uls-0.0.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b45afa98351bae69ec0ade0d17f5eef5cd117fb6d20fa8e15eca7d87e4a5ed81
|
|
BLAKE2b-256 checksum How to use checksums |
3ebdc85a88d40b4df21faceb96ea77fad55b401d3abaa6d7e8f44130f33724b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"6.18.54.1-microsoft-standard-WSL2"}} HTTPX2/2.13.1
|
Release files / hamkit_uls-0.0.1-py3-none-any.whl
| Download URL | hamkit_uls-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
789d706532391acff7ecbc79c25cd17f94a44eccc60f982583f361cd2b11fc46
|
|
BLAKE2b-256 checksum How to use checksums |
c6dbfad576e5c24e77e96e002dc107add4ee0fe5ff172ebf03af246389d4696d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"resolute","libc":{"lib":"glibc","version":"2.43"},"name":"Ubuntu","version":"26.04"},"implementation":{"name":"CPython","version":"3.14.4"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.5.5 27 Jan 2026","python":"3.14.4","system":{"name":"Linux","release":"6.18.54.1-microsoft-standard-WSL2"}} HTTPX2/2.13.1
|
Security for hamkit-uls 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.