11 lines
330 B
Python
11 lines
330 B
Python
import yaml
|
|
from pathlib import Path
|
|
|
|
_cfg = yaml.safe_load(Path("config.yaml").read_text())
|
|
USERNAME: str = _cfg["username"]
|
|
PASSWORD: str = _cfg["password"]
|
|
BASE_URL: str = _cfg["base_url"].rstrip("/")
|
|
PORT: int = _cfg.get("port", 8000)
|
|
OUTPUTS = Path("outputs")
|
|
MTG_BACK = "https://https://cards.swolereport.com/card_back.jpg"
|