Choose an Appropriate Framework
Define the criteria for choosing a Python framework from the popular Python frameworks available.
We'll cover the following
Before we start creating a server that provides REST services, we need to select the Python framework that we’re going to use.
REST API development requires not only the ability to provide a mapping between HTTP verbs and the methods that implement those verbs but also a way to integrate with other systems such as data stores, API docs, etc.
Apart from this, the API implementation has to take care of generally used options such as handling of request params, easy way to extract request body, way to parse the body to the data model, and handling exceptions when they occur, to name a few.
Due to this, a framework can either make a developer’s life easy or hard. Hence, choosing an appropriate framework is one of the most important aspects of REST API development.
Get hands-on with 1400+ tech skills courses.