2023-05-01 20:00:32 +09:00
|
|
|
import os
|
|
|
|
|
|
|
|
from pydantic import BaseSettings
|
|
|
|
|
|
|
|
|
|
|
|
class Settings(BaseSettings):
|
2023-05-11 19:01:07 +09:00
|
|
|
mdrs_client_config_dirname: str = "~/.mdrs-client"
|
|
|
|
mdrs_client_concurrent: int = 10
|
2023-05-01 20:00:32 +09:00
|
|
|
|
|
|
|
class Config:
|
|
|
|
env_file = ".env"
|
|
|
|
env_file_encoding = "utf-8"
|
|
|
|
|
|
|
|
|
|
|
|
settings = Settings()
|
|
|
|
|
2023-05-11 19:01:07 +09:00
|
|
|
CONCURRENT = settings.mdrs_client_concurrent
|
|
|
|
CONFIG_DIRNAME = os.path.realpath(os.path.expanduser(settings.mdrs_client_config_dirname))
|