𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Getting started with FastApi: Here continue your roadmap in the development of web applications in Python with FastApi

✍ Scribed by Andrés Cruz Yoris


Tongue
English
Leaves
355
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


FastAPI is a great web framework for creating web APIs with Python; It offers us multiple features with which it is possible to create modular, well-structured, scalable APIs with many options such as validations, formats, typing, among others.

When you install FastAPI, two very important modules are installed:

  • Pydantic that allows the creation of models for data validation.
  • Starlette, which is a lightweight ASGI tooltip, used to create asynchronous (or synchronous) web services in Python.

With these packages, we have the basics to create APIs, but we can easily extend a FastAPI project with other modules to provide the application with more features, such as the database, template engines, among others.

FastAPI is a high-performance, easy-to-learn, start-up framework; It is ideal for creating all kinds of sites that not only consist of APIs, but we can install a template manager to return complete web pages.

This book is mostly practical, we will learn the basics of FastAPI, knowing its main features based on a small application that we will extend chapter after chapter and whose content you can see below:

  1. Chapter 1: We present some essential commands to develop in FastApi , we will prepare the environment and we will give an introduction to the framework .
  2. Chapter 2: One of the main factors in FastApi is the creation of resources for the API through functions, in this section we will deal with the basics of this, introducing routing between multiple files as well as the different options for the arguments and parameters of these routes.
  3. Chapter 3: In this section, learn how to handle HTTP status codes from API methods and also handle errors/exceptions from API methods.
  4. Chapter 4: In this section we will see how to create sample data to use from the automatic documentation that FastAPI offers for each of the API methods.
  5. Chapter 5: In this chapter we will see how to implement the upload of files, knowing the different existing variants in FastAPI.
  6. Chapter 6: In this chapter we will see how to connect a FastAPI application to a relational database such as MySQL.
  7. Chapter 7: In this chapter we will see installing and using a template engine in Python, specifically Jinja, with which we can return responses in HTML format.
  8. Chapter 8: In this chapter we will see installing and using a template engine in Python, specifically Jinja, with which we can return responses in HTML format.
  9. Chapter 9: In this chapter we will learn how to use dependencies.
  10. Chapter 10: In this chapter we will see how to use middleware to intercept requests to API methods and execute some procedure before the request or after generating the response.
  11. Chapter 11: In this chapter we will see how to create a user module, to register users, login, generate access tokens and logout.
  12. Chapter 12: In this chapter we will learn about some particularities and functionalities of FastAPI such as the use of annotations and the Ellipsis operator.
  13. Chapter 13: In this chapter we will see how to implement unit tests.
  14. Chapter 14: In this chapter we will know some general aspects applied to FastAPI.

πŸ“œ SIMILAR VOLUMES


Getting started with FastApi: Here conti
✍ AndrΓ©s Cruz Yoris πŸ“‚ Library 🌐 English

<p><span>FastAPI is a great web framework for creating web APIs with Python; It offers us multiple features with which it is possible to create modular, well-structured, scalable APIs with many options such as validations, formats, typing, among others.</span></p><p><span>When you install FastAPI, t

FastAPI Cookbook: Develop high-performan
✍ Giunio De Luca πŸ“‚ Library πŸ“… 2024 πŸ› Packt Publishing Pvt Ltd 🌐 English

Giunio De Luca, "FastAPI Cookbook: Develop high-performance APIs and web applications with Python" Enhance your web development skills, from setting up your environment and advanced integrations to building robust, high-traffic web applications with practical, scalable solutions Key Features

FastAPI Cookbook: Develop high-performan
✍ Giunio De Luca πŸ“‚ Library πŸ“… 2024 πŸ› Packt Publishing 🌐 English

<p><span>Enhance your web development skills, from setting up your environment and advanced integrations to building robust, high-traffic web applications with practical, scalable solutions</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Explore FastAPI in depth, from basic setup to

FastAPI: Modern Python Web Development
✍ Bill Lubanovic πŸ“‚ Library πŸ› O'Reilly Media 🌐 English

<p><span>FastAPI is a young yet solid framework that takes advantage of newer Python features in a clean design. As its name implies, FastAPI is indeed fast, rivaling similar frameworks in languages such as Golang. With this practical book, developers familiar with Python will learn how FastAPI lets

FastAPI: Modern Python Web Development
✍ Bill Lubanovic πŸ“‚ Library πŸ“… 2023 πŸ› O'Reilly Media 🌐 English

FastAPI is a young yet solid framework that takes advantage of newer Python features in a clean design. As its name implies, FastAPI is indeed fast, rivaling similar frameworks in languages such as Golang. With this practical book, developers familiar with Python will learn how FastAPI lets you acco

Getting Started with Varnish Cache: Acce
✍ Thijs Feryn πŸ“‚ Library πŸ“… 2017 πŸ› O’Reilly Media 🌐 English

<div><p>How long does it take for your website to load? Web performance is just as critical for small and medium-sized websites as it is for massive websites that receive tons of hits. Before you pour money and time into rewriting your code or replacing your infrastructure, first consider a reverse-