Skip to content

๐Ÿ™ Retrieve info from the GitHub API with Python

License

Notifications You must be signed in to change notification settings

yanndebray/github-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GitHub API ๐Ÿ™

Use Python to interact with the GitHub API.

pip install PyGithub

Timeline

Using the GraphQL API as the REST/Python API only goes back 90 days.

timeline

PyGitHub

from github import Github
g = Github()
repo = g.get_repo("yanndebray/matlab-with-python-book")
commits = repo.get_commits()
print(f"Repo {repo.name} has {len(list(commits))} commits")
for commit in commits:
    print(commit.commit.message)

GitHub Actions / Workflows

page build and deployment dynamic workflows

daily tech podcast scheduled workflows

Resources

About

๐Ÿ™ Retrieve info from the GitHub API with Python

Topics

Resources

License

Stars

Watchers

Forks