21 lines
641 B
Python
21 lines
641 B
Python
import pathlib
|
|
from dataclasses import dataclass
|
|
|
|
from money.currency import Currency
|
|
|
|
from xexe.rate_fetching import MockRateFetcher, XERateFetcher
|
|
|
|
DEFAULT_CURRENCIES = {Currency("EUR"), Currency("GBP"), Currency("USD")}
|
|
|
|
RATES_SOURCES = {"mock": MockRateFetcher, "xe": XERateFetcher}
|
|
|
|
DWH_SCHEMA = "sync_xedotcom_currency_rates"
|
|
DWH_TABLE = "exchange_rates"
|
|
|
|
|
|
@dataclass
|
|
class PATHS:
|
|
logging_file: pathlib.Path = pathlib.Path("xexe.log")
|
|
# Expand user is important. It will replace the user and give you the full
|
|
# path. Stuff breaks without it.
|
|
dot_env_file_path: pathlib.Path = pathlib.Path("~/.xexe/.env").expanduser()
|