feat: 新增Notion自动化综合案例示例代码
This commit is contained in:
20
projects/notion-automator/pytion/settings.py
Normal file
20
projects/notion-automator/pytion/settings.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from pydantic import BaseSettings
|
||||
|
||||
load_dotenv()
|
||||
|
||||
__all__ = "settings"
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
|
||||
NOTION_TOKEN: str = os.getenv("NOTION_TOKEN", "")
|
||||
NOTION_DATABASE_ID: str = os.getenv("NOTION_DATABASE_ID", "")
|
||||
|
||||
PYTION_DEBUG: int = os.getenv("PYTION_DEBUG", 20)
|
||||
PYTION_LOG_FORMAT: str = "[{asctime}] [{levelname}] [{module}] - {message}"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user