Metadata-Version: 2.1
Name: flask-mongoengine2
Version: 2.2.0
Summary: Flask extension that provides integration with MongoEngine.
Maintainer-email: Ahmet Elgün <ahmetelgn@gmail.com>
License: BSD 3-Clause License
Project-URL: Homepage, https://github.com/ahmetelgun/flask-mongoengine2
Project-URL: Documentation, https://flask-mongoengine2.readthedocs.io
Project-URL: Repository, https://github.com/ahmetelgun/flask-mongoengine2
Project-URL: Changelog, https://github.com/ahmetelgun/flask-mongoengine2/releases
Keywords: flask,forms,mongo,pymongo,mongoengine,extension
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Framework :: Flask
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.md
License-File: AUTHORS.md
Requires-Dist: Flask>=2.3.0
Requires-Dist: mongoengine<0.28,>=0.21
Requires-Dist: importlib-metadata; python_version < "3.8"
Requires-Dist: pymongo<=4.8
Provides-Extra: toolbar
Requires-Dist: Flask-DebugToolbar>=0.11.0; extra == "toolbar"
Provides-Extra: dev
Requires-Dist: black==22.6.0; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: pytest-mock; extra == "dev"
Requires-Dist: nox; extra == "dev"
Requires-Dist: Pillow>=7.0.0; extra == "dev"
Requires-Dist: blinker; extra == "dev"

# Flask-MongoEngine2

[![PyPI version](https://badge.fury.io/py/flask-mongoengine2.svg)](https://badge.fury.io/py/flask-mongoengine2)
[![CI Tests](https://github.com/ahmetelgun/flask-mongoengine2/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ahmetelgun/flask-mongoengine2/actions/workflows/tests.yml)
[![Documentation Status](https://readthedocs.org/projects/flask-mongoengine2/badge/?version=latest)](http://docs.mongoengine.org/projects/flask-mongoengine2/en/latest/?badge=latest)
[![Maintainability](https://api.codeclimate.com/v1/badges/709e5854f7b76b27637c/maintainability)](https://codeclimate.com/github/ahmetelgun/flask-mongoengine2/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/709e5854f7b76b27637c/test_coverage)](https://codeclimate.com/github/ahmetelgun/flask-mongoengine2/test_coverage)
![PyPI - Downloads](https://img.shields.io/pypi/dm/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

```bash
# 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:

```bash
# 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].

[MongoEngine]: https://github.com/MongoEngine/mongoengine

[FlaskDebugToolbar]: https://github.com/flask-debugtoolbar/flask-debugtoolbar

[read the docs]: https://flask-mongoengine2.readthedocs.io/en/latest/

[Flask]: https://github.com/pallets/flask

[BSD 3-Clause License]: LICENSE.md

[Contribution guidelines]: CONTRIBUTING.md
