此内容没有您所选择的语言版本。

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.
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
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat