We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 189f99c commit 36bbb39Copy full SHA for 36bbb39
1 file changed
github3/core.py
@@ -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