PoorWSGI:带有URI路由支持的轻型WSGI连接器 源码
适用于Python的WSGI较差 糟糕的WSGI for Python是轻量级的WGI连接器,在WSGI服务器和您的应用程序之间存在uri路由。 运行和测试它的最简单方法如下所示: from wsgiref . simple_server import make_server from poorwsgi import Application app = Application ( 'test' ) @ app . route ( '/test' ) def root_uri ( req ): return 'Hello world' if __name__ == '__main__' : httpd = make_server ( '127.0.0.1' , 8080 , app ) httpd . serve_forever () 您可以使用python ws
文件列表
PoorWSGI-master.zip
(预估有个53文件)
PoorWSGI-master
MANIFEST.in
101B
.travis.yml
2KB
README.rst
1KB
tests_integrity
support.py
4KB
openapi.py
2KB
conftest.py
250B
__init__.py
0B
test_simple.py
6KB
暂无评论