Skip to main content

Python Extension for IBM MQ

Project description

Python library for IBM MQ

The “ibmmq” package is an open-source Python extension for IBM MQ.

It gives a full-featured implementation of the MQI programming interface, with additional helper functions to assist with system monitoring and management.

Sample code

To put a message on a queue:

import ibmmq

queue_manager = ibmmq.connect('QM1', 'DEV.APP.SVRCONN', '192.168.1.121(1414)')

q = ibmmq.Queue(queue_manager, 'DEV.QUEUE.1')
q.put('Hello from Python!')

To read the message back from the queue:

import ibmmq

queue_manager = ibmmq.connect('QM1', 'DEV.APP.SVRCONN', '192.168.1.121(1414)')

q = ibmmq.Queue(queue_manager, 'DEV.QUEUE.1')
msg = q.get()
print('Here is the message:', msg)

Many more examples are in the project repository and in the dev-patterns repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ibmmq-2.0.6.tar.gz (463.4 kB view details)

Uploaded Source

File details

Details for the file ibmmq-2.0.6.tar.gz.

File metadata

  • Download URL: ibmmq-2.0.6.tar.gz
  • Upload date:
  • Size: 463.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ibmmq-2.0.6.tar.gz
Algorithm Hash digest
SHA256 80a21fb89c7c1a5d205f1fbba813d4260dc46f8504b4f0a906a83c3f02d17d16
MD5 82caf8bb2ee1b6bdbaa7a46596c50b4e
BLAKE2b-256 28c5a838a9a6571ba9ce46bba07f1c0cf4c6d29ff7a1e9f39a21b0f533f180be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page