Skip to main content

No project description provided

Project description

Muffin-Mongo – MongoDB support for Muffin framework.

Build Status http://img.shields.io/pypi/v/muffin-mongo.svg?style=flat-square http://img.shields.io/pypi/dm/muffin-mongo.svg?style=flat-square

Requirements

  • python >= 3.3

Installation

Muffin-Mongo should be installed using pip:

pip install muffin-mongo

Usage

Add muffin_mongo to PLUGINS in your Muffin Application configuration.

Or install it manually like this:

mongo = muffin_mongo.Plugin(**{'options': 'here'})

app = muffin.Application('test')
app.install(mongo)

Appllication configuration options

MONGO_HOST – Connection IP address (127.0.0.1) MONGO_PORT – Connection port (27017) MONGO_DB – Connection database (None) MONGO_USERNAME – Connection username (None) MONGO_PASSWORD – Connection password (None) MONGO_POOL – Connection pool size (1)

Queries

@app.register
def view(request):
    foo = app.mongo.foo  # foo database
    test = foo.test      # test collection

    # fetch some documents
    docs = yield from test.find(limit=10)
    return list(docs)

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/muffin-mongo/issues

Contributing

Development of Muffin-Mongo happens at: https://github.com/klen/muffin-mongo

Contributors

  • klen (Kirill Klenov)

License

Licensed under a MIT license.

Kirill Klenov
pos. Severny 8-3
MO, Istra, 143500
Russia

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

muffin-mongo-0.1.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

muffin_mongo-0.1.0-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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