archive
/
actioner
Archived
1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
actioner/actioner/clients.py

14 lines
322 B
Python
Raw Permalink Normal View History

from github import Github
2019-02-14 20:27:09 +00:00
from todoist import TodoistAPI
2019-02-14 20:27:09 +00:00
from actioner.settings import GITHUB_TOKEN, TODOIST_TOKEN
github = Github(GITHUB_TOKEN)
def get_todoist_client():
"""
The Todoist client isn't thread safe, so we need to create it each time we want to use it
"""
return TodoistAPI(TODOIST_TOKEN)