-
Notifications
You must be signed in to change notification settings - Fork 1
/
globs.py
31 lines (23 loc) · 884 Bytes
/
globs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
from enum import Enum
API_KEY = os.getenv('GCP_TUBESCRAPER_API_KEY')
DB_PORT = 3306
DOWNLOAD_PATH = '~/Downloads'
MY_SQL_USER = os.getenv('AWS_MYSQL_MASTER_USER')
MY_SQL_PASSWORD = os.getenv('AWS_MYSQL_MASTER_PASSWORD')
MY_SQL_HOST = os.getenv('AWS_MYSQL_HOST')
MY_SQL_DATABASE = 'tubescraper'
MY_SQL_YOUTUBER_TABLE_NAME = 'youtuber'
MY_SQL_VIDEOS_TABLE_NAME = 'videos'
S3_ACCESS_KEY_ID = os.getenv('S3_ACCESS_KEY_ID')
SECRET_ACCESS_KEY = os.getenv('SECRET_ACCESS_KEY')
BUCKET_NAME = os.getenv('BUCKET_NAME')
MONGO_DB_NAME = 'tubescraper_db'
MONGO_DB_COLLECTION_NAME = 'comments_collection'
MONGO_CONNECTION_STRING = os.getenv('MONGO_CONNECTION_STRING')
# Flag to disable Cloud Database for cost saving mode
ENABLE_CLOUD_DB = os.getenv('ENABLE_CLOUD_DB')
MAINTENANCE_MODE = os.getenv('MAINTENANCE_MODE')
class STATUS(Enum):
FAIL = 'fail'
SUCCESS = 'success'