Skip to content

Commit 8f2e4cd

Browse files
committed
create settings
1 parent 3afbe77 commit 8f2e4cd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/config.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from functools import lru_cache
2+
3+
from pydantic import BaseSettings
4+
5+
6+
class Settings(BaseSettings):
7+
BASECAMP_ACCOUNT_ID: str = 'bc-acc-id'
8+
BASECAMP_CHATBOT_KEY: str = 'bc-bot-key'
9+
10+
class Config:
11+
env_file = '.env'
12+
13+
14+
@lru_cache()
15+
def get_settings():
16+
return Settings()

0 commit comments

Comments
 (0)