@@ -0,0 +1,340 @@
+from bottle import route, run%0A%0Afrom client import build_client, setup_socket, send_message, close%0Aimport libardrone%0Aimport time%0A%0Adrone = libardrone.ARDrone()%0A%0A%0A@route('/do/%3Ccommand%3E')%0Adef do(command):%0A%0A    getattr(drone, command)()%0A%0A    return 'Success'%0A%0A%0Atry:%0A    run(host='localhost', port=8080)%0Aexcept:%0A    drone.land()%0A    drone.halt()%0A

Set up bottle server direct api into the drone with do/command route.