{"library":"motor-types","title":"Motor-Types (stubs only)","description":"Third-party PEP 561 type stubs for Motor, the async MongoDB driver for Tornado and AsyncIO. Current version 1.0.0b4 (pre-release). Alpha-level coverage; many symbols still untyped. Cadence: infrequent.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install motor-types"],"cli":null},"imports":["from motor.motor_asyncio import AsyncIOMotorClient"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import asyncio\nfrom motor.motor_asyncio import AsyncIOMotorClient\n\nasync def main():\n    client = AsyncIOMotorClient('mongodb://localhost:27017')\n    db = client.test_database\n    collection = db.test_collection\n    await collection.insert_one({'x': 1})\n    doc = await collection.find_one({'x': 1})\n    print(doc)\n\nasyncio.run(main())","lang":"python","description":"Basic create, insert, query with Motor (quickstart for the driver, not stubs). motor-types provides the type hints.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}