Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The modern, all-batteries-included GitHub SDK for Python, including rest api, graphql, webhooks, like octokit!

License

NotificationsYou must be signed in to change notification settings

yanyongyu/githubkit

Repository files navigation

githubkit

licensepypipythonblackpyrightruffpre-commit

✨ The modern, all-batteries-included GitHub SDK for Python ✨

✨ Support bothsync andasync calls,fully typed

✨ Always up to date, like octokit ✨

Documentation |Report Bug |GitHub Docs

githubkit aims to be an easy-to-use, fully typed, and always up-to-date GitHub SDK for Python. It is inspired byoctokit.

githubkit provides several features including:

  • Support both sync and async calls
  • Multiple authentication ways and OAuth flow support
  • Calling REST API and GraphQL easily
  • REST API versioning, including GHEC
  • Built-in pagination support
  • Optional data validation withPydantic, for both webhook events and REST API responses
  • Built-in http cache (powered byHishel for HTTPX) and auto retry
  • Lazy loading of APIs and models
  • Fully typed APIs

Getting Started

For more, see thedocumentation.

Installation

Install githubkit with the package manager of your choice:

pip install githubkit# or, use poetrypoetry add githubkit# or, use pdmpdm add githubkit# or, use uvuv add githubkit

Usage

Create aPersonal Access Token (PAT) and use it to create aGitHub instance:

fromgithubkitimportGitHubgithub=GitHub("<your_token_here>")

Then, enjoy githubkit now!

fromgithubkitimportResponsefromgithubkit.versions.latest.modelsimportFullRepositoryresp:Response[FullRepository]=github.rest.repos.get("owner","repo")repo:FullRepository=resp.parsed_dataprint(repo.full_name)

Development

See thedevelopment in the contributing guide.

Contributors

Thanks to the following people who have contributed to this project:

contributors

About

The modern, all-batteries-included GitHub SDK for Python, including rest api, graphql, webhooks, like octokit!

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Contributors24

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp