blob: 4371bab173d95558b2293e96180b6e7df980c5cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from pathlib import Path
from pydantic_settings import BaseSettings
class Env(BaseSettings):
token: str
proxy: str | None = None
storage_path = Path("./storage/").absolute()
storage_path.mkdir(parents=True, exist_ok=True)
database_path = storage_path / "database.db"
database_url = f"sqlite+aiosqlite:///{database_path}"
__all__ = [
"database_path",
"database_url",
"Env",
]
|