{"id":13480787,"url":"https://github.com/mongodb/motor","last_synced_at":"2025-11-11T20:56:20.373Z","repository":{"id":6331926,"uuid":"7567432","full_name":"mongodb/motor","owner":"mongodb","description":"Motor - the async Python driver for MongoDB and Tornado or asyncio","archived":false,"fork":false,"pushed_at":"2025-04-29T18:56:32.000Z","size":3923,"stargazers_count":2491,"open_issues_count":0,"forks_count":210,"subscribers_count":86,"default_branch":"master","last_synced_at":"2025-05-07T23:29:55.089Z","etag":null,"topics":["async","mongodb","python"],"latest_commit_sha":null,"homepage":"https://motor.readthedocs.io","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"github/markup","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-01-11T21:34:44.000Z","updated_at":"2025-04-30T13:12:03.000Z","dependencies_parsed_at":"2023-01-13T13:56:38.727Z","dependency_job_id":"2f8eb10b-4e21-4b7c-9315-103f2e14737c","html_url":"https://github.com/mongodb/motor","commit_stats":{"total_commits":1802,"total_committers":54,"mean_commits":"33.370370370370374","dds":"0.22530521642619317","last_synced_commit":"ff9932ce6f405b68e8a0aff566b7736a55cd1334"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmotor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmotor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmotor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb%2Fmotor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb","download_url":"https://codeload.github.com/mongodb/motor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249199,"owners_count":22039029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","mongodb","python"],"created_at":"2024-07-31T17:00:45.024Z","updated_at":"2025-11-11T20:56:20.362Z","avatar_url":"https://github.com/mongodb.png","language":"Python","readme":"# Motor\n\n[![PyPI Version](https://img.shields.io/pypi/v/motor)](https://pypi.org/project/motor)\n[![Python Versions](https://img.shields.io/pypi/pyversions/motor)](https://pypi.org/project/motor)\n[![Monthly Downloads](https://static.pepy.tech/badge/motor/month)](https://pepy.tech/project/motor)\n[![Documentation Status](https://readthedocs.org/projects/motor/badge/?version=stable)](http://motor.readthedocs.io/en/stable/?badge=stable)\n\n![image](https://raw.github.com/mongodb/motor/master/doc/_static/motor.png)\n\n\u003e [!WARNING]\n\u003e As of May 14th, 2025, Motor is deprecated in favor of the GA release of the PyMongo Async API.\n\u003e No new features will be added to Motor, and only bug fixes will be provided until it reaches end of life on May 14th, 2026.\n\u003e After that, only critical bug fixes will be made until final support ends on May 14th, 2027.\n\u003e We strongly recommend migrating to the PyMongo Async API while Motor is still supported.\n\u003e For help transitioning, see the Migrate to PyMongo Async guide: https://www.mongodb.com/docs/languages/python/pymongo-driver/current/reference/migration/\u003e.\n\n## About\n\nMotor is a full-featured, non-blocking [MongoDB](http://mongodb.org/)\ndriver for Python [asyncio](https://docs.python.org/3/library/asyncio.html) and\n[Tornado](http://tornadoweb.org/) applications. Motor presents a coroutine-based API\nfor non-blocking access to MongoDB.\n\n\u003e \"We use Motor in high throughput environments, processing tens of\n\u003e thousands of requests per second. It allows us to take full advantage\n\u003e of modern hardware, ensuring we utilise the entire capacity of our\n\u003e purchased CPUs. This helps us be more efficient with computing power,\n\u003e compute spend and minimises the environmental impact of our\n\u003e infrastructure as a result.\"\n\u003e\n\u003e --*David Mytton, Server Density*\n\u003e\n\u003e \"We develop easy-to-use sensors and sensor systems with open source\n\u003e software to ensure every innovator, from school child to laboratory\n\u003e researcher, has the same opportunity to create. We integrate Motor\n\u003e into our software to guarantee massively scalable sensor systems for\n\u003e everyone.\"\n\u003e\n\u003e --*Ryan Smith, inXus Interactive*\n\n## Support / Feedback\n\nFor issues with, questions about, or feedback for PyMongo, please look\ninto our [support channels](https://support.mongodb.com/welcome). Please\ndo not email any of the Motor developers directly with issues or\nquestions - you're more likely to get an answer on the\n[StackOverflow](https://stackoverflow.com/questions/tagged/mongodb)\n(using a \"mongodb\" tag).\n\n## Bugs / Feature Requests\n\nThink you've found a bug? Want to see a new feature in Motor? Please\nopen a case in our issue management tool, JIRA:\n\n- [Create an account and login](https://jira.mongodb.org).\n- Navigate to [the MOTOR\n  project](https://jira.mongodb.org/browse/MOTOR).\n- Click **Create Issue** - Please provide as much information as\n  possible about the issue type and how to reproduce it.\n\nBug reports in JIRA for all driver projects (i.e. MOTOR, CSHARP, JAVA)\nand the Core Server (i.e. SERVER) project are **public**.\n\n### How To Ask For Help\n\nPlease include all of the following information when opening an issue:\n\n- Detailed steps to reproduce the problem, including full traceback, if\n  possible.\n\n- The exact python version used, with patch level:\n\n```bash\npython -c \"import sys; print(sys.version)\"\n```\n\n- The exact version of Motor used, with patch level:\n\n```bash\npython -c \"import motor; print(motor.version)\"\n```\n\n- The exact version of PyMongo used, with patch level:\n\n```bash\npython -c \"import pymongo; print(pymongo.version); print(pymongo.has_c())\"\n```\n\n- The exact Tornado version, if you are using Tornado:\n\n```bash\npython -c \"import tornado; print(tornado.version)\"\n```\n\n- The operating system and version (e.g. RedHat Enterprise Linux 6.4,\n  OSX 10.9.5, ...)\n\n### Security Vulnerabilities\n\nIf you've identified a security vulnerability in a driver or any other\nMongoDB project, please report it according to the [instructions\nhere](https://mongodb.com/docs/manual/tutorial/create-a-vulnerability-report).\n\n## Installation\n\nMotor can be installed with [pip](http://pypi.python.org/pypi/pip):\n\n```bash\npip install motor\n```\n\n## Dependencies\n\nMotor works in all the environments officially supported by Tornado or\nby asyncio. It requires:\n\n- Unix (including macOS) or Windows.\n- [PyMongo](http://pypi.python.org/pypi/pymongo/) \u003e=4.9,\u003c5\n- Python 3.10+\n\nOptional dependencies:\n\nMotor supports same optional dependencies as PyMongo. Required\ndependencies can be installed along with Motor.\n\nGSSAPI authentication requires `gssapi` extra dependency. The correct\ndependency can be installed automatically along with Motor:\n\n```bash\npip install \"motor[gssapi]\"\n```\n\nsimilarly,\n\nMONGODB-AWS authentication requires `aws` extra dependency:\n\n```bash\npip install \"motor[aws]\"\n```\n\nSupport for mongodb+srv:// URIs requires `srv` extra dependency:\n\n```bash\npip install \"motor[srv]\"\n```\n\nOCSP requires `ocsp` extra dependency:\n\n```bash\npip install \"motor[ocsp]\"\n```\n\nWire protocol compression with snappy requires `snappy` extra\ndependency:\n\n```bash\npip install \"motor[snappy]\"\n```\n\nWire protocol compression with zstandard requires `zstd` extra\ndependency:\n\n```bash\npip install \"motor[zstd]\"\n```\n\nClient-Side Field Level Encryption requires `encryption` extra\ndependency:\n\n```bash\npip install \"motor[encryption]\"\n```\n\nYou can install all dependencies automatically with the following\ncommand:\n\n```bash\npip install \"motor[gssapi,aws,ocsp,snappy,srv,zstd,encryption]\"\n```\n\nSee\n[requirements](https://motor.readthedocs.io/en/stable/requirements.html)\nfor details about compatibility.\n\n## Examples\n\nSee the [examples on\nReadTheDocs](https://motor.readthedocs.io/en/stable/examples/index.html).\n\n## Documentation\n\nMotor's documentation is on\n[ReadTheDocs](https://motor.readthedocs.io/en/stable/).\n\nBuild the documentation with Python 3.10+. Install\n[sphinx](http://sphinx.pocoo.org/), [Tornado](http://tornadoweb.org/),\nand [aiohttp](https://github.com/aio-libs/aiohttp), and do\n`cd doc; make html`.\n\n## Learning Resources\n\n- MongoDB Learn - [Python\ncourses](https://learn.mongodb.com/catalog?labels=%5B%22Language%22%5D\u0026values=%5B%22Python%22%5D).\n- [Python Articles on Developer\nCenter](https://www.mongodb.com/developer/languages/python/).\n\n## Testing\n\nRun `python setup.py test`. Tests are located in the `test/` directory.\n","funding_links":[],"categories":["Database Drivers","资源列表","Python","Database Clients","Data Management \u0026 Processing","数据库驱动程序","数据库 Drivers","数据库驱动","Libraries","Database Drivers [🔝](#readme)","📚 فهرست","Awesome Python"],"sub_categories":["数据库驱动","Database \u0026 Cloud Management","Python","دیتابیس","Database Drivers","ASGI Servers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fmotor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb%2Fmotor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb%2Fmotor/lists"}