feat: add configuration module with pydantic-settings
Made-with: Cursor
This commit is contained in:
14
src/ntr_fetcher/config.py
Normal file
14
src/ntr_fetcher/config.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = {"env_prefix": "NTR_"}
|
||||
|
||||
port: int = 8000
|
||||
host: str = "127.0.0.1"
|
||||
db_path: str = "./ntr_fetcher.db"
|
||||
poll_interval_seconds: int = 3600
|
||||
admin_token: str
|
||||
soundcloud_user: str = "nicktherat"
|
||||
show_day: int = 2
|
||||
show_hour: int = 22
|
||||
Reference in New Issue
Block a user