minik:无服务器世界的Web框架

时间:2021-03-17 15:04:56
【文件属性】:
文件名称:minik:无服务器世界的Web框架
文件大小:118KB
文件格式:ZIP
更新时间:2021-03-17 15:04:56
Python Minik:无服务器Web框架 一个Web框架,可促进使用AWS资源开发无服务器应用程序。 Minik本机支持来自API网关和应用程序负载平衡器的请求。 正在安装 安装最新版本: >>> pip install minik :sparkles::shortcake::sparkles: 仅支持Python 3.6+ 。 简单的例子 以最基本的形式老实说,这只是形式。 这就是lambda函数的外观: from minik . core import Minik , BadRequestError app = Minik () @ app . route ( '/hello/{name}' ) def hello_view ( name : str ): if name == 'FINDME' : # Returns a 400 status code with the message as the body.
【文件预览】:
minik-master
----MANIFEST.in(45B)
----requirements()
--------dev.txt(182B)
----README.rst(10KB)
----CONTRIBUTING.rst(5KB)
----AUTHORS(247B)
----scripts()
--------make-release.py(4KB)
----.circleci()
--------config.yml(2KB)
----minik()
--------router.py(5KB)
--------exceptions.py(521B)
--------structures.py(1KB)
--------status_codes.py(4KB)
--------utils.py(3KB)
--------middleware.py(2KB)
--------__init__.py(190B)
--------models.py(2KB)
--------fields.py(3KB)
--------builders.py(5KB)
--------core.py(5KB)
--------constants.py(351B)
----requirements.txt(123B)
----examples()
--------corslight()
--------alb-events()
--------events()
----LICENSE(11KB)
----assets()
--------minik.png(52KB)
----payloads()
--------alb.json(980B)
--------gateway.json(2KB)
----setup.cfg(21B)
----setup.py(2KB)
----CHANGES.rst(4KB)
----Makefile(1KB)
----docs()
--------_templates()
--------index.html(73B)
--------.nojekyll(0B)
--------conf.py(5KB)
--------quickstart.rst(7KB)
--------index.rst(13KB)
--------Makefile(580B)
--------features.rst(4KB)
----tests()
--------test_minik.py(7KB)
--------test_fields.py(3KB)
--------test_route_validation.py(7KB)
--------test_builders.py(1KB)
--------test_custom_response.py(2KB)
--------test_routing.py(6KB)
--------test_middleware.py(2KB)
--------test_alb_support.py(3KB)
--------test_advance_routing.py(2KB)
----.gitignore(1KB)
----.coveragerc(181B)

网友评论