-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
23 lines (20 loc) · 1.02 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from dotenv import load_dotenv
from pydantic_settings import BaseSettings
import os
load_dotenv()
class Settings(BaseSettings):
MONGODB_URI: str = os.environ["MONGODB_URI"]
DATABASE_NAME: str = os.environ["DATABASE_NAME"]
MICROPUB_SECRET: str = os.environ["MICROPUB_SECRET"]
FQD: str = os.environ["FQD"]
S3_ACCESS_KEY: str = os.environ["S3_ACCESS_KEY"]
S3_SECRET_KEY: str = os.environ["S3_SECRET_KEY"]
S3_BUCKET_NAME: str = os.environ["S3_BUCKET_NAME"]
OPENAI_API_KEY: str | None = os.getenv("OPENAI_API_KEY")
SENTRY_DSN: str | None = os.getenv("SENTRY_DSN")
TWITTER_API_CONSUMER_KEY: str | None = os.getenv("TWITTER_API_CONSUMER_KEY")
TWITTER_API_CONSUMER_SECRET: str | None = os.getenv("TWITTER_API_CONSUMER_SECRET")
TWITTER_API_ACCESS_TOKEN: str | None = os.getenv("TWITTER_API_ACCESS_TOKEN")
TWITTER_API_ACCESS_TOKEN_SECRET: str | None = os.getenv("TWITTER_API_ACCESS_TOKEN_SECRET")
TWITTER_API_BEARER_TOKEN: str | None = os.getenv("TWITTER_API_BEARER_TOKEN")
settings = Settings()