Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/techytushar/githubapy

A Python package to interact with the GitHub API
https://github.com/techytushar/githubapy

github-api package python python3

Last synced: about 1 month ago
JSON representation

A Python package to interact with the GitHub API

Awesome Lists containing this project

README

        

Python package to easily use the GitHub API.

### Installation
Install using `pip3 install githubAPy`

### Usage
* Import the class
`from githubAPy import gapy`
* Create an object and pass the GitHub Access Token
`a = gapy('')`

Multiple actions are supported

* `a.me` return your information in dict (JSON) format.
* `a.user('')` return the information of a user.
* `a.create_fork('', '')` create a fork of the specified repository and returns url of the forked repository if fork successfully created else raises an error.
* `a.update_with_upstream('', '')` updates your forked repository master with the upstream master. Returns `True` if updated successfully else raises an error.

More feature to be added in later versions.