python中最小、快速和直观的rest http服务
Gates的Python项目详细描述
作者:i(iRoiso at live dot com)
许可证:apache license 2.0
©;2011,june inc.
gates
=
=
python中最小、快速和直观的rest http服务。
功能:
+简单的jax-rs,如http动词映射和路由。
+wsgi 1.0兼容性。
+简单的表单处理。
+没有内置模板,请使用您喜欢的模板。
+没有内置会话管理。
+数据库不可知。[查看“http://github.com/junery/homer”以获取持久性]
示例代码:
----
Hello World Through the Gates,
``python
from Gates.core导入运行、应用程序、资源、路径、路由,get
@path(“/hello”)
class hello resource(resource):
“‘您能想到的最简单的资源’”
@get
@route(“/{name}”)
def hello(self,name):
self.response.write(“hello%s!”%名称)
许可证:apache license 2.0
©;2011,june inc.
gates
=
=
python中最小、快速和直观的rest http服务。
功能:
+简单的jax-rs,如http动词映射和路由。
+wsgi 1.0兼容性。
+简单的表单处理。
+没有内置模板,请使用您喜欢的模板。
+没有内置会话管理。
+数据库不可知。[查看“http://github.com/junery/homer”以获取持久性]
示例代码:
----
Hello World Through the Gates,
``python
from Gates.core导入运行、应用程序、资源、路径、路由,get
@path(“/hello”)
class hello resource(resource):
“‘您能想到的最简单的资源’”
@get
@route(“/{name}”)
def hello(self,name):
self.response.write(“hello%s!”%名称)