Skip to content

Commit 36bbb39

Browse files
author
Kenneth Reitz
committed
github3.core
1 parent 189f99c commit 36bbb39

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

github3/core.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
3+
"""
4+
github3.core
5+
~~~~~~~~~~~~~
6+
7+
This module provides the base entrypoint for github3.
8+
"""
9+
10+
from .api import Github
11+
12+
def from_key(username, password):
13+
"""Returns an authenticated Github instance, via API Key."""
14+
15+
gh = Github()
16+
17+
# Login.
18+
gh.login(username, password)
19+
20+
return gh

0 commit comments

Comments
 (0)