pycnic:懒人的JSON API Web框架

时间:2021-02-17 00:42:13
【文件属性】:
文件名称:pycnic:懒人的JSON API Web框架
文件大小:42KB
文件格式:ZIP
更新时间:2021-02-17 00:42:13
Python 文件 例子 # example.py from pycnic . core import WSGI , Handler class Hello ( Handler ): def get ( self , name = "World" ): return { "message" : "Hello, %s!" % ( name ) } class app ( WSGI ): routes = [ ( '/' , Hello ()), ( '/([\w]+)' , Hello ()) ] 安装 现在,Pycnic在PyPI上可用,它可以与pip一起安装。 pip install pycnic 跑步 Pycnic可以与任何符合WSGI的服务器一起运行,例如 。 gunicorn file:app
【文件预览】:
pycnic-master
----benchmark()
--------muffin_test.py(133B)
--------pyramid_test.py(290B)
--------flask_test.py(137B)
--------cherrypy_test.py(219B)
--------runner.sh(597B)
--------bobo_test.py(169B)
--------falcon_test.py(195B)
--------bottle_test.py(109B)
--------pycnic_test.py(298B)
--------hug_test.py(109B)
--------README.md(2KB)
--------tornado_test.py(337B)
----pycnic()
--------core.py(9KB)
--------utils.py(1KB)
--------cli.py(13KB)
--------errors.py(1KB)
--------__init__.py(22B)
--------data.py(2KB)
----docs()
--------config.yaml(687B)
--------links.yaml(1KB)
--------source()
----LICENSE(1KB)
----examples()
--------cookies.py(2KB)
--------models.py(999B)
--------full-auth.py(3KB)
--------overrides.py(2KB)
--------test.py(1KB)
--------cors.py(824B)
--------validation.py(654B)
--------json-encoder.py(866B)
--------hello.py(551B)
--------auth-wrapper.py(1KB)
----setup.py(954B)
----.gitignore(6B)
----README.md(674B)

网友评论