/github

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

Primary LanguagePythonApache License 2.0Apache-2.0

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

$ pip install --upgrade git+https://github.com/ShineyDev/github.git@dotcom

Use

>>> import aiohttp
>>> import github
>>>
>>> session = aiohttp.ClientSession()
>>> client = github.Client(token="...", session=session)
>>>
>>> await client.request("{viewer{login}}")
{'viewer': {'login': 'nat'}}
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.