Name | Flask-PyMongo JSON |
Version |
3.0.0
JSON |
| download |
home_page | None |
Summary | PyMongo support for Flask applications |
upload_time | 2025-01-29 19:21:21 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | Copyright (c) 2011-2017, Dan Crosta
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Flask-PyMongo
PyMongo support for Flask applications. Requires `flask>=3.0` and `pymongo>=4.0`
## Quickstart
```python
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
- [Flask-PyMongo Documentation](https://flask-pymongo.readthedocs.org/)
- [PyMongo Documentation](https://pymongo.readthedocs.io/en/stable/)
- [Flask Documentation](https://flask.palletsprojects.com/)
- [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)
Raw data
{
"_id": null,
"home_page": null,
"name": "Flask-PyMongo",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Dan Crosta <dcrosta@late.am>",
"download_url": "https://files.pythonhosted.org/packages/9b/fa/1374aa2b3e376d413e568f890a54f6504b0c98d4975e5cec172572eda1f1/flask_pymongo-3.0.0.tar.gz",
"platform": null,
"description": "# Flask-PyMongo\n\nPyMongo support for Flask applications. Requires `flask>=3.0` and `pymongo>=4.0`\n\n## Quickstart\n\n```python\nfrom flask import Flask, render_template\nfrom flask_pymongo import PyMongo\n\napp = Flask(__name__)\napp.config[\"MONGO_URI\"] = \"mongodb://localhost:27017/myDatabase\"\nmongo = PyMongo(app)\n\n\n@app.route(\"/\")\ndef home_page():\n online_users = mongo.db.users.find({\"online\": True})\n return render_template(\"index.html\", online_users=online_users)\n```\n\n## More Info\n\n- [Flask-PyMongo Documentation](https://flask-pymongo.readthedocs.org/)\n\n- [PyMongo Documentation](https://pymongo.readthedocs.io/en/stable/)\n\n- [Flask Documentation](https://flask.palletsprojects.com/)\n\n- [Quart-Motor (Motor for the Quart Framework)] (https://github.com/marirs/quart-motor)\n\n- [Motor Non-Blocking mongodb driver for asyncio applications] (https://github.com/mongodb/motor)\n",
"bugtrack_url": null,
"license": "Copyright (c) 2011-2017, Dan Crosta\n All rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n \n * Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n \n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n POSSIBILITY OF SUCH DAMAGE.",
"summary": "PyMongo support for Flask applications",
"version": "3.0.0",
"project_urls": {
"Download": "https://github.com/mongodb-labs/flask-pymongo/tags",
"Homepage": "http://flask-pymongo.readthedocs.org/"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "499dde75a678079c0a245fe16c67f9cedc62ecab23efb9f4551a4619e1f7c19e",
"md5": "5bcee1fa42e706edc9d5862ea6a45188",
"sha256": "52d2b4bfc4cbac9ec11dae55eed4c7f775a9b60927cb036641ef99d90eda5fb5"
},
"downloads": -1,
"filename": "flask_pymongo-3.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5bcee1fa42e706edc9d5862ea6a45188",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 10868,
"upload_time": "2025-01-29T19:21:20",
"upload_time_iso_8601": "2025-01-29T19:21:20.292259Z",
"url": "https://files.pythonhosted.org/packages/49/9d/de75a678079c0a245fe16c67f9cedc62ecab23efb9f4551a4619e1f7c19e/flask_pymongo-3.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9bfa1374aa2b3e376d413e568f890a54f6504b0c98d4975e5cec172572eda1f1",
"md5": "b7bb20fb4c0a7a94f7568e988e21ba6e",
"sha256": "cb73197f25a1aa0621e032f03a7d7814f54f5a472e0b3fa34a7b63d00246b156"
},
"downloads": -1,
"filename": "flask_pymongo-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "b7bb20fb4c0a7a94f7568e988e21ba6e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 7270,
"upload_time": "2025-01-29T19:21:21",
"upload_time_iso_8601": "2025-01-29T19:21:21.701398Z",
"url": "https://files.pythonhosted.org/packages/9b/fa/1374aa2b3e376d413e568f890a54f6504b0c98d4975e5cec172572eda1f1/flask_pymongo-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-29 19:21:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mongodb-labs",
"github_project": "flask-pymongo",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "flask-pymongo"
}