Moved printing into its own separate project called frank. It also has its own toml and deployement system.
It also works on a raspberry pi
This commit is contained in:
16
frank/config.py
Normal file
16
frank/config.py
Normal file
@ -0,0 +1,16 @@
|
||||
from dotenv import load_dotenv
|
||||
from pydantic import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
REDIS_HOST: str = "127.0.0.1"
|
||||
REDIS_PORT: int = 6379
|
||||
QUEUE_NAME: str = "arq:queue"
|
||||
|
||||
class Config:
|
||||
case_sensitive = True
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
load_dotenv()
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user