|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PyMQI 1.5 - Python interface to WebSphere MQ |
« View previous topic :: View next topic » |
Author |
Message
|
dsuch |
Posted: Sat Sep 26, 2015 7:03 am Post subject: PyMQI 1.5 - Python interface to WebSphere MQ |
|
|
 Novice
Joined: 02 May 2006 Posts: 14
|
Hello,
I'm happy to let you know that a new relase of PyMQI - Python interface to WebSphere MQ - is available for download from GitHub or PyPI.
* https://github.com/dsuch/pymqi
* https://pythonhosted.org/pymqi
* https://pythonhosted.org/pymqi/examples.html
Highlights of the release:
* Added MQ 8.0 compatibility
* Moved the codebase to its own pymqi top-level package
Here's a code snippet showing how working with PyMQI looks like:
Quote: |
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() |
|
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 01, 2015 5:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Hi -
It's always great to see people supporting languages and API's that IBM doesn't supply! Thanks for helping out the community.
A question - how do you handle the username/password part of the MQ v8 client connection?
Do you provide options, or does python, to encrypt and decrypt it if it's being saved somewhere or read from somewhere? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
dsuch |
Posted: Thu Oct 01, 2015 5:25 am Post subject: |
|
|
 Novice
Joined: 02 May 2006 Posts: 14
|
mqjeff wrote: |
A question - how do you handle the username/password part of the MQ v8 client connection?
Do you provide options, or does python, to encrypt and decrypt it if it's being saved somewhere or read from somewhere? |
Hi there,
user credentials that PyMQI accepts is simply a pair of string parameters username/password, like here:
https://pythonhosted.org/pymqi/examples.html#connecting-in-client-mode-with-username-password-credentials
Now, where this comes from is outside of the library's concerns - could be read from a config file, LDAP, SQL, encrypted at rest or not, obtained from remote servers through any protocol, you know, it's up to users and the hundreds of ways people devised to store secrets.
These are simply parameters a function/method supports. Same approach regardless if it's C, Java, Python or any other programming language
Cheers. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 01, 2015 5:30 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Hi -
Thanks for the reply.
It might save you some questions via email or etc. if you added a small note in that example or in the definitions of those parameters that you don't handle these things for the user. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
dsuch |
Posted: Thu Oct 01, 2015 5:33 am Post subject: |
|
|
 Novice
Joined: 02 May 2006 Posts: 14
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|