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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask_pymongo-3.0.1.tar.gz | 7.3 kB | With provenance | Details for flask_pymongo-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_pymongo-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for flask_pymongo-3.0.1-py3-none-any.whl |
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 logRelease 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 logSecurity for Flask-PyMongo 3.0.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for flask_pymongo-3.0.1.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 logA 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.