Search

Chapter 3. Getting Started

download PDF

3.1. Getting Started with Python

3.1.1. Python Messaging Development

Python is a cross-platform dynamically interpreted language that is extremely easy to use for prototyping. Because it is interpreted and not compiled, the turn around time from coding to testing is fast. This makes it very good for testing and experimenting. It can be used like a scripting language, and can also be used for developing fairly large applications.
Many of the examples in this documentation use Python code to illustrate principles of programming messaging applications using Red Hat Enterprise Messaging. To run these sample programs is as simple as cutting and pasting the code into a file, then calling the python interpreter to execute the file.
Aside from the light-weight prototyping aspect, perhaps the most useful feature of Python for Messaging development is the ability to run the Python interpreter interactively. You can try things out and inspect the effect and state of objects in real-time.
The Python API for Apache Qpid is a first-class supported API in Red Hat Enterprise Messaging.

3.1.2. Python Client Libraries

There are three libraries for Python client development:
python-qpid
Apache Qpid Python client library.
python-qpid-qmf
Queue Management Framework (QMF) Python client library.
python-saslwrapper
Python bindings for the saslwrapper library.

3.1.3. Install Python Client Libraries (Red Hat Enterprise Linux 6)

The Python client libraries for Red Hat Enterprise Linux 6 are available via the Red Hat Customer Portal.
If your machine uses Red Hat Network classic management you can install the Python client libraries via the yum command.
The Python client libraries are in three base channels:
  • Red Hat Enterprise Linux Server 6
  • Red Hat Enterprise Linux Workstation 6
  • Red Hat Enterprise Linux Client 6
Subscribe your system to one of the base channels.
When your system is subscribed to a base channel, with root privileges run the command:
yum install python-qpid python-qpid-qmf python-saslwrapper
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.