github.py
An asynchronous Python wrapper for GitHub API, v4.
Features
- Easy to use, modern Pythonic API using
async/awaitsyntax. - 100% coverage of the supported GitHub API.
- All user-facing objects and methods are documented here.
Installation
Python 3.5.2 or higher is required.
To install a final version of the wrapper do one of the following:
# Windows
py -3 -m pip install --upgrade github.py
# Linux / OS X
python3 -m pip install --upgrade github.pyTo install the development version of the wrapper do one of the following:
# Windows
py -3 -m pip install --upgrade git+https://github.com/ShineyDev/github.py
# Linux / OS X
python3 -m pip install --upgrade git+https://github.com/ShineyDev/github.pyExamples
Fetch a repository's license:
import github
g = github.Client("token")
# you'll need a personal access token to use this library - you can get
# one from https://github.com/settings/tokens.
repo = await g.fetch_repository("ShineyDev", "github.py")
print(repo.license.name)You can find more examples in the examples directory.
Attribution
Rapptz for EnumMeta - Copyright (c) 2015-2019 Rapptz