requests is one of the most advanced and simple to use HTTP libraries. The presentations is going to show how to get started with it, how to consume REST APIs and last but not least how to properly mock and test our code.
London (UK) • Software Developer at Government Digital Service • Python/Django developer • passionate about micro controllers, IoT, Arduino, Golang and mobile development
Python 2.6, 2.7 and 3.3 - 3.5 • Used by large companies in the world: Her Majesty's Government, Amazon, Google, Twilio, Runscope, Mozilla, Heroku, PayPal, etc… • Actively maintained • Easy to use
• HTTPError: raised by raise_for_status() in case of unsuccessful status • TimeOut: in case the request times out • TooManyRedirects: when request reaches the maximum number of redirections