- Add
request_timeout_secondsparameter toVWSandCloudRecoService, allowing customization of the request timeout. This accepts a float or a(connect, read)tuple, matching therequestslibrary's timeout interface. The default remains 30 seconds.
- Removed
vws.exceptions.custom_exceptions.OopsAnErrorOccurredPossiblyBadNamewhich now does not occur in VWS.
- Move
Responsefromvws.exceptions.responsetovws.types. - Add
rawfield toResponse.
- Make
VWS.make_requesta public method.
- Breaking change: Exception names now end with
Error. - Use a timeout (30 seconds) when making requests to the VWS API.
- Type hint changes: images are now
io.BytesIOinstances orio.BufferedRandom.
- Add exception response attribute to
vws.exceptions.custom_exceptions.RequestEntityTooLarge.
- Exception response attributes are now
vws.exceptions.response.Responseinstances rather thanrequests.Responseobjects.
- Return a new error (
vws.custom_exceptions.ServerError) when the server returns a 5xx status code.
- Breaking change: The
vws.exceptions.cloud_reco_exceptions.UnknownVWSErrorPossiblyBadNameis nowvws.exceptions.custom_exceptions.OopsAnErrorOccurredPossiblyBadName. vws.exceptions.custom_exceptions.OopsAnErrorOccurredPossiblyBadNamenow has aresponseparameter and attribute.
- Breaking change: the
vws.exceptions.custom_exceptions.ActiveMatchingTargetsDeleteProcessingexception has been removed as Vuforia no longer returns this error.
- Support file-like objects in every method which accepts a file.
- Breaking change: The
vws.exceptions.cloud_reco_exceptions.MatchProcessingis nowvws.exceptions.custom_exceptions.ActiveMatchingTargetsDeleteProcessing. - Added new exception
vws.exceptions.custom_exceptions.RequestEntityTooLarge. - Add better exception handling when querying a server which does not serve the Vuforia API.
- Breaking change: Move exceptions and create base exceptions.
It is now possible to, for example, catch
vws.exceptions.base_exceptions.VWSExceptionto catch many of the exceptions raised by theVWSclient. Credit to@laymonagefor this change.
- Change the return type of
vws_client.get_target_recordto match what is returned by the web API.
- Add Windows support.
- Make
active_flagandapplication_metadatarequired onadd_target.