This is a Sample Tornado App, and shows how you can make an Ajax Request to the service, and get the data
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.txt
Readme.md
WelcomeUser.py
index.html
requirements.txt
web_wrapper.py

Readme.md

This is a sample Application which shows how you can make calls to a service, which calls a Python function.

This works on Tornado Web Server

To install Tornado, run the following command (via pip)

pip install tornado

To run this code, run:

python web_wrapper.py

Now open http://localhost:8111 in your Browser

The code has a index.html which makes an Ajax call to the API, sending the name that the user has entered. The service (contained in web_wrapper.py) calls a Python file (WelcomeUser.py), and sends the name to the function called sayHello()