Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

No project description provided.

Project Description

Muffin-Motor – A simple motor plugin for muffin framework.

Requirements

  • python >= 3.4.1
  • muffin >= 0.5.5
  • motor >= 1.0

Installation

Muffin-Motor should be installed using pip:

pip install muffin-motor

Usage

Add muffin-motor to muffin plugin list:

import muffin


app = muffin.Application(
    'example',

    PLUGINS=(
        'muffin_motor',
    )
)

And use motor plugin:

@app.register('/example')
class Example(muffin.Handler):

    @asyncio.coroutine
    def get(self, request):
        collection = app.ps.motor.test
        doc = yield from collection.find_one({'test': 'foo'})
        return doc

Options

MOTOR_HOST Host of mongodb server (127.0.0.1)
MOTOR_PORT Port of mongodb server (27017)
MOTOR_MAX_POOL_SIZE Max connection pool size (1)
MOTOR_DB Database (default)
MOTOR_KWARGS Others args of client create({})

Bug tracker

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

Contributing

Development of Muffin-Motor happens at: https://github.com/drgarcia1986/muffin-motor

Contributors

License

Licensed under a MIT license.

Release History

This version
History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
muffin_motor-0.3.0-py2.py3-none-any.whl
(4.8 kB) Copy SHA256 Hash SHA256
Wheel 3.5 Jan 12, 2017
muffin-motor-0.3.0.tar.gz
(3.9 kB) Copy SHA256 Hash SHA256
Source None Jan 12, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting