2017-04-15 12:53:08 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-04-19 12:47:30 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
from __future__ import print_function
|
2017-04-15 12:53:08 +00:00
|
|
|
|
2017-04-12 14:42:04 +00:00
|
|
|
from collections import namedtuple
|
|
|
|
|
2017-04-18 14:16:24 +00:00
|
|
|
App = namedtuple('App', ['instance', 'base_url', 'client_id', 'client_secret'])
|
|
|
|
User = namedtuple('User', ['instance', 'username', 'access_token'])
|
2017-04-12 14:42:04 +00:00
|
|
|
|
|
|
|
DEFAULT_INSTANCE = 'mastodon.social'
|
|
|
|
|
2017-04-19 12:47:30 +00:00
|
|
|
CLIENT_NAME = 'toot - a Mastodon CLI client'
|
2017-04-16 12:14:33 +00:00
|
|
|
CLIENT_WEBSITE = 'https://github.com/ihabunek/toot'
|
2017-04-19 12:47:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ConsoleError(Exception):
|
|
|
|
pass
|