【文件属性】:
文件名称:moesif-tornado-example:将Moesif API Analytics与Tornado框架结合使用的示例
文件大小:5KB
文件格式:ZIP
更新时间:2021-02-12 02:15:39
Python
Moesif龙卷风示例
是一个Web框架和异步网络库。
是一个API分析平台。 是一种中间件,可以使基于Motorif的应用程序和框架轻松与Moesif集成。
如何使用
moesifwsgi的文件已经记录了设置Moesif的步骤。 但这是运行此示例的说明。
可选:如果需要,设置。 通过virtualenv benv和source benv/bin/activate启动虚拟环境
通过pip install -r requirements.txt在环境中安装依赖项
确保编辑moesif_config/moesif_config.py以包含您自己的应用程序ID。
moesif_settings = {
'APPLICATION_ID': 'Your application id'
}
运行python main.py
验证:向本地服务器发送少量请求,例如“ ”,然后在您的moe
【文件预览】:
moesif-tornado-example-master
----moesif_config.py(1KB)
----.gitignore(3KB)
----README.md(1KB)
----main.py(4KB)
----requirements.txt(21B)