没有项目描述
muffin-motor的Python项目详细描述
muffin motor–一个用于muffin框架的简单motor插件。
要求
- python>;=3.4.1
- 松饼=0.5.5
- 电机=1.0
安装
应使用pip:
pip install muffin-motor
用法
将muffin motor添加到muffin插件列表:
importmuffinapp=muffin.Application('example',PLUGINS=('muffin_motor',))
使用motor插件:
@app.register('/example')classExample(muffin.Handler):@asyncio.coroutinedefget(self,request):collection=app.ps.motor.testdoc=yield fromcollection.find_one({'test':'foo'})returndoc
选项
MOTOR_HOST | Host of mongodb server (^{tt1}$) |
MOTOR_PORT | Port of mongodb server (^{tt2}$) |
MOTOR_MAX_POOL_SIZE | Max connection pool size (^{tt3}$) |
MOTOR_DB | Database (^{tt4}$) |
MOTOR_KWARGS | Others args of client create(^{tt5}$) |
错误跟踪器
如果您有任何建议、错误报告或 烦恼请向问题追踪者报告 在https://github.com/drgarcia1986/muffin-motor/issues
贡献
松饼马达的发展发生在:https://github.com/drgarcia1986/muffin-motor
贡献者
- drgarcia1986(迭戈加西亚)
许可证
根据MIT license授权。