Constants API_DOMAIN = 'http://localhost:8000' module-attribute # get parent of current folder as root ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) DATA_DIR = Path(ROOT_PATH) / "data" DATA_DIR.mkdir(parents=True, exist_ok=True) API_DOMAIN = "http://localhost:8000"