is "from flask import request" identical to "import requests"?
Question: In other words, is the flask request class identical to the requests library?

I consulted:

<http://flask.pocoo.org/docs/0.11/api/>

<http://docs.python-requests.org/en/master/>

but cannot tell for sure. I see code examples where people seem to use them
interchangeably.


Answer: No these are not only completely different libraries, but completely different
purposes.

Flask is a web framework which clients make requests to. The Flask `request`
object contains the data that the client (eg a browser) has sent to your app -
ie the URL parameters, any POST data, etc.

The requests library is for your app to make HTTP request to _other_ sites,
usually APIs. It makes an outgoing request and returns the response from the
external site.

