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

iamjjintta-python/PyGitHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

PyGitHub

Simple GitHub API with Python

Install

$ pip install iamjjintta-pygithub

Example

from iamjjinta.github import GitHub
username = 'Your GitHub Username'
password = 'Your GitHub Password'
# GitHub Login
github = GitHub(username, password)
login = github.login()
print(login.status_code)
# Get Repository Content
owner = 'iamjjintta-python'
repo = 'PyGitHub'
branch = 'main'
path = '/iamjjintta/github.py'
source_code = github.get_content(owner, repo, branch, path)
print(source_code)

AltStyle によって変換されたページ (->オリジナル) /