PyMongo support for Flask applications
Python
Latest commit 1b310a5 May 24, 2017 @dcrosta dcrosta release 0.5.1

README.md

Flask-PyMongo

PyMongo support for Flask applications

Quickstart

from flask import Flask
from flask_pymongo import PyMongo

app = Flask(__name__)
mongo = PyMongo(app)

@app.route('/')
def home_page():
    online_users = mongo.db.users.find({'online': True})
    return render_template('index.html',
        online_users=online_users)

More Info