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 Explore FastAPI in depth, from basic setup to advanced features such as custom middleware and WebSockets D...
Otros Autores: | , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing, Limited
2024.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009842237406719 |
Tabla de Contenidos:
- Cover
- Title Page
- Copyright and Credits
- Dedication
- Foreword
- Contributors
- Table of Contents
- Preface
- Chapter 1: First Steps with FastAPI
- Technical requirements
- Setting up your development environment
- Getting ready
- How to do it...
- Creating a new FastAPI project
- Getting ready
- How to do it...
- There's more...
- See also
- Understanding FastAPI basics
- How to do it...
- See also
- Defining your first API endpoint
- Getting ready
- How to do it...
- How it works...
- Working with path and query parameters
- Getting ready
- How to do it...
- How it works...
- See also
- Defining and using request and response models
- Getting ready
- How to do it...
- See also
- Handling errors and exceptions
- How to do it...
- There's more...
- See also
- Chapter 2: Working with Data
- Technical requirements
- Setting up SQL databases
- Getting ready
- How to do it...
- Establishing a database connection
- See also
- Understanding CRUD operations with SQLAlchemy
- Getting ready
- How to do it...
- See also
- Integrating MongoDB for NoSQL data storage
- Getting ready
- How to do it...
- See also
- Working with data validation and serialization
- Getting ready
- How to do it...
- Serialization and deserialization concepts
- Advanced validation techniques
- See also
- Working with file uploads and downloads
- Getting ready
- How to do it...
- Implementing file uploads
- Managing file downloads and storage
- See also
- Handling asynchronous data operations
- Getting ready
- How to do it...
- There's more...
- See also
- Securing sensitive data and best practices
- Getting ready
- How to do it...
- There's more...
- Chapter 3: Building RESTful APIs with FastAPI
- Technical requirements
- Creating CRUD operations
- How to do it...
- How it works...
- Creating RESTful Endpoints
- Getting ready...
- How to do it...
- Testing your RESTful API
- Getting ready...
- How to do it...
- See also
- Handling complex queries and filtering
- Getting ready...
- How to do it...
- Versioning your API
- Getting ready...
- How to do it...
- There's more...
- See also
- Securing your API with OAuth2
- Getting ready...
- How to do it...
- There's more...
- See also
- Documenting your API with Swagger and Redoc
- Getting ready...
- How to do it...
- See also
- Chapter 4: Authentication and Authorization
- Technical requirements
- Setting up user registration
- Getting ready
- How to do it...
- How it works...
- See also
- Working with OAuth2 and JWT for authentication
- Getting ready
- How to do it...
- How it works...
- See also
- Setting up RBAC
- Getting ready
- How to do it...
- There's more...
- Using third-party authentication
- Getting ready
- How to do it...
- How it works...
- See also
- Implementing MFA
- Getting ready
- How to do it...
- See also
- Handling API key authentication
- Getting ready
- How to do it...