百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

PyGithub

> 开发工具
开源

与 GitHub API v3 的字符串交互

7.8K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

与 GitHub API v3 的字符串交互

PyGitHub PyGitHub 是一个 Python 库,用于访问 [GitHub REST API]。 该库使您可以在 Python 应用中管理 [GitHub] 资源,如仓库、用户配置文件和组织。 [GitHub REST API]: https://docs.github.com/en/rest [GitHub]: https://github.com ## 安装 ```bash

pip install PyGithub ## 简单示例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()

##

我们正在积极寻找维护者,他们将负责分类问题和拉取请求,并发布版本。如果您参与了利用 PyGitHub 的项目,并有兴趣保持代码的健康运行,请发送邮件给 MAINTAINERS 文件中的某人。

Issues· 408 开放

查看全部 Issues在 GitHub 打开
  • #3050

    顶级问题仪表板

    :star: top issues dashboard更新于 2026年10月1日
  • #3582

    支持将媒体附件上传到问题、修改请求和评论中

    更新于 2026年9月23日
  • #3578

    支持组织角色

    更新于 2026年9月17日
  • #3570

    在 PaginatedList 上展示 REST 响应元数据

    更新于 2026年9月5日
  • #3261

    当分支已被删除时,PullRequest.delete_branch 会出现 AttributeError 错误

    更新于 2026年9月1日
  • #3569

    添加对提交签名的支持

    更新于 2026年9月1日
  • #874

    PyGithub 示例使用

    good first issuehigh prioritydocumentation更新于 2026年9月1日
  • #3561

    日志记录不会继承根日志记录器的配置

    更新于 2026年8月28日
  • #3566

    支持检查和设置版本不可变性

    更新于 2026年8月28日
  • #3549

    为 Repository.get_releases() 添加过滤选项

    更新于 2026年8月16日

> 标签

Pythongithubgithub-apipygithubpython

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年10月1日
分类开发工具
定价开源

> 相关工具

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