Skip to main content

Flask extension that provides integration with MongoEngine and WTF model forms.

Project description

Flask-MongoEngine

PyPI version CI Tests Documentation Status Maintainability Test Coverage PyPI - Downloads

Flask-MongoEngine is a Flask extension that provides integration with MongoEngine, WtfForms and FlaskDebugToolbar.

Installation

By default, Flask-MongoEngine will install integration only between Flask and MongoEngine. Integration with WTFForms and 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.0.0
pip install flask-mongoengine-3

We still maintain special case for Flask = 1.1.4 support (the latest version in 1.x.x branch). To install flask-mongoengine with required dependencies use legacy extra option.

# With Flask 1.1.4 dependencies
pip install flask-mongoengine-3[legacy]

Installation with WTFForms and Flask-WTF support

Flask-mongoengine can be installed with Flask-WTF and WTFForms support. This will extend project dependencies with Flask-WTF, WTFForms and related packages.

# With Flask-WTF and WTFForms dependencies
pip install flask-mongoengine-3[wtf]

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-mongoengine with related support, use:

# With FlaskDebugToolbar dependencies
pip install flask-mongoengine-3[toolbar]

Installation with all features together

# With Flask-WTF, WTFForms and FlaskDebugToolbar dependencies
pip install flask-mongoengine-3[wtf,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-MongoEngine is distributed under BSD 3-Clause License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask-mongoengine-3-1.0.9.tar.gz (239.3 kB view details)

Uploaded Source

Built Distribution

flask_mongoengine_3-1.0.9-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file flask-mongoengine-3-1.0.9.tar.gz.

File metadata

  • Download URL: flask-mongoengine-3-1.0.9.tar.gz
  • Upload date:
  • Size: 239.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for flask-mongoengine-3-1.0.9.tar.gz
Algorithm Hash digest
SHA256 d05c590c1e8f3f4d179d1c09be7c5cbf0c2ba017aa893c460751d27b674bc910
MD5 82a381b80d4e8b296d80b076cd3ad5a6
BLAKE2b-256 adc0ddcbf1998a63770793034c0c3e9ca7d90993f222e899a9b00c930e55a6d0

See more details on using hashes here.

File details

Details for the file flask_mongoengine_3-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_mongoengine_3-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 379c8a7b4e3593cff7ac86714f373c2bee1f2d2cd4258d8846347b4d0f437c12
MD5 d648eb6218332dd3d8693da196a49280
BLAKE2b-256 03b2aa562c8aa8b114187dbdd010e2a12263ab806ba80891ae053096d3de3ba4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page