FastAPI 101

What is FastAPI? According to its official website, FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.8+ based on standard Python type hints. Hello World with FastAPI Installation Requirements Python3.8+ Install FastAPI 1 pip install fastapi Install ASGI Server 1 pip install "uvicorn[standard]" Define a FastAPI app Create a file main.py with: 1 2 3 4 5 from typing import Union from fastapi import FastAPI app = FastAPI() Create API Endpoints In main.py add the following 2 endpoints implementation ...

December 1, 2023 · 2 min · 415 words · Justin Hu

Faster Python: Python 3.11 Release and Future Roadmap

Python is a popular programming language, especially in scripting, web development, data analytics, and ML/AI domains. According to TIOBE Programming Language Index, Python has become the most popular programming since 2022, exceeding good old C: Python has gained popularity because of its flat learning curve (compared to other languages such as C/C++), human-readable code, and thriving ecosystems. However, Developers have always complained about python not being fast or even slower than other interpreting languages like JS or Lua. ...

December 3, 2022 · 2 min · 393 words · Justin Hu