https://github.com/yanndebray/github-api
🐙 Retrieve info from the GitHub API with Python
https://github.com/yanndebray/github-api
api github github-api python
Last synced: 10 months ago
JSON representation
🐙 Retrieve info from the GitHub API with Python
- Host: GitHub
- URL: https://github.com/yanndebray/github-api
- Owner: yanndebray
- License: mit
- Created: 2025-02-02T21:15:36.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-02T22:23:15.000Z (12 months ago)
- Last Synced: 2025-02-14T21:56:17.591Z (12 months ago)
- Topics: api, github, github-api, python
- Language: Jupyter Notebook
- Homepage:
- Size: 167 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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.

## PyGitHub
```python
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

daily tech podcast

## Resources
- [GitHub API v3](https://docs.github.com/en/rest)
- [GitHub API Tutorial - Youtube](https://www.youtube.com/watch?v=-kFyPaHNgXo&ab_channel=Andy%27sTechTutorials)
- [[Tutorial] - How to use GitHub REST API for Beginners - Youtube](https://www.youtube.com/watch?v=OvfLavRD1Os&ab_channel=Andy%27sTechTutorials)
- [github REST API v3 Crash Course with Vanilla Javascript (No dependencies) - Youtube](https://www.youtube.com/watch?v=5QlE6o-iYcE&ab_channel=HusseinNasser)