PyGitHub
文章图片
文章图片
文章图片
文章图片
文章图片
文章图片
文章图片
文章图片
PyGitHub is a Python library to access the GitHub API v3 and Github Enterprise API v3.
This library enables you to manage GitHub resources such as repositories, user profiles, and organizations in your Python applications.
Install
$pip installPyGithub
Simple Demo
from github import Github
# First create a Github instance:
# using username and password
g = Github("user", "password")
# or using an access token
g = Github("access_token")
# Github Enterprise with custom hostname
g = Github(base_url="https://{hostname}/api/v3", login_or_token="access_token")
# Then play with your Github objects:
for repo in g.get_user().get_repos():
print(repo.name)
Documentation
【python|python github api_PyGithub: PyGithub 是一个 Python 库,封装了 Github V3 API 的各种操作】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.
推荐阅读
- 大数据|什么是研发效能(为什么要关注研发效能)
- 机器学习|机器学习基础教程笔记---特征工程
- python|python数据结构-链表
- python|python 排序算法
- python|python 第7讲 面向对象
- 数据采集|python数据采集概述
- Python Scrapy 学习笔记
- 移动开发|想学编程语言,Python、JavaScript、Swift、Java如何选()
- Python会消亡吗()