This class provides a homogeneous interface to three different Amateur Radio Callsign lookup sources:
The class provides getters to access the data in a structured way. Even the interface is the same for all lookup sources, the returning data can be different. The documentation of the various methods provide more detail.
By default, LookupLib requires an Internet connection to download the libraries or perform the lookup against the Clublog API.
| Parameters: | lookuptype : str
apikey : str
filename : str, optional
logger : logging.getLogger(__name__), optional
|
|---|
Methods
Returns True if an operations is known as invalid
| Parameters: | callsign : string
timestamp : datetime, optional
|
|---|---|
| Returns: | bool :
|
| Raises: | NoResult :
APIKeyMissingError :
|
Notes
This method is available for:
Returns lookup data if an exception exists for a callsign
| Parameters: | callsign : string
timestamp : datetime, optional
|
|---|---|
| Returns: | dict :
|
| Raises: | NoResult :
APIKeyMissingError :
|
Notes
This method is available for:
Returns lookup data of a ADIF Entity
| Parameters: | entity : int
|
|---|---|
| Returns: | dict :
|
| Raises: | NoResult :
|
Notes
This method is available for:
Returns lookup data of a Prefix
| Parameters: | prefix : string
timestamp : datetime, optional
|
|---|---|
| Returns: | dict :
|
| Raises: | NoResult :
APIKeyMissingError :
|
Notes
This method is available for:
Returns a CQ Zone if an exception exists for the given callsign
| Parameters: | callsign : string
timestamp : datetime, optional
|
|---|---|
| Returns: | int :
|
| Raises: | NoResult :
APIKeyMissingError :
|
Notes
This method is available for: