将http请求链接到一个调用中。

pia的Python项目详细描述


皮娅

https://img.shields.io/pypi/v/pia.svghttps://img.shields.io/travis/soasme/pia.svgDocumentation Status

还没写。

快速启动

示例:

$ 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"}

功能

  • 待办事项

学分

这个包是用Cookiecutteraudreyr/cookiecutter-pypackage项目模板创建的。

历史记录

0.1.0(2016-1-22)

  • pypi上的第一个版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaSpringbean已创建但未自动连接   java LibGDX游戏在三星Galaxy Grand Prime上结束   如何在Java中列出字符串句子中所有匹配条件的单词   java在Recyclerview中使用“putExtra”传递数据   java从一个特定的数组中提取特定的JSON对象,以便在Android中通过一个意图放入另一个活动   java需要使用IntelliJ和设置项目SDK的帮助   java springcontextindexer和Swagger 3   java使用indexOf和substring计算数字   java使用xml解析在word文档中查找隐式分页符   在添加<context:componentscan basepackage=“com.young.user”/   java无条件更改JTable单元格的背景色   选择列表中的java调用oracle函数:节点无数据类型   java如何添加缓冲图像作为JFrame的背景,然后在此图像上添加面板?   java Javadoc找不到用scala编写的类   java连接到文件共享程序的IP地址   java将数组元素加载到集合中   Tomcat中的java servlet、过滤器和线程   非Bean对象中的java EJB CDI注入?   java与println和printf的不同舍入