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

from github import Github
from todoist import TodoistAPI
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)