Skip to content

Latest commit

 

History

History
62 lines (35 loc) · 1.58 KB

README.md

File metadata and controls

62 lines (35 loc) · 1.58 KB

IBM MQ Python samples

The python samples are based on https://dsuch.github.io/pymqi/ and have been tested with python 3.10.12,3.11.9 and 3.12.5

Python PyMQI library uses the IBM MQ C client libraries through the MQI interface.

The library needs to be compiled with a C compiler which you need to have installed in your development environment.

For example, on MacOS we used XCode, on Windows the Desktop development with C++ module inside Visual Studio and on Ubuntu the gcc GNU Compiler Collection.

Install/unzip IBM MQ client

Mac

IBM MQ MacOS toolkit for developers download

Add /opt/mqm/bin and /opt/mqm/samp/bin, to the PATH by editing /etc/paths

execute the following command: export DYLD_LIBRARY_PATH=/opt/mqm/lib64

Windows

Windows MQ redist client download

Linux Ubuntu

Linux MQ redist client download

For installation instructions please go to

Run samples

To run the examples cd to the Python directory, and install the prerequsites by running :

pip install pymqi

Put / Get

python basicput.py

and

python basicget.py

Publish / Subscribe

python basicpublish.py

and

python basicsubscribe.py

Request / Response

python basicrequest.py

and

python basicresponse.py