Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Flask module for the Coralillo redis ORM

Project Description

Integrates the Coralillo Redis ORM into flask


This is an easy application that stores and retrieves cars from redis database.

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

def list_cars():
    res = '<h1>Cars</h1><ul>'

    for car in Car.get_all():
        res += '<li>{}</li>'.format(

    res += '</ul><h3>Add car</h3>' + \
        '<form method="POST">' + \
        '<input name="name">' + \
        '<input type="submit" value="Add">' + \

    return res

@app.route('/', methods=['POST'])
def add_car():
    newcar = Car.validate(**request.form.to_dict()).save()

    return redirect('/')

if __name__ == '__main__':

Now if you run python and you visit http://localhost:5000 you will be able to intercact with your brand new Flask-Coralillo application.

For more information visit

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.2 kB) Copy SHA256 Hash SHA256
Wheel py3 Mar 7, 2018
(2.6 kB) Copy SHA256 Hash SHA256
Source None Mar 7, 2018

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers