Create A Simple Todo List API Using FastAPI

Create A Simple Todo List API Using FastAPI

To create a simple to-do list API using FastAPI, you can follow these steps:

1. Install FastAPI and uvicorn using pip:

FastAPI is a Python web framework for building APIs, and uvicorn is an ASGI server for running Python web applications. The pip command is used to install these packages.


MinhTDAbout 3 minGuidePythonFastAPI
Python Custom Formatting

Python Custom Formatting

Python f-strings use a formatting mini-language, the same as the older .format() function. After the colon comes short specifications for how to format the value:

>>> word = "Hello"
>>> f"{word:/^20}"
'///////Hello////////'
>>> amt = 12345678
>> f"{amt:20,}"
'          12,345,678'

MinhTDAbout 2 minGuidePython