fdk-python:Python函数开发套件

时间:2021-04-19 15:45:39
【文件属性】:
文件名称:fdk-python:Python函数开发套件
文件大小:101KB
文件格式:ZIP
更新时间:2021-04-19 15:45:39
python python3 functions-as-a-service fn faas-platform 适用于Python的功能开发套件 python FDK可让您在python 3.6 / 3.7 / 3.8中编写函数 最简单的功能 import io import logging from fdk import response def handler ( ctx , data : io . BytesIO = None ): logging . getLogger (). info ( "Got incoming request" ) return response . Response ( ctx , response_data = "hello world" ) 在HTTP函数中处理HTTP元数据 在HTTP网关前面的函数可以实现HTTP服务 当您的功能位于HTTP网关后面时,您可以通过以下方式访问入站HTTP请求: ctx.HttpHeaders() :字符串映
【文件预览】:
fdk-python-master
----setup.py(716B)
----.gitignore(1KB)
----images()
--------runtime()
--------build-stage()
--------README.md(1KB)
----requirements.txt(119B)
----THIRD_PARTY_LICENSES.txt(103KB)
----test-requirements.txt(74B)
----release_doc.md(1KB)
----samples()
--------echo()
----LICENSE(11KB)
----NOTICE.txt(985B)
----setup.cfg(857B)
----.github()
--------issue_template.md(2KB)
--------pull_request_template.md(192B)
----README.md(14KB)
----build-images.sh(981B)
----release_images.sh(1KB)
----generate_func.sh(1KB)
----.circleci()
--------.anchore()
--------config.yml(5KB)
----fdk()
--------errors.py(1KB)
--------__init__.py(4KB)
--------async_http()
--------log.py(2KB)
--------headers.py(3KB)
--------event_handler.py(2KB)
--------context.py(11KB)
--------customer_code.py(3KB)
--------constants.py(2KB)
--------scripts()
--------tests()
--------response.py(2KB)
--------runner.py(3KB)
--------version.py(19B)
--------fixtures.py(3KB)
----tox.ini(984B)
----release.sh(1KB)

网友评论