iamjjintta-pygithub

Simple GitHub API with Python


Keywords
api, github, github-api, iam-jjintta, iamjjintta, pygithub, python, python-github, python3
License
Apache-2.0
Install
pip install iamjjintta-pygithub==0.0.1

Documentation

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)