Fastapi framework–aioredis asynchronous cache article

In an application, the need for caching is an essential part. For caching, we usually mainly use reids. However, there are relatively few libraries for client-side asynchronous support: 1 redis asynchronous client support library: Probably the main support libraries for asynchronous clients are: aioredis asyncio_redis aredis (seems to feel good too! Friendly and easier to […]

Python – FastAPI implements get and post requests

Table of Contents I. Introduction 2. FastAPI Server construction 1.get-read_items 2.post-create_item 3.uvicorn-run_app 3.Postman request 1.post-create_item 2.get-read_items 4. Requests 1.post-create_item 2.get-read_items 5. Summary 1. Introduction We have introduced the relevant knowledge of LLM before, from sample loading, model loading to subsequent model training and model inference, we have experienced the complete LLM LoRA fine-tuning and inference […]

Differences between test and FastAPI application data

[squids.cn] The lowest price RDS on the entire network, free migration tool DBMotion, database backup tool DBTwin, SQL development tools, etc. When using two different asynchronous sessions to test a FastAPI application’s connection to a database, the following error may occur: In a test, an object (test session) is created in the database. Make a […]

FastAPI rapid development of Web API projects: response model and error handling

FastAPI Rapid Development Web API Project Study Notes: Part 1: Develop a fast Web API project through Python FastAPI Part 2: Introduction and use of FastAPI routing Part 3: Introduction and integrated use of Pydantic, a data verification tool in FastAPI development Part 4: FastAPI rapid development of Web API projects: path parameters and query […]

Develop a fast Web API project with Python FastAPI

Foreword One of the many reasons why Python is so popular is that Python has a large selection of mature and stable libraries: Web development includes: Django and Flask, which provide a good web development experience and a lot of useful documentation Machine learning includes: scikit-learn, Keras, etc., which provide a wealth of machine learning […]

Switching from Flask to FastAPI

theme: juejin highlight: atom-one-light This article is translated from Moving from Flask to FastAPI, author: Amal Shaji I just started to experience FastAPI in the past few days and felt that this framework is easy to use and convenient. I have used Django and Flask in Python as the project framework before. To be honest, […]

FastAPI rapid development of Web API projects: data operations through SQLAlchemy

FastAPI rapid development Web API project study notes: Part 1: Develop a fast Web API project through Python FastAPI Part 2: Introduction and use of FastAPI routing Part 3: Introduction and integrated use of Pydantic, a data verification tool in FastAPI development Part 4: FastAPI rapid development of Web API projects: path parameters and query […]

Switching from Flask to FastAPI

This article is translated from Moving from Flask to FastAPI, author: Amal Shaji I just started to experience FastAPI in the past few days and felt that this framework is easy to use and convenient. I have used Django and Flask in Python as the project framework before. To be honest, Django is easy to […]

Asynchronous callback issues of fastAdmin payment plug-in, handling concurrent notifications

Recently, FastAdmin’s payment plug-in was used to develop a PC-side function for scanning QR codes to recharge the balance. After successfully recharging, I encountered the problem that the WeChat server sent asynchronous callback notifications multiple times and my data was modified multiple times. I responded according to the callback in the FastAdmin payment plug-in, //The […]

Develop a fast Web API project with Python FastAPI

One of the many reasons why Python is so popular is that Python has a large selection of mature and stable libraries: Web development includes: Django and Flask, which provide a good web development experience and a lot of useful documentation Machine learning includes: scikit-learn, Keras, etc., which provide a wealth of machine learning packages […]