mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Publish version 0.7
This commit is contained in:
@@ -3,7 +3,7 @@ You obtain instances through calls to `get_` and `create_` methods.
|
||||
|
||||
Class `Github`
|
||||
==============
|
||||
* Constructed from user's login and password
|
||||
* Constructed from user's login and password or OAuth token
|
||||
* `get_user()`: `AuthenticatedUser`
|
||||
* `get_user( login )`: `NamedUser`
|
||||
* `get_organization( login )`: `Organization`
|
||||
|
||||
@@ -5,7 +5,7 @@ import textwrap
|
||||
|
||||
setup(
|
||||
name = 'PyGithub',
|
||||
version = '0.6',
|
||||
version = '0.7',
|
||||
description = 'Use the full Github API v3',
|
||||
author = 'Vincent Jacques',
|
||||
author_email = 'vincent@vincent-jacques.net',
|
||||
@@ -26,6 +26,14 @@ setup(
|
||||
print repo.name
|
||||
repo.edit( has_wiki = False )
|
||||
|
||||
You can also create a Github instance without authentication::
|
||||
|
||||
g = Github( "user", "password" )
|
||||
|
||||
Or with an OAuth token::
|
||||
|
||||
g = Github( token )
|
||||
|
||||
Reference documentation
|
||||
=======================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user