mirror of
https://github.com/kennethreitz/python-github3.git
synced 2026-06-05 23:10:17 +00:00
basic
This commit is contained in:
+12
-5
@@ -7,12 +7,19 @@ This is going to be awesome.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dependencies
|
Usage
|
||||||
------------
|
-----
|
||||||
|
|
||||||
|
::
|
||||||
|
from github3 import github
|
||||||
|
|
||||||
|
github.login('username', 'password')
|
||||||
|
# optional
|
||||||
|
|
||||||
|
github.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- Requests
|
|
||||||
- AnyJSON
|
|
||||||
- OrderedDict
|
|
||||||
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
|
|||||||
+17
-3
@@ -9,8 +9,22 @@ This module contains the core GitHub 3 interface.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class GitHub(object):
|
from .api import API_URL
|
||||||
pass
|
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
|
|
||||||
|
class GitHub(object):
|
||||||
|
"""Central GitHub object."""
|
||||||
|
|
||||||
|
ratelimit = None
|
||||||
|
= None
|
||||||
|
|
||||||
|
def __init__(self, apiurl=API_URL):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def login(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
# Default instance
|
||||||
|
github = GitHub()
|
||||||
Reference in New Issue
Block a user