Skip to main content

Python wrapper for the github v3 api

Project description


Pygithub3 is a wrapper to the `Github API v3 <>`_,
written in Python.

It has been developed with extensibility in mind, because the ``API`` is in a
beta state, trying to achieve a very loosly coupled software.

It should be very easy to extend to support new ``requests`` and ``resources``,
because each is managed by itself.

Fast install

pip install pygithub3

Fast example

from pygithub3.github import Github

gh = Github()
copitux = gh.users.get('copitux')
copitux_followers = gh.users.followers.list('copitux')
copitux_followers.all() # lazy iterator that must be consumed

gh.users.set_credentials(login='github_user', password='github_password')
# or: gh.users.set_token('token_code')
github_user = gh.users.get()
gh.users.followers.set_credentials(login='another_user', password='another_password')
another_user_followers = gh.users.followers.list().all()
""" Continue...
gh.users.emails.set_credentials( ...
github_user_emails = gh.users.emails.list()

Each service (users, emails, followers ...) is isolated from the rest. Maybe in
future releases the behaviour of Github component changes to share configuration


- The core
- `User service <>`_


- `Repo service <>`_
- Docs


1. Fork the `repository <>`_
2. Write a test to cover new feature or to reproduce bug
3. Code with `pep8 <>`_ rules
3. Push to ``develop`` branch

**Note**: I use `nose <>`_ test environment. ``pip install nose``

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygithub3-0.1.tar.gz (11.4 kB view hashes)

Uploaded source

Built Distribution

pygithub3-0.1-py2.7.egg (36.8 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page