Motor asyncio API¶
AsyncIOMotorClient
– Connection to MongoDBAsyncIOMotorClient
AsyncIOMotorClient.bulk_write()
AsyncIOMotorClient.drop_database()
AsyncIOMotorClient.get_database()
AsyncIOMotorClient.get_default_database()
AsyncIOMotorClient.list_database_names()
AsyncIOMotorClient.list_databases()
AsyncIOMotorClient.server_info()
AsyncIOMotorClient.start_session()
AsyncIOMotorClient.watch()
AsyncIOMotorClient.HOST
AsyncIOMotorClient.PORT
AsyncIOMotorClient.address
AsyncIOMotorClient.arbiters
AsyncIOMotorClient.close
AsyncIOMotorClient.codec_options
AsyncIOMotorClient.is_mongos
AsyncIOMotorClient.is_primary
AsyncIOMotorClient.nodes
AsyncIOMotorClient.options
AsyncIOMotorClient.primary
AsyncIOMotorClient.read_concern
AsyncIOMotorClient.read_preference
AsyncIOMotorClient.secondaries
AsyncIOMotorClient.topology_description
AsyncIOMotorClient.write_concern
AsyncIOMotorClientSession
– Sequence of operationsAsyncIOMotorClientSession
AsyncIOMotorClientSession.abort_transaction()
AsyncIOMotorClientSession.commit_transaction()
AsyncIOMotorClientSession.end_session()
AsyncIOMotorClientSession.start_transaction()
AsyncIOMotorClientSession.with_transaction()
AsyncIOMotorClientSession.advance_cluster_time
AsyncIOMotorClientSession.advance_operation_time
AsyncIOMotorClientSession.client
AsyncIOMotorClientSession.cluster_time
AsyncIOMotorClientSession.has_ended
AsyncIOMotorClientSession.in_transaction
AsyncIOMotorClientSession.operation_time
AsyncIOMotorClientSession.options
AsyncIOMotorClientSession.session_id
AsyncIOMotorDatabase
AsyncIOMotorDatabase
AsyncIOMotorDatabase.aggregate()
AsyncIOMotorDatabase.command()
AsyncIOMotorDatabase.create_collection()
AsyncIOMotorDatabase.cursor_command()
AsyncIOMotorDatabase.dereference()
AsyncIOMotorDatabase.drop_collection()
AsyncIOMotorDatabase.get_collection()
AsyncIOMotorDatabase.list_collection_names()
AsyncIOMotorDatabase.list_collections()
AsyncIOMotorDatabase.validate_collection()
AsyncIOMotorDatabase.watch()
AsyncIOMotorDatabase.with_options()
AsyncIOMotorDatabase.client
AsyncIOMotorDatabase.codec_options
AsyncIOMotorDatabase.name
AsyncIOMotorDatabase.read_concern
AsyncIOMotorDatabase.read_preference
AsyncIOMotorDatabase.write_concern
AsyncIOMotorCollection
AsyncIOMotorCollection
AsyncIOMotorCollection.database
AsyncIOMotorCollection.aggregate()
AsyncIOMotorCollection.aggregate_raw_batches()
AsyncIOMotorCollection.bulk_write()
AsyncIOMotorCollection.count_documents()
AsyncIOMotorCollection.create_index()
AsyncIOMotorCollection.create_indexes()
AsyncIOMotorCollection.create_search_index()
AsyncIOMotorCollection.create_search_indexes()
AsyncIOMotorCollection.delete_many()
AsyncIOMotorCollection.delete_one()
AsyncIOMotorCollection.distinct()
AsyncIOMotorCollection.drop()
AsyncIOMotorCollection.drop_index()
AsyncIOMotorCollection.drop_indexes()
AsyncIOMotorCollection.drop_search_index()
AsyncIOMotorCollection.estimated_document_count()
AsyncIOMotorCollection.find()
AsyncIOMotorCollection.find_one()
AsyncIOMotorCollection.find_one_and_delete()
AsyncIOMotorCollection.find_one_and_replace()
AsyncIOMotorCollection.find_one_and_update()
AsyncIOMotorCollection.find_raw_batches()
AsyncIOMotorCollection.index_information()
AsyncIOMotorCollection.insert_many()
AsyncIOMotorCollection.insert_one()
AsyncIOMotorCollection.list_indexes()
AsyncIOMotorCollection.list_search_indexes()
AsyncIOMotorCollection.options()
AsyncIOMotorCollection.rename()
AsyncIOMotorCollection.replace_one()
AsyncIOMotorCollection.update_many()
AsyncIOMotorCollection.update_one()
AsyncIOMotorCollection.update_search_index()
AsyncIOMotorCollection.watch()
AsyncIOMotorCollection.with_options()
AsyncIOMotorCollection.codec_options
AsyncIOMotorCollection.full_name
AsyncIOMotorCollection.name
AsyncIOMotorCollection.read_concern
AsyncIOMotorCollection.read_preference
AsyncIOMotorCollection.write_concern
AsyncIOMotorChangeStream
AsyncIOMotorClientEncryption
AsyncIOMotorClientEncryption
AsyncIOMotorClientEncryption.add_key_alt_name()
AsyncIOMotorClientEncryption.close()
AsyncIOMotorClientEncryption.create_data_key()
AsyncIOMotorClientEncryption.create_encrypted_collection()
AsyncIOMotorClientEncryption.decrypt()
AsyncIOMotorClientEncryption.delete_key()
AsyncIOMotorClientEncryption.encrypt()
AsyncIOMotorClientEncryption.encrypt_expression()
AsyncIOMotorClientEncryption.get_key()
AsyncIOMotorClientEncryption.get_key_by_alt_name()
AsyncIOMotorClientEncryption.remove_key_alt_name()
AsyncIOMotorClientEncryption.rewrap_many_data_key()
AsyncIOMotorCursor
AsyncIOMotorCursor
AsyncIOMotorCursor.add_option()
AsyncIOMotorCursor.allow_disk_use()
AsyncIOMotorCursor.clone()
AsyncIOMotorCursor.close()
AsyncIOMotorCursor.collation()
AsyncIOMotorCursor.comment()
AsyncIOMotorCursor.distinct()
AsyncIOMotorCursor.each()
AsyncIOMotorCursor.explain()
AsyncIOMotorCursor.hint()
AsyncIOMotorCursor.limit()
AsyncIOMotorCursor.max()
AsyncIOMotorCursor.max_await_time_ms()
AsyncIOMotorCursor.max_scan()
AsyncIOMotorCursor.max_time_ms()
AsyncIOMotorCursor.min()
AsyncIOMotorCursor.next()
AsyncIOMotorCursor.next_object()
AsyncIOMotorCursor.remove_option()
AsyncIOMotorCursor.rewind()
AsyncIOMotorCursor.skip()
AsyncIOMotorCursor.sort()
AsyncIOMotorCursor.to_list()
AsyncIOMotorCursor.where()
AsyncIOMotorCursor.address
AsyncIOMotorCursor.alive
AsyncIOMotorCursor.cursor_id
AsyncIOMotorCursor.fetch_next
AsyncIOMotorCursor.session
AsyncIOMotorCommandCursor
AsyncIOMotorCommandCursor
AsyncIOMotorCommandCursor.close()
AsyncIOMotorCommandCursor.each()
AsyncIOMotorCommandCursor.next()
AsyncIOMotorCommandCursor.next_object()
AsyncIOMotorCommandCursor.to_list()
AsyncIOMotorCommandCursor.try_next()
AsyncIOMotorCommandCursor.address
AsyncIOMotorCommandCursor.alive
AsyncIOMotorCommandCursor.cursor_id
AsyncIOMotorCommandCursor.fetch_next
AsyncIOMotorCommandCursor.session
- asyncio GridFS Classes
AsyncIOMotorGridFSBucket
AsyncIOMotorGridFSBucket.delete()
AsyncIOMotorGridFSBucket.download_to_stream()
AsyncIOMotorGridFSBucket.download_to_stream_by_name()
AsyncIOMotorGridFSBucket.find()
AsyncIOMotorGridFSBucket.open_download_stream()
AsyncIOMotorGridFSBucket.open_download_stream_by_name()
AsyncIOMotorGridFSBucket.open_upload_stream()
AsyncIOMotorGridFSBucket.open_upload_stream_with_id()
AsyncIOMotorGridFSBucket.rename()
AsyncIOMotorGridFSBucket.upload_from_stream()
AsyncIOMotorGridFSBucket.upload_from_stream_with_id()
AsyncIOMotorGridIn
AsyncIOMotorGridIn.abort()
AsyncIOMotorGridIn.close()
AsyncIOMotorGridIn.set()
AsyncIOMotorGridIn.write()
AsyncIOMotorGridIn.writelines()
AsyncIOMotorGridIn.chunk_size
AsyncIOMotorGridIn.closed
AsyncIOMotorGridIn.content_type
AsyncIOMotorGridIn.filename
AsyncIOMotorGridIn.length
AsyncIOMotorGridIn.name
AsyncIOMotorGridIn.read
AsyncIOMotorGridIn.readable
AsyncIOMotorGridIn.seekable
AsyncIOMotorGridIn.upload_date
AsyncIOMotorGridIn.writeable
AsyncIOMotorGridOut
AsyncIOMotorGridOut.open()
AsyncIOMotorGridOut.read()
AsyncIOMotorGridOut.readchunk()
AsyncIOMotorGridOut.readline()
AsyncIOMotorGridOut.stream_to_handler()
AsyncIOMotorGridOut.aliases
AsyncIOMotorGridOut.chunk_size
AsyncIOMotorGridOut.close
AsyncIOMotorGridOut.content_type
AsyncIOMotorGridOut.filename
AsyncIOMotorGridOut.length
AsyncIOMotorGridOut.metadata
AsyncIOMotorGridOut.name
AsyncIOMotorGridOut.readable
AsyncIOMotorGridOut.seek
AsyncIOMotorGridOut.seekable
AsyncIOMotorGridOut.tell
AsyncIOMotorGridOut.upload_date
AsyncIOMotorGridOut.write
AsyncIOMotorGridOutCursor
AsyncIOMotorGridOutCursor.allow_disk_use()
AsyncIOMotorGridOutCursor.clone()
AsyncIOMotorGridOutCursor.close()
AsyncIOMotorGridOutCursor.collation()
AsyncIOMotorGridOutCursor.comment()
AsyncIOMotorGridOutCursor.distinct()
AsyncIOMotorGridOutCursor.each()
AsyncIOMotorGridOutCursor.explain()
AsyncIOMotorGridOutCursor.hint()
AsyncIOMotorGridOutCursor.limit()
AsyncIOMotorGridOutCursor.max()
AsyncIOMotorGridOutCursor.max_await_time_ms()
AsyncIOMotorGridOutCursor.max_scan()
AsyncIOMotorGridOutCursor.max_time_ms()
AsyncIOMotorGridOutCursor.min()
AsyncIOMotorGridOutCursor.next()
AsyncIOMotorGridOutCursor.next_object()
AsyncIOMotorGridOutCursor.rewind()
AsyncIOMotorGridOutCursor.skip()
AsyncIOMotorGridOutCursor.sort()
AsyncIOMotorGridOutCursor.to_list()
AsyncIOMotorGridOutCursor.where()
AsyncIOMotorGridOutCursor.address
AsyncIOMotorGridOutCursor.alive
AsyncIOMotorGridOutCursor.cursor_id
AsyncIOMotorGridOutCursor.fetch_next
AsyncIOMotorGridOutCursor.session
motor.aiohttp
- Integrate Motor with the aiohttp web framework
See also
This page describes using Motor with asyncio. For Tornado integration, see Motor Tornado API.