PyMongo support for Flask applications
from flask import Flask, render_template
from flask_pymongo import PyMongo
app = Flask(__name__)
app.config["MONGO_URI"] = "mongodb://localhost:27017/myDatabase"
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)
-
[Quart-Motor (Motor for the Quart Framework)] (https://github.com/marirs/quart-motor)
-
[Motor Non-Blocking mongodb driver for asyncio applications] (https://github.com/mongodb/motor)