mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
8985368e2944a37b9c239d74091309807c2f370e
When there's no data, requestJsonAndCheck(), or rather
__structuredFromJson() returns None rather than {}.
As both None & {} evaluates to false, 'if not data:' will give the
correct behaviour regardless of returning {} or None.
PyGitHub
PyGitHub is a Python (2 and 3) library to access the GitHub API v3. This library enables you to manage GitHub resources such as repositories, user profiles, and organizations in your Python applications.
Simple Demo
from github import Github
# First create a Github instance:
g = Github("user", "password")
# Then play with your Github objects:
for repo in g.get_user().get_repos():
print repo.name
repo.edit(has_wiki=False)
Development
Contributing
Long-term discussion and bug reports are maintained via GitHub Issues. Code review is done via GitHub Pull Requests.
For more information read CONTRIBUTING.md.
Maintainership
We're actively seeking maintainers that will triage issues and pull requests and cut releases. If you work on a project that leverages PyGitHub and have a vested interest in keeping the code alive and well, send an email to someone in the MAINTAINERS file.
Description
Typed interactions with the GitHub API v3
https://pygithub.readthedocs.io/
12 MiB
Languages
Python
99.9%