Skip to main content

UNKNOWN

Project description

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

Build Status

Requirements

  • python >= 3.4.1

  • muffin >= 0.5.5

  • motor >= 0.5

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)

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.

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-motor-0.0.3.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file muffin-motor-0.0.3.tar.gz.

File metadata

File hashes

Hashes for muffin-motor-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a1c3dc6ccc19cd56564858394cf636c338e938f072f2fb927428924f49f1016d
MD5 aa1e61d12182f3100c70f907eb912f63
BLAKE2b-256 128b74b31465c35ed51bdb768e1b71e5d089cda36be3f2b28e7bcf2dcc4c516f

See more details on using hashes here.

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