TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What python framework can be used to build a REST api?

3 点作者 udswagz超过 10 年前
I know of Flask, Django and Pyramid. I don't want anything that has those in it, i all i want is a pure Rest Framework (not Web framework with REST extensions). Something that is used for just RESTful ApI. Just Models and Controllers no views. Thanks in advance.

5 条评论

smt88超过 10 年前
Just because a framework offers views doesn&#x27;t mean that it&#x27;s too heavy for you. If no views are being processed, they&#x27;re adding a negligible amount of overhead just from loading the code.<p>You don&#x27;t necessarily even need a framework. You could use some libraries. You only need: routing, HTTP request processing, and HTTP response preparation.
评论 #8912590 未加载
fclaerho超过 10 年前
If you&#x27;re still looking for something, I&#x27;ve hacked a wrapper over Bottle to ease the implementation of a REST service, it&#x27;s small (2 python files including Bottle) and might fit your needs: <a href="https://github.com/fclaerho/rest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fclaerho&#x2F;rest</a>
iurisilvio超过 10 年前
Werkzeug is the Flask HTTP handler. It can be useful for you. I know restpy [0], based on werkzeug.<p>[0] <a href="https://restpy.readthedocs.org/en/latest/" rel="nofollow">https:&#x2F;&#x2F;restpy.readthedocs.org&#x2F;en&#x2F;latest&#x2F;</a>
chudi超过 10 年前
you said that you don&#x27;t want any flask, but have you looked at Flask-Restless ?<p>Flask just gives you the routing part maybe you can even strip flask out of it and just use wsgi.<p>You can try <a href="http://python-eve.org/" rel="nofollow">http:&#x2F;&#x2F;python-eve.org&#x2F;</a> too
avinassh超过 10 年前
have you looked into Tornado?
评论 #8912610 未加载