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