Showing content from http://github.com/cobrateam/flask-mongoalchemy/ below:
cobrateam/flask-mongoalchemy: Flask support for MongoDB using MongoAlchemy.
Flask support for MongoDB using MongoAlchemy.
If you want to get started, check the example sourcecode out.
For full documentation, see the online docs at: https://pythonhosted.org/Flask-MongoAlchemy/.
Bootstraping the development environment
If you are using a virtualenv, bootstrap your development environment by running:
$ make bootstrap
With all dependencies installed (after bootstrap development env), just run:
$ make test
#cobrateam on chanel irc.freenode.net
- Pin pymongo version to ensure driver compatibility.
- Support for specifying the full connection string, via the MONGOALCHEMY_CONNECTION_STRING configuration value.
- Multiple database support (thanks Misja Hoebe)
- Replica set support, via the MONGOALCHEMY_REPLICA_SET configuration value.
- Use the not-so-new extension scheme for Flask, users now should import the extension using the flask.ext metapackage
- Some fixes in the docs, regarding other extensions usage in examples
- [bugfix] fix compatibility with pymongo 2.2
- [bugfix] fixed a bug on setup.py
- added a configuration flag for user authentication based either on database or server
- [bugfix] fixed server based authentication
- [bugfix] fixed the subpackage structure
- Support for multiple MongoDB sessions
- [bugfix] added database to MongoDB URI for authenticated connectinos
- Fixed pymongo dependency in setup.py
- MongoAlchemy 0.9 as dependency
- [bugfix] safe session operations on connect, save and remove
- Documentation improvements
- Support for safe or unsafe sessions and operations
- Fixed dependencies on
setup.py
- Compatibility with Flask 0.7
- [bugfix] method
get
on Query
objects was never returning the object
- Introduced update queries support
-
Reverse compatibility broken on Document
class. The get()
method was moved to BaseQuery
class. Here the old code, on version 0.1
:
>>> Document.get(mongo_id)
And the new code, on version 0.2
:
>>> Document.query.get(mongo_id)
-
Added get_or_404
, first_or_404
and paginate
methods on BaseQuery
class. Check the documentation to know how to use them :)
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4