- Fix wrong behavior of
Page.is_last_page
- Remove
testtube
- Remove deprecation warning in Python 3.
- Add Python 3.5, 3.6, 3.7, 3.8 as supported.
- Stop supporting Python 3.3 and 3.4.
- Add proper handling of empty next page in paginated result set.
- PaginatedResults now accepts
next_key
option.
- Rename
PaginatedAPIIterator
toPaginatedResults
. - Remove JSONServiceClient. Newest
requests
version provides functionality that obviates the need for it.
- Add decoding of json responses to JSONServiceClient
- Add JSONServiceClient
- Remove
send_as_json
configuration for HTTPServiceClient - Changes to PaginatedAPIIterator:
- Default start page is 1 for page-based pagination (was 0)
- Expects the paginated function to return a dict with a
'results'
key - See PaginatedAPIIterator docstring for customizing those behaviors
- Add MANIFEST.in
- Add PaginatedAPIIterator, helper utility for paginated service methods
- Allow the user to customise the definition of an acceptable response by overriding
is_acceptable
. - Exceptions are now raised directly by
request
ifis_acceptable()
returnsFalse
instead of in the defaultpost_send
.
- No change: a broken version of 1.1.4 was released accidentally (files were missing from the package).
- Stop logging an error for unsuccessful responses. Move the information from the logging statement to the exception message.
- Make Demands work correctly if
path
param is empty. Don't add slash to the base URL in this case.
- Add Python 3 support
- Switch to version
requests
>=2.4.2
- Allows to set max retries
- Accept param
verify_ssl
as an alias forverify
- Fix easy_install error, a pitfall of using
__init__.py
- Adds API documentation
- Add a license
- Adds http response as property of HTTPServiceError exception
- HTTPServiceError now subclasses AssertionError instead of IOError
- Fixes issue with composing url
-
HTTPServiceClient invoked with arguments instead of a dictionary
-
Enable and match parameters used by
requests
Before
data
, used for both query string and request bodyverify_ssl
Now
params
: dictionary or bytes to be sent in the query stringdata
: dictionary, bytes, or file-like object to send in the bodyverify
: verify the SSL cert
- Save error response content in HTTPServiceError exception
- Switches to requests > 1.0.0
- Adds client identification
- Provides an easier way to modify request arguments in pre_send()
- Initial version