Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Chaining http requests into one call.

Project description

pia

Documentation Status

Not written yet.

Quick Start

Example:

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

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2016-1-22)

  • First release on PyPI.

Project details


Release history Release notifications

This version
History Node

0.1.0

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page