-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME
43 lines (29 loc) · 996 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ShineyDev/github
================
An asynchronous Python library for interaction with GitHub's GraphQL API.
source: https://github.com/ShineyDev/github
documentation: https://docs.shiney.dev/github
Install
-------
Warning: This installation may be unstable. If you're looking for a stable release, see
https://github.com/ShineyDev/github/tags.
```shell
python -m pip install --upgrade git+https://github.com/ShineyDev/github.git@dotcom
```
There is also a more in-depth installation guide in the documentation.
Use
---
```python
>>> 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 (c) 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.