在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:khornberg/octokit.py开源软件地址:https://github.com/khornberg/octokit.py开源编程语言:Python 100.0%开源软件介绍:OverviewPython client for GitHub API InstallationNote octokit and octokit.py were already taken in the cheese shop pip install octokitpy Documentationhttps://octokitpy.readthedocs.io/en/latest/ ExamplesREST API: from octokit import Octokit repos = Octokit().repos.list_for_user(username="octokit") for repo in repos.json: print(repo["name"]) # Make an unauthenticated request for octokit's public repositories Webhooks: from octokit import webhook webhook.verify(headers, payload, secret, events=['push'])
Note that webhook names are available at AuthenticationInstantiate a client with the authentication scheme and credentials that you want to use. basic: octokit = Octokit(auth='basic', username='myuser', password='mypassword') token: response = Octokit(auth='token', token='yak').authorization.get(id=100) app: octokit = Octokit(auth='app', app_id='42', private_key=private_key) app installation: octokit = Octokit(auth='installation', app_id='42', private_key=private_key) For applications, provide the application id either from the ping webhook or the application's page on GitHub.
The API Schema/Routes/SpecificationsOne can instantiate the DataThe TODOsGitHub APIs[-] REST (see best practices, integration tests, and errors) [ ] GraphQL client [x] GitHub Apps [ ] OAuth Apps [x] Webhooks Tests[x] unit tests [ ] integration tests - need fixtures to assert against [x] coverage uploaded to code climate Errors[ ] Raise `OctokitValidationError` for param validation error [ ] Raise `OctokitAuthenticationError` for auth error [ ] Raise `OctokitRateLimitError` for rate limiting errors Best Practices[ ] throttling [ ] handles rate limiting [x] pagination Documentation[ ] Auto generated documentation Deployment[x] Deploy wheels [ ] GitHub releases Check box guide [ ] Incomplete [-] Partially completed [x] Completed DevelopmentTo run the all tests run: tox ContributingPull requests are very welcome! Please see CONTRIBUTING.md for more information. CreditsPackage based on cookiecutter-pylibrary LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论