UNKNOWN
Project description
Muffin-Motor – A simple motor plugin for muffin framework.
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) |
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
drgarcia1986 (Diego Garcia)
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
Built Distribution
File details
Details for the file muffin-motor-0.1.0.tar.gz
.
File metadata
- Download URL: muffin-motor-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bb5d1dd602697385c14a6b0464a73dfb98177be12e682f81e18e5c1ca878e2f |
|
MD5 | b4863e416eea3c62e29f34fff573f8b4 |
|
BLAKE2b-256 | b819666e18f2d8dfbda2931324c1dbf9e02308fc4ad4fdb45b067edbbccce159 |
File details
Details for the file muffin_motor-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: muffin_motor-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e78eac366e964d9ef4beeba6103002462d7c3fbfb1cd8132c8a36405add81d0 |
|
MD5 | 33c0fc4fbb42046de520b4535bcd8f41 |
|
BLAKE2b-256 | e8be0c1d4eadd96428f1d0c76592f71c4c08d3e8969065c8e9ac253a2f95d3a6 |