An open API service indexing awesome lists of open source software.

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

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.

![timeline](img/timeline.png)

## 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
![dynamic workflows](img/action.png)

daily tech podcast
![scheduled workflows](img/action2.png)

## 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)