Flask extension that provides integration with MongoEngine.
Project description
Flask-MongoEngine2
Flask-MongoEngine2 is a Flask extension that provides integration with MongoEngine and FlaskDebugToolbar.
Installation
By default, Flask-MongoEngine2 will install integration only between Flask and MongoEngine. Integration with FlaskDebugToolbar are optional and should be selected as extra option, if required. This is done by users request, to limit amount of external dependencies in different production setup environments.
All methods end extras described below are compatible between each other and can be used together.
Installation with MongoEngine only support
# For Flask >= 2.3.0
pip install flask-mongoengine2
Installation with Flask Debug Toolbar support
Flask-mongoengine provide beautiful extension to FlaskDebugToolbar allowing to monitor all database requests. To use this extension FlaskDebugToolbar itself required. If you need to install flask-mongoengine2 with related support, use:
# With FlaskDebugToolbar dependencies
pip install flask-mongoengine2[toolbar]
Flask configuration
Flask-mongoengine does not provide any configuration defaults. User is responsible for setting up correct database settings, to exclude any possible misconfiguration and data corruption.
There are several options to set connection. Please note, that all except recommended are deprecated and may be removed in future versions, to lower code base complexity and bugs. If you use any deprecated connection settings approach, you should update your application configuration.
Please refer to [complete connection settings description] for more info.
Usage and API documentation
Full project documentation available on read the docs.
Contributing and testing
We are welcome for contributors and testers! Check Contribution guidelines.
License
Flask-MongoEngine2 is distributed under BSD 3-Clause License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flask_mongoengine2-2.2.0.tar.gz
.
File metadata
- Download URL: flask_mongoengine2-2.2.0.tar.gz
- Upload date:
- Size: 192.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1e5f1b623514580eead6a5d6bc1a2ddf8802e0d4d2bbdd1b494bd7c94fe9ed4 |
|
MD5 | b2e5f3efb1321e57ab727ecbed48314f |
|
BLAKE2b-256 | 43dadb545cecda44b3eb4f37355e2eec689eebf4ba9cb4be93713e727800bf05 |
File details
Details for the file flask_mongoengine2-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: flask_mongoengine2-2.2.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02449ad6f0507fd3b9fb90b55ae7a13cde26accf7416a33ef9241a5d837e76b8 |
|
MD5 | 1f9180593b562941c0ddebbbdab1df58 |
|
BLAKE2b-256 | 9f646ea622a0947ed34abc0d48fd4b6e76889f47b480755ddff50fcc318e5a8f |