Skip to main content

Python Awesome

abbr.stand formeaning
APIApplication Programming Interface应用程序编程接口
ASGIAsynchronous Server Gateway Interface异步服务器网关接口
ASTAbstract Syntax Tree抽象语法树
CLICommand Line Interface命令行界面
CPythonC Python Implementation官方C语言实现的Python解释器
GILGlobal Interpreter Lock全局解释器锁
IDLEIntegrated DeveLopment EnvironmentPython自带集成开发环境
OOPObject-Oriented Programming面向对象编程
PEPPython Enhancement ProposalPython增强提案
PIPPython Package IndexPython包索引
pipenvPip + Virtualenv包管理与虚拟环境工具
PyPIPython Package IndexPython官方包仓库
RERegular Expression正则表达式
REPLRead-Eval-Print Loop交互式命令行环境
TOMLTom's Obvious, Minimal Language配置文件格式
TTYTeletypewriter终端设备
venvVirtual Environment虚拟环境
WSGIWeb Server Gateway InterfaceWeb服务器网关接口
YAMLYAML Ain't Markup Language一种简洁的数据序列化格式

FAQ

Uvicorn vs Gunicorn

  • Gunicorn (Green Unicorn)
    • WSGI 服务器
    • 进程管理器 和应用服务器
    • 多进程模型 (Pre-fork)。它会预先启动多个独立的 worker 进程来处理请求。
    • 用于同步框架,如 Flask, Django
  • Uvicorn
    • ASGI 服务器
    • 异步 I/O 的 Web 服务器
    • 单进程事件循环 (Event Loop)。基于 asyncio 在单个进程中通过异步协程处理大量并发连接。
    • 用于异步框架,如 FastAPI, Starlette。