Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/techytushar/githubapy
- Owner: techytushar
- License: gpl-3.0
- Created: 2018-08-18T21:35:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-18T22:37:37.000Z (over 6 years ago)
- Last Synced: 2024-12-02T03:40:27.119Z (about 1 month ago)
- Topics: github-api, package, python, python3
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.