Python wrapper for the github v3 api
Project description
Pygithub3
==========
Pygithub3 is a wrapper to the `Github API v3 <http://developer.github.com/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
"""
Achievements
-------------
- The core
- `User service <http://developer.github.com/v3/users/>`_
TODO
-----
- `Repo service <http://developer.github.com/v3/repos/>`_
- Docs
Contribute
-----------
1. Fork the `repository <https://github.com/copitux/python-github3>`_
2. Write a test to cover new feature or to reproduce bug
3. Code with `pep8 <http://www.python.org/dev/peps/pep-0008/>`_ rules
3. Push to ``develop`` branch
**Note**: I use `nose <http://readthedocs.org/docs/nose/en/latest/>`_ test environment. ``pip install nose``
==========
Pygithub3 is a wrapper to the `Github API v3 <http://developer.github.com/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
"""
Achievements
-------------
- The core
- `User service <http://developer.github.com/v3/users/>`_
TODO
-----
- `Repo service <http://developer.github.com/v3/repos/>`_
- Docs
Contribute
-----------
1. Fork the `repository <https://github.com/copitux/python-github3>`_
2. Write a test to cover new feature or to reproduce bug
3. Code with `pep8 <http://www.python.org/dev/peps/pep-0008/>`_ rules
3. Push to ``develop`` branch
**Note**: I use `nose <http://readthedocs.org/docs/nose/en/latest/>`_ 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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pygithub3-0.1-py2.7.egg
(36.8 kB
view details)
File details
Details for the file pygithub3-0.1.tar.gz.
File metadata
- Download URL: pygithub3-0.1.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ef9c540a8b7f1b36f5e22dffeccfed158c31d806031633ff4f6c9660d751bbf
|
|
| MD5 |
5e05f3aca68aff7a2bca942b270dab54
|
|
| BLAKE2b-256 |
bf5d397ca3c5cbc29d38b2c24fd6b2234d7a7b358b337f34d988d96a8d74b52d
|
File details
Details for the file pygithub3-0.1-py2.7.egg.
File metadata
- Download URL: pygithub3-0.1-py2.7.egg
- Upload date:
- Size: 36.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae15617f64af921d4717784f07c8fb26f462801a6622e6069156451227f2b698
|
|
| MD5 |
dadbbe8f18622fd7538a7e4742d0b310
|
|
| BLAKE2b-256 |
7a3be6417e449227999cf1f94dd17ac488e26c58bb93f6800d0d55b33d458cb7
|