Tornado或Asyncio的非阻塞MongoDB驱动程序
motor的Python项目详细描述
Info: | Motor is a full-featured, non-blocking MongoDB driver for Python Tornado and asyncio applications. |
---|---|
Author: | A. Jesse Jiryu Davis |
关于
motor为非阻塞访问提供了一个基于协程的api。 到MongoDB。来源是on GitHub 文件在ReadTheDocs上。
“We use Motor in high throughput environments, processing tens of thousands of requests per second. It allows us to take full advantage of modern hardware, ensuring we utilise the entire capacity of our purchased CPUs. This helps us be more efficient with computing power, compute spend and minimises the environmental impact of our infrastructure as a result.”
—David Mytton, Server Density
“We develop easy-to-use sensors and sensor systems with open source software to ensure every innovator, from school child to laboratory researcher, has the same opportunity to create. We integrate Motor into our software to guarantee massively scalable sensor systems for everyone.”
—Ryan Smith, inXus Interactive
安装
$ pip install motor
依赖关系
在龙卷风或 异步。它需要:
- Unix,包括Mac OS X。不支持Windows。
- PyMongo3.6或更高版本。
- Python2.7或更高版本。
- futures在python 2.7上。
- backports.pbkdf2使用MongoDB 3.0+进行更快的身份验证, 尤其是在2.7.8之前的python上,或者在python 3.4之前的python3上。
见requirements 有关兼容性的详细信息。
如何寻求帮助
有关马达的问题、问题或反馈应发送到 mongodb-user list on Google Groups。
对于已确认的问题或功能请求, 在“motor”项目的Jira中打开一个案例。 请包括以下所有信息:
重现问题的详细步骤,包括您的代码和完整的 如果可能的话,回溯。
你期望发生的事,以及实际发生的事。
使用的python版本,补丁级别:
$ python -c "import sys; print(sys.version)"
使用的pymongo的确切版本:
$ python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"
准确的龙卷风版本,如果您使用的是龙卷风:
$ python -c "import tornado; print(tornado.version)"
操作系统和版本(如Redhat Enterprise Linux 6.4、OSX 10.9.5,…)
测试
运行python setup.py test。 测试位于test/目录中。