mirror of
https://github.com/kennethreitz/python-github3.git
synced 2026-06-05 15:00:21 +00:00
github3.core
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user