Commit Graph
91 Commits
Author SHA1 Message Date
Vincent Jacques 0f74e4389b Review of #189: pep8, copyrights, style, remarks
For remarks, run: git grep "#189"
They are only my first thoughts while reviewing this pull request,
and should be reviewed themselves.
2013-08-22 12:12:38 +02:00
Vincent Jacques 1787765a61 Review of #189: use dict.get
http://docs.python.org/2/library/stdtypes.html#dict.get
2013-08-22 11:41:15 +02:00
Vincent Jacques cc1bcd5f2d Merge branch 'develop' into topic/ConditionalRequest
Conflicts:
	.gitignore
	github/Requester.py
2013-08-22 11:01:51 +02:00
Vincent Jacques 8a2624e3a1 Merge branch 'topic/RememberHeaders' into develop (#192)
Conflicts:
	github/Issue.py
	github/MainClass.py
	github/PaginatedList.py
	github/Repository.py
	github/Requester.py
2013-08-22 10:30:14 +02:00
Vincent Jacques 5c475c7683 First review of #192 (pep8, headers... nothing important)
./manage.sh check
./manage.sh fix_headers
2013-08-22 10:12:38 +02:00
AKFish 70a7e9c83d Fix update 2013-08-22 07:45:27 +08:00
AKFish 5b09f6c821 Implement conditional request 2013-08-21 23:17:59 +08:00
AKFish 6fd05baf6b Handle response code 304 2013-08-21 23:09:30 +08:00
Vincent Jacques 20107078d2 Fix copyrights (#181 #182 #184 #186 #187) 2013-08-21 16:08:02 +02:00
AKFish e06257d060 Enable debug in TestCase 2013-08-21 20:58:29 +08:00
AKFish 1d18ea75cc Add debug / test mechanism 2013-08-21 19:25:05 +08:00
Vincent Jacques 07c0871281 Merge branch 'topic/HandleNonJsonResponses' into develop 2013-08-20 22:54:16 +02:00
Ed Jackson 211e4633ee Minor enhancements to rate limiting information
If rate limiting information hasn't been retrieved already, it will be checked
rather than just assuming 5000 requests remaining of 5000.

Add an additional attribute `rate_limiting_resettime` to reflect github's new
X-RateLimit-Reset header. This integer value is a unix timestamp.

RateLimiting unit test updated accordingly.
2013-08-06 10:42:57 -05:00
Mark Roddy 304d387114 Handle github api response that isn't valid json 2013-07-19 20:24:50 -04:00
Vincent Jacques 06a3d87098 Change source file header format 2013-07-13 19:03:53 +02:00
Vincent Jacques 56309b90f2 Run the script added in previous commit 2013-07-13 11:10:00 +02:00
Vincent Jacques db2a9db721 Add two new types of exceptions (issue #152) 2013-05-17 14:27:17 +02:00
Vincent Jacques 319ff29d25 Merge branch 'develop' 2013-04-25 20:14:31 +02:00
Vincent Jacques aa7df884c4 Small fixes in doc 2013-04-25 15:27:26 +02:00
Vincent Jacques 97af2b6da2 Fix pagination with secret-key authentication (issue #158) 2013-04-25 14:31:51 +02:00
Jonathan J Hunt a8e5a16ba5 Fixed pep8 2013-04-24 12:30:39 -07:00
Jonathan J Hunt f7b3e9956d Added default user agent. 2013-04-24 12:28:02 -07:00
Vincent Jacques 73f9ae8f21 Merge branch 'topic/SpecificExceptions' into develop 2013-04-22 22:23:04 +02:00
Vincent Jacques db5560bd65 Add a script to check copyrights with git log. And fix copyrights. 2013-03-29 16:54:15 +01:00
Vincent Jacques 0bc368973a Raise a specific exception for non-existing objects (issue #152) 2013-03-29 13:10:59 +01:00
Vincent Jacques 7b3e4c15ed Raise a specific exception for bad credentials (issue #152) 2013-03-29 13:01:06 +01:00
Vincent Jacques 1c47be4e89 Document #pragma no covers (Issue #154) 2013-03-28 21:50:17 +01:00
Vincent Jacques 8a9afbb1aa Remove branches for hypothetical unknown Authorization headers 2013-03-28 21:49:39 +01:00
Vincent Jacques 1c67359a31 Improve test coverage a bit 2013-03-28 21:28:01 +01:00
Vincent Jacques c85af79db1 Fix authentication with Python 3 (Issue #153) 2013-03-28 20:05:13 +01:00
Vincent Jacques e25a6a49d1 Add Github.per_page to tweak PaginatedList (Issue #145) 2013-03-14 12:01:41 +01:00
Vincent Jacques 03a256a405 Publish version 1.12.2 2013-03-03 18:44:25 +01:00
Vincent Jacques 9e6b086c2d Remove a deprecation warning 2013-03-03 18:35:50 +01:00
Vincent Jacques 0ddb34d987 Fix decoding on Python3 (bytes instead of str) (Issue #142) 2013-03-03 18:32:10 +01:00
Vincent Jacques 7a415fda66 Change home page 2013-02-16 21:19:49 +01:00
Vincent Jacques 64f2640ed1 Conform to pep8 2013-02-07 18:48:40 +01:00
Vincent Jacques 2215010b0e Retrieve scopes for current oauth token from response headers (Issue #134) 2013-02-06 00:04:29 +01:00
Vincent Jacques 681128d41a Refactor 2013-02-05 23:38:45 +01:00
Vincent Jacques 27ed941f7b Remove useless Content-Length header 2013-02-05 23:24:51 +01:00
Vincent Jacques 3cbc81551a Refactor: put form/multipart encoding in Requester
And remove my fucking credentials from git! (Password changed, btw)
2013-02-05 19:47:52 +01:00
Vincent Jacques e9be857089 Rename methods in Requester 2013-02-05 19:39:03 +01:00
Vincent Jacques f024950884 First implementation of PubSubHubbub (un)subscription (Issue #129)
This will need 'some' refactoring.
2013-02-05 19:23:20 +01:00
Vincent Jacques 1804d9a295 pep8 + readme 2012-11-21 21:49:15 +01:00
Vincent Jacques 381a479d6a Restore Python 2.5 and 2.6 2012-11-21 20:45:45 +01:00
Vincent Jacques d8e50c7937 Small fixes => tests pass after 2to3 2012-11-21 20:30:35 +01:00
Vincent Jacques 63a56e074a Add a customizable User-Agent (issue #109) 2012-11-19 21:18:43 +01:00
Vincent Jacques 3c07876a96 Refactor Requester 2012-11-19 20:44:14 +01:00
Vincent Jacques ef55a93d9a Refactor 2012-11-19 20:31:33 +01:00
Vincent Jacques f6dc7b43fd Merge branch 'develop' into topic/UnauthenticatedRateLimitedRequests 2012-11-19 20:13:08 +01:00
Michael Woodworth 4f2030ad6c added client_id and client_secret auth option 2012-11-07 18:15:27 -05:00