import urllib as urllib_parse
from base64 import encodestring as encodebytes
+
class Auth(object):
"""
ABC for Authenticator objects.
by the authentication scheme in use."""
raise NotImplementedError()
+
class UserPassAuth(Auth):
"""
Basic auth authentication using email/username and
.encode('utf8')).strip(b'\n')
}
+
class NoAuth(Auth):
"""
No authentication authenticator.
def generate_headers(self):
return {}
+
+
+class MissingCredentialsError(Exception):
+ pass