An asynchronous Python library for interaction with GitHub's GraphQL API.
source | documentation
Warning
This installation may be unstable. If you're looking for a stable release, go here.
$ pip install --upgrade git+https://github.com/ShineyDev/github.git@dotcom
There is also a more in-depth installation guide in the documentation.
>>> import aiohttp
>>> import github
>>>
>>> session = aiohttp.ClientSession()
>>> client = github.Client(token="...", session=session)
>>>
>>> await client.request("{viewer{login}}")
{'viewer': {'login': 'nat'}}
There are also more in-depth usage guides in the documentation.