authoring and communicating with services • Servant is to services what Django, Rails or Flask are to web applications • Primary use case is internal services https://github.com/brianz/servant
and problems • HTTP by definition • Requires a running server • Usually end up using a wrapper library • Various interpretations • Can be challenging to get your Resources right
need a Servant library implemented. • No mechanism for exploration...need knowledge of service before hitting it • Can't simply use curl to hit an endpoint • Need another layer to expose a service publicly (i.e., hitting from Javascript)
response.is_error(): print response.errors, response.field_errors else: print response.quotient None, Bunch(denominator=[Bunch(error=u"Number 'abc' failed to convert to a decimal", hint=u"Number 'abc' failed to convert to a decimal")])