-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper.py
More file actions
26 lines (18 loc) · 1.11 KB
/
helper.py
File metadata and controls
26 lines (18 loc) · 1.11 KB
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
# Add your utilities or helper functions to this file.
import os
from dotenv import load_dotenv, find_dotenv
# these expect to find a .env file at the directory above the lesson. # the format for that file is (without the comment) #API_KEYNAME=AStringThatIsTheLongAPIKeyFromSomeService
def load_env():
_ = load_dotenv(find_dotenv())
def get_gbq_uri():
return os.getenv('GBQ_URI')
def get_elementus_api_key():
return os.getenv('ELEMENTUS_API_KEY')
def get_openai_api_key():
return os.getenv('OPENAI_API_KEY')
def get_twitter_access_token():
return os.getenv('TWITTER_ACCESS_TOKEN')
def get_telegram_token():
return os.getenv('TELEGRAM_TOKEN')
def get_telegram_channel_id():
return os.getenv('TELEGRAM_CHANNEL_ID')