Este conteúdo não está disponível no idioma selecionado.

Chapter 3. Getting Started


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
Copy to Clipboard Toggle word wrap
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat