NOTE: For Python 3 and AMQP 1.0 support, look instead to Qpid Proton.
Getting started
Make sure the Qpid Python client libraries are on your PYTHONPATH.
Extract the archive and add the local directory to your PYTHONPATH:
$ tar -xf qpid-python-VERSION.tar.gz
$ cd qpid-python-VERSION
$ export PYTHONPATH=$PWD:$PYTHONPATH
Make sure a broker is running.
Run the ‘hello’ example from examples/api:
$ cd examples/api
$ ./hello
Hello world!
Examples
The examples directory contains sample programs. See
examples/README.txt for more information.
Running the tests
The tests directory contains a collection of unit tests for the
Python client. The tests_0-10, tests_0-9, and tests_0-8
directories contain protocol-level conformance tests for brokers that
speak the specified AMQP version.
The qpid-python-test script may be used to run these tests. It will
by default run the Python unit tests and the 0-10 conformance tests:
Run a broker on the default port.
Run the tests:
$ ./qpid-python-test
If you wish to run the 0-8 or 0-9 conformance tests, they may be
selected as follows:
Qpid Python
This distribution contains a Python 2 AMQP 0-x client implementation and AMQP conformance tests for Apache Qpid.
Documentation can be found here:
NOTE: For Python 3 and AMQP 1.0 support, look instead to Qpid Proton.
Getting started
Make sure the Qpid Python client libraries are on your PYTHONPATH. Extract the archive and add the local directory to your PYTHONPATH:
Make sure a broker is running.
Run the ‘hello’ example from examples/api:
Examples
The
examplesdirectory contains sample programs. Seeexamples/README.txtfor more information.Running the tests
The
testsdirectory contains a collection of unit tests for the Python client. Thetests_0-10,tests_0-9, andtests_0-8directories contain protocol-level conformance tests for brokers that speak the specified AMQP version.The
qpid-python-testscript may be used to run these tests. It will by default run the Python unit tests and the 0-10 conformance tests:Run a broker on the default port.
Run the tests:
If you wish to run the 0-8 or 0-9 conformance tests, they may be selected as follows:
Run a broker on the default port.
Run the tests:
See the
qpid-python-testcommand-line help for for additional options:Installation
Other Qpid components depend on Qpid Python for testing. You can use
setup.pyto install Qpid Python to a standard location: