Download Backend/config.py from DevDoCode/stremio: direct link, hf CLI and curl.
- Browser
- Download file 928 Bytes
-
https://huggingface.co/spaces/DevDoCode/stremio/resolve/f1ea5bef5fa2dea666bd5e3577ff3e364cd2306a/Backend/config.py
- Command line
-
hf download hf://spaces/DevDoCode/stremio@f1ea5bef5fa2dea666bd5e3577ff3e364cd2306a/Backend/config.py
-
curl -L -o config.py https://huggingface.co/spaces/DevDoCode/stremio/resolve/f1ea5bef5fa2dea666bd5e3577ff3e364cd2306a/Backend/config.py
928 Bytes
| from os import getenv, path | |
| from dotenv import load_dotenv | |
| load_dotenv(path.join(path.dirname(path.dirname(__file__)), "config.env")) | |
| class Telegram: | |
| API_ID = int(getenv("API_ID", "0")) | |
| API_HASH = getenv("API_HASH", "") | |
| BOT_TOKEN = getenv("BOT_TOKEN", "") | |
| HELPER_BOT_TOKEN = getenv("HELPER_BOT_TOKEN", "") | |
| BASE_URL = getenv("BASE_URL", "").rstrip('/') | |
| PORT = int(getenv("PORT", "8000")) | |
| AUTH_CHANNEL = [channel.strip() for channel in (getenv("AUTH_CHANNEL") or "").split(",") if channel.strip()] | |
| DATABASE = [db.strip() for db in (getenv("DATABASE") or "").split(",") if db.strip()] | |
| TMDB_API = getenv("TMDB_API", "") | |
| UPSTREAM_REPO = getenv("UPSTREAM_REPO", "") | |
| UPSTREAM_BRANCH = getenv("UPSTREAM_BRANCH", "") | |
| OWNER_ID = int(getenv("OWNER_ID", "5422223708")) | |
| ADMIN_USERNAME = getenv("ADMIN_USERNAME", "fyvio") | |
| ADMIN_PASSWORD = getenv("ADMIN_PASSWORD", "fyvio") | |