Skip to main content

Add Flask support for MongoDB using MongoAlchemy.

Project description

Flask support for MongoDB using MongoAlchemy.

Documentation

If you want to get started, check the example sourcecode out.

For full documentation, see the online docs at: http://packages.python.org/Flask-MongoAlchemy/.

Development

Bootstraping the development environment

If you are using a virtualenv, bootstrap your development environment by running:

$ make bootstrap

Running tests

With all dependencies installed (after bootstrap development env), just run:

$ make test

Community

#cobrateam on chanel irc.freenode.net

Changelog

Flask-MongoAlchemy 0.4.3

  • [bugfix] added database to MongoDB URI for authenticated connectinos

Flask-MongoAlchemy 0.4.2

  • Fixed pymongo dependency in setup.py

Flask-MongoAlchemy 0.4.1

  • MongoAlchemy 0.9 as dependency

  • [bugfix] safe session operations on connect, save and remove

Flask-MongoAlchemy 0.4

  • Documentation improvements

  • Support for safe or unsafe sessions and operations

Flask-MongoAlchemy 0.3.3

  • Fixed dependencies on setup.py

Flask-MongoAlchemy 0.3.2

  • Compability with Flask 0.7

Flask-MongoAlchemy 0.3.1

  • [bugfix] method get on Query objects was never returning the object

Flask-MongoAlchemy 0.3

  • Introduced update queries support

Flask-MongoAlchemy 0.2

  • 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 :)

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-MongoAlchemy-0.4.3.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file Flask-MongoAlchemy-0.4.3.tar.gz.

File metadata

File hashes

Hashes for Flask-MongoAlchemy-0.4.3.tar.gz
Algorithm Hash digest
SHA256 c67630d161e59f9a254b82de94f808f5dfe2cee2b9f66d82ecd8d4a5e9da5bc1
MD5 577261246de58a11c5c7ac0eb91eb7e9
BLAKE2b-256 a9868ce0934ca34b695105b8876ca08ebc553baf6c53a4274b8fd5d41a26ff4b

See more details on using hashes here.

Provenance

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