Skip to main content

Easy REST api wrapper

Project description

Introduction

Random example for accessing a rest api using rieapie.

import rieapie
gmap = rieapie.Rieapie("http://maps.googleapis.com/maps/api")
args = {
origin        : "Toronto",
, destination : "Montreal"
, avoid       : "highways"
, mode        : "bicycling"
, sensor      : "false"
}
directions = gmap.directions.json.get(**args)
print directions["routes"][0]["bounds"]

WTF is that name?

  • [R]est [i]s [E]asy [a]s [P]ython [i]s [E]asy

  • [R]est [i]s [E]asy [a]s [PIE]

  • [R]est [i]s [E]asy [API]… [E]asy

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

rieapie-0.0.2.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

rieapie-0.0.2-py2.7.egg (3.7 kB view hashes)

Uploaded Source

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