Skip to main content

适用于FasS业务的获取参数列表以及返回错误信息库

Project description

easyfc使用介绍

1. 开发目的

简化云函数开发的代码量,方便开发人员迅速组织云开发服务

2. 快速开始

方式1: 使用pip进行安装

pip install easyfc

方式2: 自行下载安装

打开pipy 下载.whl文件或者.tar.gz 文件安装 下载位置

3. 演示使用

(1)获取含有json的请求数据
from easyfc.parse import get_json
environ = {} # environ是函数入口提供的参数
jsonParams = get_json(environ)
(2)获取请求头内参数
from easyfc.parse import get_headers
environ = {} # environ是函数入口提供的参数
params = get_headers(environ)
(3)获取请求query
from easyfc.parse import get_params
environ = {} # environ是函数入口提供的参数
params = get_params(environ)
(4) 返回200状态并且返回文本
from easyfc.response import ok_text_start_response
def handler(environ):
   return ok_text_start_response()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easyfc-0.0.11.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

easyfc-0.0.11-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page