Skip to main content

UNKNOWN

Project description

# Muffin-Motor
[![Build Status](https://travis-ci.org/drgarcia1986/muffin-motor.svg)](https://travis-ci.org/drgarcia1986/muffin-motor)

Muffin-Motor -- A simple [MOTOR](https://github.com/mongodb/motor) plugin for [muffin framework](https://github.com/klen/muffin).


## Requirements

- python >= 3.4
- muffin >= 0.1.6
- motor >= 0.5

## Installation

**Muffin-Motor** should be installed using pip:
```
pip install git+https://github.com/drgarcia1986/muffin-motor.git
```

## Usage

Add Muffin-Motor to muffin plugin list:

```python
import muffin


app = muffin.Application(
'example',

PLUGINS=(
'muffin_motor',
)
)
```

And use *motor* plugin:

```python
@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
```
## 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
* [Diego Garcia](https://github.com/drgarcia1986)

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.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for muffin-motor-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5e3a67794c751ac5f56359cfbb31c0fbf9b5c51f5a5cdcb912f44f0af5ea6797
MD5 02d8aecf34ab85fe7dede78edf79b55d
BLAKE2b-256 23f46c892923e76303f1c292c874763493e5a04eb033f7d683391b1e0c656256

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