将http请求链接到一个调用中。
pia的Python项目详细描述
皮娅
还没写。
- 免费软件:ISC许可证
- 文档:https://pia.readthedocs.org。
快速启动
示例:
$ cat programs/soasme/weather.yml pipe: - method: get url: https://query.yahooapis.com/v1/public/yql params: format: json q: 'select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="beijing")' - method: post url: http://127.0.0.1:8000/builtin/jq params: program: '.query.results.channel|{title:.description,wind:.wind.speed|tonumber|(./3.60)|tostring,forcast:.item.forecast[0].text}' $ curl -H"content-type: application/json" -d '{"message":"hello world"}' -X POST "http://127.0.0.1:8000/soasme/weather?city=beijing" {"title": "Yahoo! Weather for Beijing, Beijing, CN", "wind": "3.0555555555555554", "forcast": "Sunny"}
功能
- 待办事项
学分
这个包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。
历史记录
0.1.0(2016-1-22)
- pypi上的第一个版本。