From 0189aff9ba05e8a2954ca864c03a4de022f1ab5c Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 13 Apr 2011 18:38:32 -0400 Subject: basic --- README.rst | 17 ++++++++++++----- github3/core.py | 20 +++++++++++++++++--- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index dfd59ec..7958179 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/github3/core.py b/github3/core.py index 65b6ca0..383ab88 100644 --- a/github3/core.py +++ b/github3/core.py @@ -9,8 +9,22 @@ This module contains the core GitHub 3 interface. """ +from .api import API_URL + + + class GitHub(object): - pass + """Central GitHub object.""" + + ratelimit = None + = None + + def __init__(self, apiurl=API_URL): + pass + + def login(self): + pass + - def __init__(self): - pass \ No newline at end of file +# Default instance +github = GitHub() \ No newline at end of file -- cgit v1.3-8-gc7d7