mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-21 06:47:42 +00:00
23 lines
641 B
Python
23 lines
641 B
Python
from typing import Any
|
|
|
|
import diskcache
|
|
|
|
from providers.callsigndata.callsign_data_provider import CallsignDataProvider
|
|
|
|
|
|
class APIQueryCallsignDataProvider(CallsignDataProvider):
|
|
"""Generic callsign data provider class for providers that fetch their data from the web on-demand using an API."""
|
|
|
|
def __init__(self, name: str, provider_config: dict[str, Any], storage: diskcache.Cache) -> None:
|
|
"""Set up the provider."""
|
|
super().__init__(name, provider_config, storage)
|
|
|
|
if self.enabled:
|
|
self.status = "Ready"
|
|
|
|
def start(self) -> None:
|
|
pass
|
|
|
|
def stop(self) -> None:
|
|
pass
|