Basically, the goal is to have an api where a question is asked, and the computer should be able to respond to that question and answer it somewhat reliably.
When a query is sent to the server:
- Parse query
- Determine which plugin that is installed can handle the data
- If a plugin is found, let the plugin deal with that
- Otherwise, send to Wolphram Alpha and hope that an answer is received
- If WA failed, admit defeat...
- Download / Clone Quail
- Start Quail: (cd inside src first)
./quail.py go - Take a look here: 127.0.0.1:8000/abc/hi
First, make sure you've got Python 2.7.x on your system.
- open a terminal, and go to quail's folder
- For debugging and other times where you would want to see Quail's stdout/stderr, run
./quail.py go - In a production environment, Quail can be started as a daemon. (
./quail.py start,./quail.py stop,./quail.py restart)
Yes, plugins. Want to tell your 3D printer to print that model of a cactus from a simple API query? That's what I thought. For more about plugin development, look here