forked from dsuch/pymqi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
50 lines (33 loc) · 1.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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.
```python
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
Supported MQ versions
=====================
Any MQ version between 5.0 and 7.5 will work however the author is able to provide
free support only for Linux x86 64-bit, MQ versions 7.x and Python 2.7.x.
Support for other versions and systems needs either someone from the commnuity to step up
or contacting the author [email protected] in order to discuss paid support options.
Download
========
Downloads are hosted on PyPI https://pypi.python.org/pypi/pymqi
More information
================
Please visit the main documentation at https://pythonhosted.org/pymqi/index.html for more information.