Chapter 4. Using MRG Messaging with Python
This section shows how to write direct, fanout, publish/subscribe, request/response, and XML-based routing programs in Python. These concepts are explained in Chapter 2, Examples Overview. It then shows how to use important features like persistence and transactions with MRG Messaging. This chapter does not try to teach the entire MRG Messaging Python API, and it is not encyclopedic in its coverage of AMQP. For more detailed information on the C++ API for MRG Messaging, use pydoc. For instance, to see all available classes, use the command:
$ pydoc qpid
To see the methods for the session object, use the command:
$ pydoc qpid.session
For more detailed information on the AMQP model, see the AMQP specification at http://www.amqp.org.
The instructions in this section assume you have installed the client libraries and started a broker using the instructions shown in Chapter 3, Installing MRG Messaging.