2021-03-31 16:08:41 +00:00
|
|
|
from typing import Dict
|
|
|
|
|
2021-01-25 16:28:59 +00:00
|
|
|
from structured_config import Structure, StrField
|
|
|
|
|
|
|
|
HAS_MODELS = False
|
|
|
|
|
|
|
|
|
|
|
|
class NetworkConfig(Structure):
|
|
|
|
ipinfoKey: str = StrField("")
|
2021-04-24 20:34:53 +00:00
|
|
|
geoapifyKey: str = StrField("")
|
2021-01-25 16:28:59 +00:00
|
|
|
|
|
|
|
|
2021-03-31 16:08:41 +00:00
|
|
|
extra: Dict[str, Dict] = {
|
2021-01-25 16:28:59 +00:00
|
|
|
"ipinfoKey": {
|
|
|
|
"type": str,
|
|
|
|
"description": "API Key for ipinfo.io (.iplocalise command)",
|
|
|
|
},
|
2021-04-24 20:34:53 +00:00
|
|
|
"geoapifyKey": {
|
|
|
|
"type": str,
|
|
|
|
"description": "API Key for geoapify.com (.iplocalise command)",
|
|
|
|
},
|
2021-01-25 16:28:59 +00:00
|
|
|
}
|