AIOGitHubAPI
Asynchronous Python client for the GitHub API
This is not a full client for the API (Have you seen it, it's huge), and will probably never be. Things are added when needed.
For examples on how to use it see the documentation and/or the tests dir.
Install
python3 -m pip install -U aiogithubapiAdd Data Objects
Currently this will only work properly on single GET responses, if the sample response is a list, just use the first dict in the list
- Find the response you want from https://docs.github.com/en/rest/reference
- Find the URL directly to the correct section (like https://docs.github.com/en/rest/reference/issues#get-a-label)
- Expand the "Default response" section, and copy the contents to
generate/input.json - Run
python generate/genreate.py && black .- You will be asked for the URL, laste the link you found in step 2.
- You will be asked for the main class name, use something that make sense.
Examples:
issues#get-a-labelWould beIssuesLabelprojects#get-a-project-cardWould beProjectCardpulls#get-a-pull-requestWould bePullRequestrepos#get-a-branchWould beReposBranch