Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework to use PyGitHub #8

Open
ghutchis opened this issue Oct 28, 2024 · 1 comment
Open

Rework to use PyGitHub #8

ghutchis opened this issue Oct 28, 2024 · 1 comment

Comments

@ghutchis
Copy link
Member

https://github.com/PyGithub/PyGithub

from github import Github

# Authentication is defined via github.Auth
from github import Auth

# using an access token
auth = Auth.Token("access_token")

# First create a Github instance:

# Public Web Github
g = Github(auth=auth)

# Then play with your Github objects:
for repo in g.get_user().get_repos():
    print(repo.name)
@ghutchis
Copy link
Member Author

Also add some readme URLs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant