Skip to main content

Flask-PyMongo

PyMongo support for Flask applications. Requires flask>=3.0 and pymongo>=4.0

Quickstart

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)

More Info

Metadata

Release files for Flask-PyMongo 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-PyMongo 3.0.0
File Size Uploaded Provenance Actions
flask_pymongo-3.0.0.tar.gz 7.3 kB With provenance Details for flask_pymongo-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Flask-PyMongo 3.0.0
File Interpreter ABI Platform Actions
flask_pymongo-3.0.0-py3-none-any.whl Python 3 none any Details for flask_pymongo-3.0.0-py3-none-any.whl

Total release size: 18.1 kB

Release files / flask_pymongo-3.0.0.tar.gz

Download URL flask_pymongo-3.0.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb73197f25a1aa0621e032f03a7d7814f54f5a472e0b3fa34a7b63d00246b156
BLAKE2b-256 checksum
How to use checksums
9bfa1374aa2b3e376d413e568f890a54f6504b0c98d4975e5cec172572eda1f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 29, 2025.

Transparency log

Release files / flask_pymongo-3.0.0-py3-none-any.whl

Download URL flask_pymongo-3.0.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52d2b4bfc4cbac9ec11dae55eed4c7f775a9b60927cb036641ef99d90eda5fb5
BLAKE2b-256 checksum
How to use checksums
499dde75a678079c0a245fe16c67f9cedc62ecab23efb9f4551a4619e1f7c19e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 29, 2025.

Transparency log

Security for Flask-PyMongo 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flask_pymongo-3.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 29, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page