想写个简单的Get请求和Post请求的接口,因为功能上都很简单,所以想找个小型的Web框架,原来一直用的Flask,然后看到了Bottle。
Bottle 是一个简单而快速的微型Web框架,它只有一个文件,没有外部依赖。适合小型项目和快速原型开发,也可以用于构建API和微服务。适合初学者和小型项目使用。
官方文档原文:
Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.
Bottle是一个快速、简单、轻量级的WSGI微Web框架,适用于Python。它是作为单个文件模块分发的,除了Python标准库之外没有其他依赖项。