kpinquan commited on
Commit
062a212
·
verified ·
1 Parent(s): 74240ef

Upload config.py

Browse files
Files changed (1) hide show
  1. config.py +22 -0
config.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import logging
2
+ from pydantic_settings import BaseSettings
3
+
4
+ logging.basicConfig(
5
+ format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
6
+ )
7
+
8
+ _logger = logging.getLogger(__name__)
9
+ _logger.setLevel(logging.INFO)
10
+
11
+
12
+ class Settings(BaseSettings):
13
+ proxy_url: str = "http://localhost:8787"
14
+ port: int = 8025
15
+ imap_port: int = 11143
16
+ basic_password: str = ""
17
+
18
+ class Config:
19
+ env_file = ".env"
20
+
21
+
22
+ settings = Settings()