Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PyGithub

> 开发工具
Open source

Typed interactions with the GitHub API v3

7.8K stars0 likes1 views
WebsiteGitHub

About

Typed interactions with the GitHub API v3

PyGitHub

PyGitHub is a Python library to access the GitHub REST API. This library enables you to manage GitHub resources such as repositories, user profiles, and organizations in your Python applications.

Install

bash
pip install PyGithub

Simple Demo

python
from github import Github

# Authentication is defined via github.Auth
from github import Auth

# using an access token
auth = Auth.Token("access_token")

# First create a Github instance:

# Public Web Github
g = Github(auth=auth)

# Github Enterprise with custom hostname
g = Github(base_url="https://{hostname}/api/v3", auth=auth)

# Then play with your Github objects:
for repo in g.get_user().get_repos():
    print(repo.name)

# To close connections after use
g.close()

Documentation

More information can be found on the PyGitHub documentation site.

Development

Contributing

Long-term discussion and bug reports are maintained via GitHub Issues. Code review is done via GitHub Pull Requests.

For more information read CONTRIBUTING.md.

Maintainership

We're actively seeking maintainers that will triage issues and pull requests and cut releases. If you work on a project that leverages PyGitHub and have a vested interest in keeping the code alive and well, send an email to someone in the MAINTAINERS file.

Issues· 408 open

View all issuesOpen on GitHub
  • #3050

    Top Issues Dashboard

    :star: top issues dashboardUpdated Oct 1, 2026
  • #3582

    Support uploading media attachments to issues, PRs, and comments

    Updated Sep 23, 2026
  • #3578

    Support Organization Roles

    Updated Sep 17, 2026
  • #3570

    Expose REST response metadata on PaginatedList

    Updated Sep 5, 2026
  • #3261

    PullRequest.delete_branch fails with AttributeError when branch is already deleted

    Updated Sep 1, 2026
  • #3569

    Add support for commit signature

    Updated Sep 1, 2026
  • #874

    PyGithub example usage

    good first issuehigh prioritydocumentationUpdated Sep 1, 2026
  • #3561

    Logging does not inherit the root logger's configuration

    Updated Aug 28, 2026
  • #3566

    Support checking and setting release immutability

    Updated Aug 28, 2026
  • #3549

    Allow a filter option to Repository.get_releases()

    Updated Aug 16, 2026

> Tags

Pythongithubgithub-apipygithubpython

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具