- Support Flask 3.0+ and PyMongo 4.0+.
- Support Python 3.9-3.13.
- Support MongoDB 4.4+.
- Add support for
~flask.json.jsonify()
.
- Update version compatibility matrix in tests, drop official support for PyMongo less than 3.3.x.
- #117 Allow URIs without database name.
- #114 Accept
keyword arguments to
~flask_pymongo.PyMongo.save_file
(Andrew C. Hawkins).
- #113 Make the
app
argument toPyMongo
optional (yarobob).
This release is not compatible with Flask-PyMongo 0.5.x or any earlier version. You can see an explanation of the reasoning and changes in issue #110.
- Only support configuration via URI.
- Don't connect to MongoDB by default.
- Clarify version support of Python, Flask, PyMongo, and MongoDB.
- Readability improvement to
README.md
(MinJae Kwon).
- #102 Return 404, not 400, when given an invalid input to BSONObjectIdConverter (Abraham Toriz Cruz).
- #93 Supply a
default
MONGO_AUTH_MECHANISM
(Mark Unsworth).
This will be the last 0.x series release. The next non-bugfix release will be Flask-PyMongo 2.0, which will introduce backwards breaking changes, and will be the foundation for improvements and changes going forward. Flask-PyMongo 2.0 will no longer support Python 2.6, but will support Python 2.7 and Python 3.3+.
- #44,
#51 Redirect
/
to/HomePage
in the wiki example (David Awad) - #76 Build on more modern Python versions (Robson Roberto Souza Peixoto)
- #79,
#84,
#85 Don't use
flask.ext
import paths any more (ratson, juliascript) - #40,
#83,
#86 Fix options
parsing from
MONGO_URI
(jobou) - #72,
#80 Support
MONGO_SERVER_SELECTION_TIMEOUT_MS
(Henrik Blidh) - #34,
#64,
#88 Support
from
MONGO_AUTH_SOURCE
andMONGO_AUTH_MECHANISM
(Craig Davis) - #74,
#77,
#78 Fixed
maxPoolSize
in PyMongo 3.0+ (Henrik Blidh) - #82 Fix "another user is already authenticated" error message.
- #54
Authenticate against "admin" database if no
MONGO_DBNAME
is provided.
- Add the connect keyword: #67.
- Flask-Pymongo is now compatible with pymongo 3.0+: #63.
- Flask-PyMongo is now tested against Python 2.6, 2.7, 3.3, and 3.4.
- Flask-PyMongo installation now no longer depends on nose.
- #58 Update requirements for PyMongo 3.x (Emmanuel Valette).
- #43 Ensure error is raised when URI database name is parsed as 'None' (Ben Jeffrey).
- #50 Fix a bug in read preference handling (Kevin Funk).
- #46 Cannot use multiple replicaset instances which run on different ports (Mark Unsworth).
- #30 ConfiguationError with MONGO_READ_PREFERENCE (Mark Unsworth).
- This is a minor version bump which introduces backwards breaking changes! Please read these change notes carefully.
- Removed read preference constants from Flask-PyMongo; to set a read
preference, use the string name or import constants directly from
pymongo.read_preferences.ReadPreference
. - #22 (partial)
Add support for
MONGO_SOCKET_TIMEOUT_MS
andMONGO_CONNECT_TIMEOUT_MS
options (ultrabug). - #27 (partial) Make Flask-PyMongo compatible with Python 3 (Vizzy).
- #19 Added
MONGO_DOCUMENT_CLASS
config option (jeverling).
- This is a minor version bump which may introduce backwards breaking changes! Please read these change notes carefully.
- #17 Now using
PyMongo 2.4's
MongoClient
andMongoReplicaSetClient
objects instead ofConnection
andReplicaSetConnection
classes (tang0th). - #17 Now requiring at least PyMongo version 2.4 (tang0th).
- #17 The wrapper
class
flask_pymongo.wrappers.Connection
is renamed toflask_pymongo.wrappers.MongoClient
(tang0th). - #17 The wrapper
class
flask_pymongo.wrappers.ReplicaSetConnection
is renamed toflask_pymongo.wrappers.MongoReplicaSetClient
(tang0th). - #18
MONGO_AUTO_START_REQUEST
now defaults toFalse
when connecting using a URI.
- #15 Added
support for
MONGO_MAX_POOL_SIZE
(Fabrice Aneche)
- Added support for configuration from MongoDB URI.
- Updated wiki example application
- #14 Added examples and docs to PyPI package.
- Added support for PyMongo 2.2's "auto start request" feature, by way
of the
MONGO_AUTO_START_REQUEST
configuration flag. - #13 Added BSONObjectIdConverter (Christoph Herr)
- #12 Corrected documentation typo (Thor Adam)
- Initial Release