Openrouteservice goes python.

Yes, good news! We have finally developed a pretty handy python API for all of you pythoniasts out there. This library makes requests to the openrouteservice API dead simple. Find the sources on GitHub and install it via PyPi.

It couldn’t be any easier:

import openrouteservice

coords = ((8.34234,48.23424),(8.34423,48.26424))

client = openrouteservice.Client(key='') # Specify your personal API key
routes = client.directions(coords)

print routes