Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

comtech-et/pymqi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyMQI - Python interface to WebSphere MQ (MQSeries)

PyMQI allows one to connect to queue managers to issue MQAI and PCF requests.

Consider the code below which establishes a connection, puts a message on a queue and disconnects.

    import pymqi
    
    queue_manager = 'QM01'
    channel = 'SVRCONN.1'
    host = '192.168.1.135'
    port = '1434'
    queue_name = 'TEST.1'
    message = 'Hello from Python!'
    conn_info = '%s(%s)' % (host, port)
    
    qmgr = pymqi.connect(queue_manager, channel, conn_info)
    
    queue = pymqi.Queue(qmgr, queue_name)
    queue.put(message)
    queue.close()
    
    qmgr.disconnect()

More usage examples can be found here https://pythonhosted.org/pymqi/examples.html

About this port

There are some tests fail to pass, while some tests may not be applicable to python3, there might be bugs caused by this porting. I'll look into those latter. Patches for welcome.

Supported MQ versions

According to PyMQI, any MQ version between 5.0 and 7.5 should work. Note this port will only work will Python 3.x.

More information

Please visit the main documentation at https://pythonhosted.org/pymqi/index.html for more information.

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.5%
  • C 16.5%