Technical requirements

In this chapter, we'll use the following libraries:

  • FastAPI
  • pydantic
  • uvicorn
  • locust

Make sure to install them, if you haven't done so already. To test our API, we'll use the curl command-line tool. On Windows, you can install curl or use the built-in Invoke-Webrequest tool, aliased to wget

Alternatively, you can use Postman, https://www.getpostman.com, a standalone and free application for testing and exploring web APIs with a nice graphical interface. To install Postman, go to the website and hit Get Started, then select Download. Postman has versions for Windows and Linux. Its interface is quite clean and easy to learn, so we won't cover it here.

All of the code is available in the GitHub repository, in the Chapter18 folder (https://github.com/PacktPublishing/Learn-Python-by-Building-Data-Science-Applications).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset