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.1

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.1
File Size Uploaded
flask_pymongo-3.0.1.tar.gz 7.3 kB Details

Built distribution (wheel)

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

Total release size: 18.3 kB

Release files / flask_pymongo-3.0.1.tar.gz

Download URL flask_pymongo-3.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d225b51c21ceca2e670e6cca79b5c584ad17b96252b48e84e3b423ddb73304cc
BLAKE2b-256 checksum
How to use checksums
89220b3dd3989ab1636e2fb97f4760ffd858ef77eaa0e84779e2c997f6da9c04
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.1-py3-none-any.whl

Download URL flask_pymongo-3.0.1-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c75a4a9d7f4dc41ddefcfe75d2a0a259049071d285242c1338c42c64dd1223d9
BLAKE2b-256 checksum
How to use checksums
6a0b5142f1b76332c0121c85a9fb5a10dce40bb10d586eea4fda3711abb6c2a4
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 history Release notifications | RSS feed

This release

3.0.1 This release

2 release files

3.0.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

0.5.2

2 release files

0.5.1

3 release files

0.5.0

3 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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