Flask Integration ================= There is a module for that! ``$ pip instal flask-coralillo`` The following example creates a simple flask application that creates and lists objects. .. code-block:: python # app.py from flask import Flask, request, redirect from flask_coralillo import Coralillo from coralillo import Model, fields app = Flask(__name__) engine = Coralillo(app) class Car(Model): name = fields.Text() class Meta: engine = engine @app.route('/') def list_cars(): res = '

Cars

Add car

' + \ '
' + \ '' + \ '' + \ '
' return res @app.route('/', methods=['POST']) def add_car(): newcar = Car.validate(**request.form.to_dict()).save() return redirect('/') if __name__ == '__main__': app.run() Now if you run ``python app.py`` and you visit ``http://localhost:5000`` you will be able to intercact with your brand new Flask-Coralillo application.