module loghelper.github_api
¶
Short summary¶
module pyquickhelper.loghelper.github_api
Calls github API.
Classes¶
class |
truncated documentation |
---|---|
Exception raised when a call to github rest api failed. |
Functions¶
function |
truncated documentation |
---|---|
Calls GitHub REST API. |
Methods¶
method |
truncated documentation |
---|---|
Merges everything into a string. |
Documentation¶
Calls github API.
- exception pyquickhelper.loghelper.github_api.GitHubApiException(response, url, **kwargs)[source]¶
Bases:
Exception
Exception raised when a call to github rest api failed.
Merges everything into a string.
- pyquickhelper.loghelper.github_api.call_github_api(owner, repo, ask, auth=None, headers=None)[source]¶
Calls GitHub REST API.
- Parameters:
owner – owner of the project
auth – tuple (user, password)
repo – repository name
ask – query (see below)
header – dictionary
- Returns:
json
Example for ask:
commits
downloads
forks
issues
pulls
stats/code_frequency
- Needs authentificationstats/commit_activity
- Needs authentificationstats/punch_card
- Needs authentificationtraffic/popular/referrers
- Must have push access to repositorytraffic/popular/paths
- Must have push access to repositorytraffic/views
- Must have push access to repositorytraffic/clones
- Must have push access to repository
GitHub limits the number of requets per hour: Rate Limiting.