https
GET
api.github.com
None
/repos/PyGithub/PyGithub/compare/v0.6...v0.7?per_page=3&page=1
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Date', 'Tue, 07 Oct 2025 15:12:05 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"3bf4115d127b920ca16decfef24b8a43c33de5a9b88592b6c196301c1e1f9d76"'), ('Last-Modified', 'Fri, 25 May 2012 17:14:34 GMT'), ('github-authentication-token-expiration', '2025-11-13 21:31:56 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Link', '<https://api.github.com/repositories/3544490/compare/v0.6...v0.7?per_page=3&page=2>; rel="last", <https://api.github.com/repositories/3544490/compare/v0.6...v0.7?per_page=3&page=2>; rel="next", <https://api.github.com/repositories/3544490/compare/v0.6...v0.7?per_page=3&page=1>; rel="first"'), ('x-accepted-github-permissions', 'contents=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4989'), ('X-RateLimit-Reset', '1759853097'), ('X-RateLimit-Used', '11'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('Transfer-Encoding', 'chunked'), ('Server', 'github.com'), ('X-GitHub-Request-Id', 'BFFB:353E08:676B0F0:60A2D25:68E52DC4')]
{"url":"https://api.github.com/repos/PyGithub/PyGithub/compare/v0.6...v0.7","html_url":"https://github.com/PyGithub/PyGithub/compare/v0.6...v0.7","permalink_url":"https://github.com/PyGithub/PyGithub/compare/PyGithub:4303c5b...PyGithub:ecda065","diff_url":"https://github.com/PyGithub/PyGithub/compare/v0.6...v0.7.diff","patch_url":"https://github.com/PyGithub/PyGithub/compare/v0.6...v0.7.patch","base_commit":{"sha":"4303c5b90e2216d927155e9609436ccb8984c495","node_id":"MDY6Q29tbWl0MzU0NDQ5MDo0MzAzYzViOTBlMjIxNmQ5MjcxNTVlOTYwOTQzNmNjYjg5ODRjNDk1","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"message":"Merge branch 'develop'","tree":{"sha":"f492784d8ca837779650d1fb406a1a3587a764ad","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/f492784d8ca837779650d1fb406a1a3587a764ad"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/4303c5b90e2216d927155e9609436ccb8984c495","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495","html_url":"https://github.com/PyGithub/PyGithub/commit/4303c5b90e2216d927155e9609436ccb8984c495","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"936f4a97f1a86392637ec002bbf89ff036a5062d","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/936f4a97f1a86392637ec002bbf89ff036a5062d","html_url":"https://github.com/PyGithub/PyGithub/commit/936f4a97f1a86392637ec002bbf89ff036a5062d"},{"sha":"2a7e80e6421c5d4d201d60619068dea6bae612cb","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/2a7e80e6421c5d4d201d60619068dea6bae612cb","html_url":"https://github.com/PyGithub/PyGithub/commit/2a7e80e6421c5d4d201d60619068dea6bae612cb"}]},"merge_base_commit":{"sha":"4303c5b90e2216d927155e9609436ccb8984c495","node_id":"MDY6Q29tbWl0MzU0NDQ5MDo0MzAzYzViOTBlMjIxNmQ5MjcxNTVlOTYwOTQzNmNjYjg5ODRjNDk1","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"message":"Merge branch 'develop'","tree":{"sha":"f492784d8ca837779650d1fb406a1a3587a764ad","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/f492784d8ca837779650d1fb406a1a3587a764ad"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/4303c5b90e2216d927155e9609436ccb8984c495","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495","html_url":"https://github.com/PyGithub/PyGithub/commit/4303c5b90e2216d927155e9609436ccb8984c495","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"936f4a97f1a86392637ec002bbf89ff036a5062d","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/936f4a97f1a86392637ec002bbf89ff036a5062d","html_url":"https://github.com/PyGithub/PyGithub/commit/936f4a97f1a86392637ec002bbf89ff036a5062d"},{"sha":"2a7e80e6421c5d4d201d60619068dea6bae612cb","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/2a7e80e6421c5d4d201d60619068dea6bae612cb","html_url":"https://github.com/PyGithub/PyGithub/commit/2a7e80e6421c5d4d201d60619068dea6bae612cb"}]},"status":"ahead","ahead_by":4,"behind_by":0,"total_commits":4,"commits":[{"sha":"5bb654d26dd014d36794acd1e6ecf3736f12aad7","node_id":"MDY6Q29tbWl0MzU0NDQ5MDo1YmI2NTRkMjZkZDAxNGQzNjc5NGFjZDFlNmVjZjM3MzZmMTJhYWQ3","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T12:10:54Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T12:10:54Z"},"message":"Implement the three authentication schemes","tree":{"sha":"59d755d95bc2e2de4dcef70a7c73e81e677f610b","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/59d755d95bc2e2de4dcef70a7c73e81e677f610b"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/5bb654d26dd014d36794acd1e6ecf3736f12aad7","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/5bb654d26dd014d36794acd1e6ecf3736f12aad7","html_url":"https://github.com/PyGithub/PyGithub/commit/5bb654d26dd014d36794acd1e6ecf3736f12aad7","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/5bb654d26dd014d36794acd1e6ecf3736f12aad7/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"4303c5b90e2216d927155e9609436ccb8984c495","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495","html_url":"https://github.com/PyGithub/PyGithub/commit/4303c5b90e2216d927155e9609436ccb8984c495"}]},{"sha":"cb0313157bf904f2d364377d35d9397b269547a5","node_id":"MDY6Q29tbWl0MzU0NDQ5MDpjYjAzMTMxNTdiZjkwNGYyZDM2NDM3N2QzNWQ5Mzk3YjI2OTU0N2E1","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T17:04:22Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T17:04:22Z"},"message":"Merge branch 'topic/Authentication' into develop","tree":{"sha":"59d755d95bc2e2de4dcef70a7c73e81e677f610b","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/59d755d95bc2e2de4dcef70a7c73e81e677f610b"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/cb0313157bf904f2d364377d35d9397b269547a5","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/cb0313157bf904f2d364377d35d9397b269547a5","html_url":"https://github.com/PyGithub/PyGithub/commit/cb0313157bf904f2d364377d35d9397b269547a5","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/cb0313157bf904f2d364377d35d9397b269547a5/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"4303c5b90e2216d927155e9609436ccb8984c495","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495","html_url":"https://github.com/PyGithub/PyGithub/commit/4303c5b90e2216d927155e9609436ccb8984c495"},{"sha":"5bb654d26dd014d36794acd1e6ecf3736f12aad7","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/5bb654d26dd014d36794acd1e6ecf3736f12aad7","html_url":"https://github.com/PyGithub/PyGithub/commit/5bb654d26dd014d36794acd1e6ecf3736f12aad7"}]},{"sha":"0cec0d25e606c023a62a4fc7cdc815309ebf6d16","node_id":"MDY6Q29tbWl0MzU0NDQ5MDowY2VjMGQyNWU2MDZjMDIzYTYyYTRmYzdjZGM4MTUzMDllYmY2ZDE2","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T17:13:33Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T17:13:33Z"},"message":"Publish version 0.7","tree":{"sha":"78735573611521bb3ade95921c668097e2a4dc5e","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/78735573611521bb3ade95921c668097e2a4dc5e"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/0cec0d25e606c023a62a4fc7cdc815309ebf6d16","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/0cec0d25e606c023a62a4fc7cdc815309ebf6d16","html_url":"https://github.com/PyGithub/PyGithub/commit/0cec0d25e606c023a62a4fc7cdc815309ebf6d16","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/0cec0d25e606c023a62a4fc7cdc815309ebf6d16/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"cb0313157bf904f2d364377d35d9397b269547a5","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/cb0313157bf904f2d364377d35d9397b269547a5","html_url":"https://github.com/PyGithub/PyGithub/commit/cb0313157bf904f2d364377d35d9397b269547a5"}]}],"files":[{"sha":"c1602a737361ca08d8edd03d3d189c6c38b52502","filename":"ReferenceOfClasses.md","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/PyGithub/PyGithub/blob/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/ReferenceOfClasses.md","raw_url":"https://github.com/PyGithub/PyGithub/raw/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/ReferenceOfClasses.md","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/ReferenceOfClasses.md?ref=ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","patch":"@@ -3,7 +3,7 @@ You obtain instances through calls to `get_` and `create_` methods.\n \n Class `Github`\n ==============\n-* Constructed from user's login and password\n+* Constructed from user's login and password or OAuth token\n * `get_user()`: `AuthenticatedUser`\n * `get_user( login )`: `NamedUser`\n * `get_organization( login )`: `Organization`"},{"sha":"8c8348878598d2878b23bd29c0d1291ec77bc833","filename":"github/Github.py","status":"modified","additions":2,"deletions":2,"changes":4,"blob_url":"https://github.com/PyGithub/PyGithub/blob/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/github%2FGithub.py","raw_url":"https://github.com/PyGithub/PyGithub/raw/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/github%2FGithub.py","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/github%2FGithub.py?ref=ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","patch":"@@ -2,8 +2,8 @@\n from GithubObjects import *\n \n class Github:\n-    def __init__( self, login, password, debugFile = None ):\n-        self.__requester = Requester( login, password )\n+    def __init__( self, login_or_token = None, password = None, debugFile = None ):\n+        self.__requester = Requester( login_or_token, password )\n         self.__debugFile = debugFile\n \n     def _dataRequest( self, verb, url, parameters, data ):"},{"sha":"0034ec872a3c1b90c30f5fb440ce641ba943c856","filename":"github/Requester.py","status":"modified","additions":14,"deletions":3,"changes":17,"blob_url":"https://github.com/PyGithub/PyGithub/blob/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/github%2FRequester.py","raw_url":"https://github.com/PyGithub/PyGithub/raw/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/github%2FRequester.py","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/github%2FRequester.py?ref=ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","patch":"@@ -7,8 +7,15 @@ class UnknownGithubObject( Exception ):\n     pass\n \n class Requester:\n-    def __init__( self, login, password ):\n-        self.__authorizationHeader = \"Basic \" + base64.b64encode( login + \":\" + password ).replace( '\\n', '' )\n+    def __init__( self, login_or_token, password ):\n+        if password is not None:\n+            login = login_or_token\n+            self.__authorizationHeader = \"Basic \" + base64.b64encode( login + \":\" + password ).replace( '\\n', '' )\n+        elif login_or_token is not None:\n+            token = login_or_token\n+            self.__authorizationHeader = \"token \" + token\n+        else:\n+            self.__authorizationHeader = None\n \n     def dataRequest( self, verb, url, parameters, input ):\n         if parameters is None:\n@@ -46,12 +53,16 @@ def statusRequest( self, verb, url, parameters, input ):\n     def __rawRequest( self, verb, url, parameters, input ):\n         assert verb in [ \"HEAD\", \"GET\", \"POST\", \"PATCH\", \"PUT\", \"DELETE\" ]\n \n+        headers = dict()\n+        if self.__authorizationHeader is not None:\n+            headers[ \"Authorization\" ] = self.__authorizationHeader\n+\n         cnx = httplib.HTTPSConnection( \"api.github.com\", strict = True )\n         cnx.request(\n             verb,\n             self.__completeUrl( url, parameters ),\n             json.dumps( input ),\n-            { \"Authorization\" : self.__authorizationHeader }\n+            headers\n         )\n         response = cnx.getresponse()\n "},{"sha":"47e6c6576d5acdd93ff1e47a21954f473e113833","filename":"setup.py","status":"modified","additions":9,"deletions":1,"changes":10,"blob_url":"https://github.com/PyGithub/PyGithub/blob/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/setup.py","raw_url":"https://github.com/PyGithub/PyGithub/raw/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/setup.py","contents_url":"https://api.github.com/repos/PyGithub/PyGithub/contents/setup.py?ref=ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","patch":"@@ -5,7 +5,7 @@\n \n setup(\n     name = 'PyGithub',\n-    version = '0.6',\n+    version = '0.7',\n     description = 'Use the full Github API v3',\n     author = 'Vincent Jacques',\n     author_email = 'vincent@vincent-jacques.net',\n@@ -26,6 +26,14 @@\n                 print repo.name\n                 repo.edit( has_wiki = False )\n \n+        You can also create a Github instance without authentication::\n+\n+            g = Github( \"user\", \"password\" )\n+\n+        Or with an OAuth token::\n+\n+            g = Github( token )\n+\n         Reference documentation\n         =======================\n "}]}

https
GET
api.github.com
None
/repositories/3544490/compare/v0.6...v0.7?per_page=3&page=2
{'Authorization': 'token private_token_removed', 'User-Agent': 'PyGithub/Python'}
None
200
[('Date', 'Tue, 07 Oct 2025 15:12:05 GMT'), ('Content-Type', 'application/json; charset=utf-8'), ('Cache-Control', 'private, max-age=60, s-maxage=60'), ('Vary', 'Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With'), ('ETag', 'W/"875912f7a3aaddf40142170b2b08f152f5a5ded85ad231e913534ab4533ca5b3"'), ('Last-Modified', 'Fri, 25 May 2012 17:14:34 GMT'), ('github-authentication-token-expiration', '2025-11-13 21:31:56 +0100'), ('X-GitHub-Media-Type', 'github.v3; format=json'), ('Link', '<https://api.github.com/repositories/3544490/compare/v0.6...v0.7?per_page=3&page=2>; rel="last", <https://api.github.com/repositories/3544490/compare/v0.6...v0.7?per_page=3&page=1>; rel="first", <https://api.github.com/repositories/3544490/compare/v0.6...v0.7?per_page=3&page=1>; rel="prev"'), ('x-accepted-github-permissions', 'contents=read'), ('x-github-api-version-selected', '2022-11-28'), ('X-RateLimit-Limit', '5000'), ('X-RateLimit-Remaining', '4988'), ('X-RateLimit-Reset', '1759853097'), ('X-RateLimit-Used', '12'), ('X-RateLimit-Resource', 'core'), ('Access-Control-Expose-Headers', 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset'), ('Access-Control-Allow-Origin', '*'), ('Strict-Transport-Security', 'max-age=31536000; includeSubdomains; preload'), ('X-Frame-Options', 'deny'), ('X-Content-Type-Options', 'nosniff'), ('X-XSS-Protection', '0'), ('Referrer-Policy', 'origin-when-cross-origin, strict-origin-when-cross-origin'), ('Content-Security-Policy', "default-src 'none'"), ('Content-Encoding', 'gzip'), ('Transfer-Encoding', 'chunked'), ('Server', 'github.com'), ('X-GitHub-Request-Id', 'BFD0:3EB759:62E49CE:5C84844:68E52DC5')]
{"url":"https://api.github.com/repos/PyGithub/PyGithub/compare/v0.6...v0.7","html_url":"https://github.com/PyGithub/PyGithub/compare/v0.6...v0.7","permalink_url":"https://github.com/PyGithub/PyGithub/compare/PyGithub:4303c5b...PyGithub:ecda065","diff_url":"https://github.com/PyGithub/PyGithub/compare/v0.6...v0.7.diff","patch_url":"https://github.com/PyGithub/PyGithub/compare/v0.6...v0.7.patch","base_commit":{"sha":"4303c5b90e2216d927155e9609436ccb8984c495","node_id":"MDY6Q29tbWl0MzU0NDQ5MDo0MzAzYzViOTBlMjIxNmQ5MjcxNTVlOTYwOTQzNmNjYjg5ODRjNDk1","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"message":"Merge branch 'develop'","tree":{"sha":"f492784d8ca837779650d1fb406a1a3587a764ad","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/f492784d8ca837779650d1fb406a1a3587a764ad"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/4303c5b90e2216d927155e9609436ccb8984c495","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495","html_url":"https://github.com/PyGithub/PyGithub/commit/4303c5b90e2216d927155e9609436ccb8984c495","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"936f4a97f1a86392637ec002bbf89ff036a5062d","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/936f4a97f1a86392637ec002bbf89ff036a5062d","html_url":"https://github.com/PyGithub/PyGithub/commit/936f4a97f1a86392637ec002bbf89ff036a5062d"},{"sha":"2a7e80e6421c5d4d201d60619068dea6bae612cb","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/2a7e80e6421c5d4d201d60619068dea6bae612cb","html_url":"https://github.com/PyGithub/PyGithub/commit/2a7e80e6421c5d4d201d60619068dea6bae612cb"}]},"merge_base_commit":{"sha":"4303c5b90e2216d927155e9609436ccb8984c495","node_id":"MDY6Q29tbWl0MzU0NDQ5MDo0MzAzYzViOTBlMjIxNmQ5MjcxNTVlOTYwOTQzNmNjYjg5ODRjNDk1","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-04-17T17:55:16Z"},"message":"Merge branch 'develop'","tree":{"sha":"f492784d8ca837779650d1fb406a1a3587a764ad","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/f492784d8ca837779650d1fb406a1a3587a764ad"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/4303c5b90e2216d927155e9609436ccb8984c495","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495","html_url":"https://github.com/PyGithub/PyGithub/commit/4303c5b90e2216d927155e9609436ccb8984c495","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"936f4a97f1a86392637ec002bbf89ff036a5062d","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/936f4a97f1a86392637ec002bbf89ff036a5062d","html_url":"https://github.com/PyGithub/PyGithub/commit/936f4a97f1a86392637ec002bbf89ff036a5062d"},{"sha":"2a7e80e6421c5d4d201d60619068dea6bae612cb","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/2a7e80e6421c5d4d201d60619068dea6bae612cb","html_url":"https://github.com/PyGithub/PyGithub/commit/2a7e80e6421c5d4d201d60619068dea6bae612cb"}]},"status":"ahead","ahead_by":4,"behind_by":0,"total_commits":4,"commits":[{"sha":"ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","node_id":"MDY6Q29tbWl0MzU0NDQ5MDplY2RhMDY1ZTAxODc2MjA5ZDJiZGY1ZmU0ZTkxY2VlOGZmYWE5ZmY3","commit":{"author":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T17:14:34Z"},"committer":{"name":"Vincent Jacques","email":"vincent@vincent-jacques.net","date":"2012-05-25T17:14:34Z"},"message":"Merge branch 'develop'","tree":{"sha":"78735573611521bb3ade95921c668097e2a4dc5e","url":"https://api.github.com/repos/PyGithub/PyGithub/git/trees/78735573611521bb3ade95921c668097e2a4dc5e"},"url":"https://api.github.com/repos/PyGithub/PyGithub/git/commits/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}},"url":"https://api.github.com/repos/PyGithub/PyGithub/commits/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","html_url":"https://github.com/PyGithub/PyGithub/commit/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/commits/ecda065e01876209d2bdf5fe4e91cee8ffaa9ff7/comments","author":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"jacquev6","id":327146,"node_id":"MDQ6VXNlcjMyNzE0Ng==","avatar_url":"https://avatars.githubusercontent.com/u/327146?v=4","gravatar_id":"","url":"https://api.github.com/users/jacquev6","html_url":"https://github.com/jacquev6","followers_url":"https://api.github.com/users/jacquev6/followers","following_url":"https://api.github.com/users/jacquev6/following{/other_user}","gists_url":"https://api.github.com/users/jacquev6/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquev6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquev6/subscriptions","organizations_url":"https://api.github.com/users/jacquev6/orgs","repos_url":"https://api.github.com/users/jacquev6/repos","events_url":"https://api.github.com/users/jacquev6/events{/privacy}","received_events_url":"https://api.github.com/users/jacquev6/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"4303c5b90e2216d927155e9609436ccb8984c495","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/4303c5b90e2216d927155e9609436ccb8984c495","html_url":"https://github.com/PyGithub/PyGithub/commit/4303c5b90e2216d927155e9609436ccb8984c495"},{"sha":"0cec0d25e606c023a62a4fc7cdc815309ebf6d16","url":"https://api.github.com/repos/PyGithub/PyGithub/commits/0cec0d25e606c023a62a4fc7cdc815309ebf6d16","html_url":"https://github.com/PyGithub/PyGithub/commit/0cec0d25e606c023a62a4fc7cdc815309ebf6d16"}]}]}
