CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 24 Aug 2025 09:11:30 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091216205142
location: https://web.archive.org/web/20091216205142/https://github.com/ask/python-github2
server-timing: captures_list;dur=0.701000, exclusion.robots;dur=0.028236, exclusion.robots.policy;dur=0.010957, esindex;dur=0.009063, cdx.remote;dur=31.207466, LoadShardBlock;dur=202.806427, PetaboxLoader3.datanode;dur=84.501872, PetaboxLoader3.resolve;dur=25.107706
x-app-server: wwwb-app239
x-ts: 302
x-tr: 775
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app239; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 24 Aug 2025 09:11:31 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Wed, 16 Dec 2009 20:51:42 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "9f2658def6c1ba008135afab43526e77"
x-archive-orig-x-runtime: 132ms
x-archive-orig-content-length: 30934
x-archive-orig-set-cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 16 Dec 2009 20:51:42 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 16 Dec 2009 20:51:42 GMT", ; rel="memento"; datetime="Wed, 16 Dec 2009 20:51:42 GMT", ; rel="next memento"; datetime="Sun, 02 May 2010 23:58:00 GMT", ; rel="last memento"; datetime="Wed, 14 May 2025 22:18:22 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_13_20091216163416_crawl101_IndexOnly-c/52_13_20091216205023_crawl101.arc.gz
server-timing: captures_list;dur=0.399055, exclusion.robots;dur=0.015610, exclusion.robots.policy;dur=0.007045, esindex;dur=0.008338, cdx.remote;dur=6.458793, LoadShardBlock;dur=313.385172, PetaboxLoader3.datanode;dur=321.442388, load_resource;dur=158.552078, PetaboxLoader3.resolve;dur=115.835437
x-app-server: wwwb-app239
x-ts: 200
x-tr: 564
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
ask's python-github2 at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | github client in python, with issues support. edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/ask/python-github2.git
Give this clone URL to anyone.
git clone git://github.com/ask/python-github2.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:ask/python-github2.git
|
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Sat Apr 18 08:29:55 -0700 2009 | Initial commit [ask] |
![]() |
AUTHORS | Sat Apr 18 13:59:17 -0700 2009 | Added AUTHORS file. [Ask Solem] |
![]() |
README.rst | Fri Nov 13 03:33:01 -0800 2009 | Merge branch 'justquick/master' [ask] |
![]() |
github2/ | Mon Nov 23 18:20:56 -0800 2009 | Carry an explicit method so we can still POST e... [markpasc] |
![]() |
setup.py | Sat Apr 18 14:02:51 -0700 2009 | Renamed README.rst -> README [Ask Solem] |
README.rst
python-github2 - Github API v2 library for Python.
Authors: | Ask Solem (askh@opera.com) |
---|---|
Version: | 0.1.1 |
This is an experimental python library implementing all of the features available in version 2 of the Github API.
Note This software is not finished. And is likely to change in the near future.
Introduction
You should read the developer documentation for the Github API first.
Installation
You can install python-github2 either via the Python Package Index (PyPI) or from source.
To install using pip,:
$ pip install python-github2
To install using easy_install,:
$ easy_install python-github2
If you have downloaded a source tarball you can install it by doing the following,:
$ python setup.py build # python setup.py install # as root
Creating a request
>>> from github2.client import Github >>> github = Github(username="ask", api_token=".......")
Users
Searching
>>> results = github.users.search("foo")
Getting User Information
>>> user = github.users.show("ask") >>> user.name "Ask Solem"
Getting User Network
>>> github.users.followers("ask") ['greut', 'howiworkdaily', 'emanchado', 'webiest']>>> github.users.following("ask") ['sverrejoh', 'greut', 'jezdez', 'bradleywright', 'ericflo', 'howiworkdaily', 'emanchado', 'traviscline', 'russell']
Following Network
>>> github.users.follow("jezdez")>>> github.users.unfollow("jezdez")
Issues
List a Projects Issues
>>> github.issues.list("ask/chishop", state="open") >>> github.issues.list("ask/chishop", state="closed")
View an Issue
>>> issue = github.issues.show("ask/chishop", 1) >>> issue.title 'Should not be able to upload same version twice.'
Open and Close Issues
>>> new_issue = github.issues.open("ask/chishop", title="New bug", ... body="This is a test bug") >>> new_issue.number 2>>> github.issues.close("ask/chishop", new_issue.number)
Add and Remove Labels
>>> github.issues.add_label("ask/chishop", 2, "important")>>> github.issues.remove_label("ask/chishop", 2, "important")
Network
Network Meta
>>> github.get_network_meta("ask/chishop")
Network Data
>>> github.get_network_data("schacon/simplegit", ... nethash="fa8fe264b926cdebaab36420b6501bd74402a6ff")
Repository
Searching Repositories
>>> repositories = github.repos.search("django")
Show Repo Info
>>> repo = github.repos.show("schacon/grit") >>> repo.homepage "https://grit.rubyforge.org/"
List All Repositories
# By default lists all repos for the current user. >>> repos = github.repos.list()
>>> repos = github.repos.list("schacon")
Watching Repositories
>>> github.repos.watch("schacon/grit")>>> github.repos.unwatch("schacon/grit")
Forking Repositories
>>> fork = github.repos.fork("schacon/grit")
Creating and Deleting Repositories
>>> new_repo = github.repos.create(name, description, homepage, ... public=True)>>> github.repos.delete(name)
Repository Visibility
>>> github.repos.set_private("ask/chishop")>>> github.repos.set_public("ask/chishop")
Collaborators
>>> collabs = github.repos.list_collaborators("ask/chishop")>>> github.repos.add_collaborator("ask/chishop", "schacon")>>> github.repos.remove_collaborator("ask/chishop", "schacon")
Network
>>> github.repos.network("ask/chishop")
Repository Refs
Get a list of tags
>>> tags = github.repos.tags("ask/chishop")Get a list of remote branches
>>> branches = github.repos.branches("ask/chishop")
Commit
Listing Commits on a Branch
>>> commits = github.commits.list("mojombo/grit", "master")
Listing Commits for a File
>>> commits = github.commits.list("mojombo/grit", "master", ... file="grit.gemspec")
Showing a Specific Commit
>>> commit = github.commits.show("mojombo/grit", ... sha="5071bf9fbfb81778c456d62e111440fdc776f76c")
Object
Trees
>>> tree = github.get_tree(project, tree_sha)
Blobs
>>> blob = github.get_blob_info(project, tree_sha, path)
License
This software is licensed under the New BSD License. See the LICENSE file in the top distribution directory for the full license text.
This feature is coming soon. Sit tight!