Skip to main content

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

Build Status

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.

Metadata

Release files for muffin-motor 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for muffin-motor 0.2.0
File Size Uploaded
muffin-motor-0.2.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for muffin-motor 0.2.0
File Interpreter ABI Platform
muffin_motor-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.7 kB

Release files / muffin-motor-0.2.0.tar.gz

Download URL muffin-motor-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
16fdffef0b590191e2de2dc86419f0ad2d8f69ffe8b14c4062042311f1fe5e25
BLAKE2b-256 checksum
How to use checksums
20a6572a1daaf7e8dec432a65585134294431475cdfa71db13f1754df8524912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / muffin_motor-0.2.0-py2.py3-none-any.whl

Download URL muffin_motor-0.2.0-py2.py3-none-any.whl
Size 4.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f7af422a7064fad3a83ab7a98199dc8243143d1962a33afb276627d97b2bf57e
BLAKE2b-256 checksum
How to use checksums
69219df87677bd964fa4a2b034d5efd4c0906035c4517f712be9fc75bf5972d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page