Github library to interact with it's public API
Requirements:
------------------
- pytest: Uses pytest as the unit-testing framework. Install using
pip install pytest
. - requests: Uses requests for interacting with the various api urls.
How to use:
--------------
- Load Github Profile & Public Repo details of a user: Loading a github profile just needs a username to startwith. Here is a small demo with username demfier.
Type the following commands in python shell:
import gitpub
username = 'demfier'
profile = gitpub.Profile()
profile.load_gh_profile(username)
profile.get_public_repos()
- Run Tests: Just run the command
py.test -v
to see the test results.