Skip to main content

tuna and Flask

Step 1. Download the client​

Instructions are available on the installation page.

Step 2. Run a server on the Flask framework​

Server code example (explanations can be found in the official documentation):

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"

Step 3. Run tuna​

Flask uses port 5000 by default:

tuna http 5000