Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 2.58 KB

README.rst

File metadata and controls

56 lines (34 loc) · 2.58 KB

Analyze Status Build Status Check Status Deploy Status Lint Status


ShineyDev/github

An asynchronous Python library for interaction with GitHub's GraphQL API.
source | documentation

Install

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.

Use

>>> 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.

Copyright 2019-present ShineyDev
This repository is not endorsed by or affiliated with GitHub Inc. or its affiliates. "GitHub" is a registered trademark of GitHub Inc.