Skip to content

Flask-PyMongo 2.0 #110

@dcrosta

Description

@dcrosta

TL;DR:

  • Flask-PyMongo 2.0.0b1 is available on PyPI (use pip install --pre ...; docs here)
  • It is not backwards incompatible. You must use a URI to configure it (app.config["MONGO_URI"] = ...)
  • Tentative release date July 1, 2018
    ** If you don't have time to update your app to use a URI by then, pin down to version 0.5.2 in your requirements

Keeping up with PyMongo and MongoDB developments has been a continual struggle for me as maintainer of Flask-PyMongo, as attested to by the long list of bugs filed. I have let down those who use this project, and I apologize for that.

In order to make the maintenance load acceptable, I have decided to release version 2.0 which will remove all of the "split out" configuration functionality. In 2.0, Flask-PyMongo will only read a MongoDB connection URI from Flask config. For cases where some configuration cannot be passed via URI, it will also accept keyword arguments, which will be passed directly to PyMongo.

I anticipate that this will require changes from many users of Flask-PyMongo, and I apologize for the disruption. I believe that this direction will enable me to keep up with compatibility requests, reduce the number of custom forked versions, and provide a more compact and stable platform for future development.

If you have not yet done so, please pin your version of Flask-PyMongo to the current version (e.g. flask-pymongo<2.0 in a requirements.txt file).

I will try to answer any questions that may come up in this thread until (and likely slightly after) the release of 2.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions