Module Expr Str Import alias Import alias Import alias ImportFrom alias TryExcept body ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ImportFrom alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad Num Str Num Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpSub UnaryOpUSub BinOpPow Num Num Num BinOpPow Num Num Assign NameStore Call AttributeLoad NameLoad attr Str BinOpAdd Num Call NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad Return TupleLoad NameLoad BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str AugAssignAdd NameStore NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Num NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return TupleLoad NameLoad BinOpAdd NameLoad NameLoad orelse Return Call NameLoad Num NameLoad decorator_list If NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Num If NameLoad body AugAssignAdd NameStore Num If NameLoad body AugAssignAdd NameStore Num Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Num NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return TupleLoad NameLoad BinOpAdd NameLoad NameLoad orelse Return Call NameLoad Num NameLoad decorator_list If NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad Num NameLoad decorator_list If NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad Num NameLoad decorator_list If NameLoad body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Num NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return TupleLoad NameLoad BinOpAdd NameLoad NameLoad orelse Return Call NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad Num NameLoad decorator_list
N/A N/A Tools for creating `messages
<http://www.mongodb.org/display/DOCS/Mongo+Wire+Protocol>`_ to be sent to
MongoDB.

.. note:: This module is for internal use and is generally not needed by
   application developers.
 N/A random N/A struct N/A bson bson.son SON N/A N/A pymongo _cbson N/A _use_c True N/A N/A N/A ImportError N/A N/A _use_c False pymongo.errors InvalidOperation N/A __ZERO __last_error N/A N/A args N/A N/A N/A Data to send to do a lastError.
     N/A cmd N/A SON N/A N/A getlasterror 1 N/A N/A N/A cmd update args N/A N/A query 0 admin.$cmd 0 -1 cmd N/A __pack_message N/A N/A operation data N/A N/A N/A Takes message data and adds a message header based on the operation.

    Returns the resultant message string.
     N/A request_id N/A N/A random randint N/A N/A N/A 2 31 1 N/A 2 31 N/A message N/A N/A struct pack <i N/A 16 N/A len data N/A message N/A N/A struct pack <i request_id N/A message __ZERO N/A message N/A N/A struct pack <i operation N/A N/A request_id N/A message data N/A insert N/A N/A collection_name docs check_keys safe last_error_args N/A N/A N/A Get an **insert** message.
     N/A data __ZERO N/A data N/A N/A bson _make_c_string collection_name N/A bson_data N/A N/A join N/A N/A N/A N/A bson BSON encode doc check_keys N/A doc docs N/A N/A bson_data N/A N/A N/A InvalidOperation cannot do an empty bulk insert N/A data bson_data N/A safe N/A N/A N/A _ insert_message N/A __pack_message 2002 data N/A N/A request_id error_message N/A __last_error last_error_args N/A N/A request_id N/A insert_message error_message N/A N/A N/A __pack_message 2002 data N/A N/A _use_c N/A N/A insert N/A _cbson _insert_message update N/A N/A collection_name upsert multi spec doc safe last_error_args N/A N/A N/A Get an **update** message.
     N/A options 0 N/A upsert N/A N/A options 1 N/A multi N/A N/A options 2 N/A data __ZERO N/A data N/A N/A bson _make_c_string collection_name N/A data N/A N/A struct pack <i options N/A data N/A N/A N/A bson BSON encode spec N/A data N/A N/A N/A bson BSON encode doc N/A safe N/A N/A N/A _ update_message N/A __pack_message 2001 data N/A N/A request_id error_message N/A __last_error last_error_args N/A N/A request_id N/A update_message error_message N/A N/A N/A __pack_message 2001 data N/A N/A _use_c N/A N/A update N/A _cbson _update_message query N/A N/A options collection_name num_to_skip num_to_return query field_selector N/A None N/A N/A Get a **query** message.
     N/A data N/A N/A struct pack <I options N/A data N/A N/A bson _make_c_string collection_name N/A data N/A N/A struct pack <i num_to_skip N/A data N/A N/A struct pack <i num_to_return N/A data N/A N/A N/A bson BSON encode query N/A N/A field_selector None N/A N/A data N/A N/A N/A bson BSON encode field_selector N/A N/A __pack_message 2004 data N/A N/A _use_c N/A N/A query N/A _cbson _query_message get_more N/A N/A collection_name num_to_return cursor_id N/A N/A N/A Get a **getMore** message.
     N/A data __ZERO N/A data N/A N/A bson _make_c_string collection_name N/A data N/A N/A struct pack <i num_to_return N/A data N/A N/A struct pack <q cursor_id N/A N/A __pack_message 2005 data N/A N/A _use_c N/A N/A get_more N/A _cbson _get_more_message delete N/A N/A collection_name spec safe last_error_args N/A N/A N/A Get a **delete** message.
     N/A data __ZERO N/A data N/A N/A bson _make_c_string collection_name N/A data __ZERO N/A data N/A N/A N/A bson BSON encode spec N/A safe N/A N/A N/A _ remove_message N/A __pack_message 2006 data N/A N/A request_id error_message N/A __last_error last_error_args N/A N/A request_id N/A remove_message error_message N/A N/A N/A __pack_message 2006 data N/A kill_cursors N/A N/A cursor_ids N/A N/A N/A Get a **killCursors** message.
     N/A data __ZERO N/A data N/A N/A struct pack <i N/A len cursor_ids N/A cursor_id cursor_ids N/A N/A data N/A N/A struct pack <q cursor_id N/A N/A __pack_message 2007 data N/A