ASGI? WSGI?

This is what a FastAPI app using Gunicorn managing Uvicorn workers may look like in a nutshell: Web Server vs Application Server vs Web Client Web servers are especially good at serving static content, they are also good at caching, load balancing, and doing reverse proxy. Apache and Nginx are common web servers. Application servers are designed to run application code, they are good at handling dynamic content, and they can run multiple languages....

April 29, 2024 · 2 min

UV - A Pip Alternative

Recently I discover a new package manager for Python, uv, which could be a pip alternative written in rust. Just like all the “Rust version” remakes, it has an incredible speed boost compared to pip or poetry. UV can even generate a virtual environment (like the python venv). This is the official benchmark from the uv project description. Just by the glance of this graph I’m alredy amazed by the claim....

April 10, 2024 · 3 min

Pyenv - Manage Python Environments Easily

What is Pyenv? When you got multiple python projects at hand that use different python versions, uninstall and reinstall between them makes your python environment a mess. With pyenv, a Python version management tool, can let developers easily manage, install and switch between python versions. Installation pyenv only work on UNIX/MacOS systems, the alternative on Windows is pyenv-win You can install using homebrew 1 2 brew update brew install pyenv Set Up Shell Environment You should be able to check your shell enviornment with this command: echo $SHELL, then execute the following command accordingly...

March 3, 2024 · 2 min

Q Learning Basics

Q Learning Basics, Concepts and Implementations

February 29, 2024 · 2 min

AioHttp 取代 Requests

November 17, 2023 · 0 min