From 36bbb3980dad0c4a4ba1ac73754fbe08f81c6f00 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 Dec 2011 22:47:06 -0500 Subject: [PATCH] github3.core --- github3/core.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 github3/core.py diff --git a/github3/core.py b/github3/core.py new file mode 100644 index 0000000..ec95aa6 --- /dev/null +++ b/github3/core.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +""" +github3.core +~~~~~~~~~~~~~ + +This module provides the base entrypoint for github3. +""" + +from .api import Github + +def from_key(username, password): + """Returns an authenticated Github instance, via API Key.""" + + gh = Github() + + # Login. + gh.login(username, password) + + return gh