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
drgarcia1986 (Diego Garcia)
License
Licensed under a MIT license.
Release files for muffin-motor 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| muffin-motor-0.3.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| muffin_motor-0.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / muffin-motor-0.3.0.tar.gz
| Download URL | muffin-motor-0.3.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffc75a352677fe2fa46847f8e061d797c8ba5b619759fe4be2f8e6fc73a2b0e2
|
|
BLAKE2b-256 checksum How to use checksums |
326d0c89c2affa210145c2a02d9614d757403b1149ad8d6657c2c565dc3b2bb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / muffin_motor-0.3.0-py2.py3-none-any.whl
| Download URL | muffin_motor-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ef45775e91e8986fd5d9e4432535866fc9954bb199695f62aab320877292b88d
|
|
BLAKE2b-256 checksum How to use checksums |
79a945dbffc4eec499f7e822b3f27a202529b2418b063bd908da32c40f364331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |