GithubHelp home page GithubHelp logo

cooldeep25 / pymqi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dsuch/pymqi

0.0 1.0 0.0 644 KB

Python interface to IBM MQ (WebSphere MQ, MQSeries)

Home Page: https://dsuch.github.io/pymqi/

License: Other

Python 86.17% C 13.83%

pymqi's Introduction

unit-tests install-tests

PyMQI - Python interface to IBM MQ (WebSphere MQ, MQSeries)

Sponsored by Zato - ESB, SOA, REST, APIs and Cloud Integrations in Python

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()

Usage examples

More usage examples can be found here https://dsuch.github.io/pymqi/examples.html

Supported MQ versions

Any MQ version between 5.0 and 9.0 will work however the author is able to provide free support only for Linux x86 64-bit, MQ versions 9.x and Python 2.7+.

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.

Supported Python versions

PyMQI will work with:

  • Python 2.7
  • Python 3.5+

Installation

  • PyMQI can be installed using pip - downloads are on PyPI

  • As a prerequisite, you first need to install an IBM MQ client in the system that PyMQI is about to be installed; it is a free library offered by IBM on top of which higher-level ones, such as PyMQI, can connect to queue managers. IBM MQ clients can be downloaded from IBM's website.

  • Prerequisite for Windows: Microsoft Visual C++ compiler. Each Python version uses a specific compiler version. So, you need to install the compiler version that corresponds to your Python version : https://wiki.python.org/moin/WindowsCompilers

  • Now you can use pip to install PyMQI itself:

    $ sudo pip install pymqi

The backbone of IBM MQ Python messaging

PyMQI is a relatively low-level library that requires one to know IBM APIs fairly well.

It serves, however, as the basis for IBM MQ support in Zato, which is an enterprise integration platform and backend application server in Python that lets one connect to many technologies with little or no programming

This includes IBM MQ queue managers along with ability to seamlessly integrate with Java JMS systems.

Alt text

Read these blog posts for an introduction and visit Zato documentation for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.