Skip to main content

Introduction

An example for accessing google maps rest api using rieapie.

import rieapie
gmap = rieapie.Api("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"]

An example for accessing the twitter api with the provided twitter wrapper.

import rieapie
params = {
 "consumer_key"    : "..."
,"consumer_secret" : "..."
}
# or if you want to provide an access token
params = {
 "consumer_key"        : "..."
,"consumer_secret"     : "..."
,"access_token"        : "..",
,"access_token_secret" : ".."
}

twitter = rieapie.wrappers.Twitter( **params )

timeline = twitter.statuses.user_timeline(ext="json")
# or if you prefer this syntax
timeline = twitter.statuses["user_timeline.json"]
for status in timeline.get(count=10, screen_name="mybestfriend"):
    print status['text']

why is it ‘rieapie’?

  • [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

Metadata

Release files for rieapie 0.0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rieapie 0.0.7.3
File Size Uploaded
rieapie-0.0.7.3.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rieapie 0.0.7.3
File Interpreter ABI Platform
rieapie-0.0.7.3-py2.7.egg Legacy Egg format - - Details

Total release size: 15.4 kB

Release files / rieapie-0.0.7.3.tar.gz

Download URL rieapie-0.0.7.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
586f389d8e98a3f101778941189e7cf10b4427542c17c6db23eeae8bd05efbe9
BLAKE2b-256 checksum
How to use checksums
0565e415ebfa401763ac5a83688d9f95daafcc9ff9969b19cfabb93d8c0d3242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rieapie-0.0.7.3-py2.7.egg

Download URL rieapie-0.0.7.3-py2.7.egg
Size 10.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
6296411cd859df0b1cdc5b8bef273fcce363b96d0477c078a0fdbbba7150a9a1
BLAKE2b-256 checksum
How to use checksums
1ddf0d77b6376776112b7ad80ee34460b0448ca4c8dd515923a2bc1c97787bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.7.3 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page