-
Notifications
You must be signed in to change notification settings - Fork 0
/
caches.py
67 lines (56 loc) · 2.38 KB
/
caches.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import os
import dotenv
dotenv.load_dotenv('.env')
# Environment Variables
api_token = os.getenv('TELEGRAM_BOT_API_KEY')
google_cloud_project_id = os.getenv('GOOGLE_CLOUD_PROJECT_ID')
firebase_api_key = os.getenv('FIREBASE_API_KEY')
firebase_database_url = os.getenv('FIREBASE_DATABASE_URL')
firebase_private_key_id = os.getenv('FIREBASE_PRIVATE_KEY_ID')
firebase_private_key = os.getenv('FIREBASE_PRIVATE_KEY').replace('\\n', '\n')
firebase_client_email = os.getenv('FIREBASE_CLIENT_EMAIL')
firebase_client_id = os.getenv('FIREBASE_CLIENT_ID')
firebase_client_x509_cert_url = os.getenv("FIREBASE_CLIENT_X509_CERT_URL")
schedule_gsheet_id = os.getenv('SCHEDULE_GSHEET_ID')
schedule_private_key_id = os.getenv('SCHEDULE_PRIVATE_KEY_ID')
schedule_private_key = os.getenv('SCHEDULE_PRIVATE_KEY').replace('\\n', '\n')
schedule_client_email = os.getenv('SCHEDULE_CLIENT_EMAIL')
schedule_client_id = os.getenv('SCHEDULE_CLIENT_ID')
schedule_client_x509_cert_url = os.getenv("SCHEDULE_CLIENT_X509_CERT_URL")
utownfbs_username = os.getenv('UTOWNFBS_USERNAME')
utownfbs_password = os.getenv('UTOWNFBS_PASSWORD')
# Firebase Service Account Config
firebase_config = {
"type": "service_account",
"project_id": google_cloud_project_id,
"private_key_id": firebase_private_key_id,
"private_key": firebase_private_key,
"client_email": firebase_client_email,
"client_id": firebase_client_id,
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": firebase_client_x509_cert_url,
"universe_domain": "googleapis.com"
}
# Google Sheet Service Account Config
schedule_credentials = {
"type": "service_account",
"project_id": google_cloud_project_id,
"private_key_id": schedule_private_key_id,
"private_key": schedule_private_key,
"client_email": schedule_client_email,
"client_id": schedule_client_id,
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": schedule_client_x509_cert_url,
"universe_domain": "googleapis.com"
}
#UTownFBS Portal Login
utownfbs_login = {
"username": utownfbs_username,
"password": utownfbs_password
}
# Email sending
resend_api_key = os.environ["RESEND_API_KEY"]