From c5b0c2b0eecd2e7335b44df7284f315cc7aae716 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 16 Mar 2007 20:26:11 +0000 Subject: Merged revisions 496593 via svnmerge from https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9 ........ r496593 | rhs | 2007-01-16 00:28:25 -0500 (Tue, 16 Jan 2007) | 1 line 0-9 request/response framing for python ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@519129 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/hello-world | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 qpid/python/hello-world (limited to 'qpid/python/hello-world') diff --git a/qpid/python/hello-world b/qpid/python/hello-world new file mode 100755 index 0000000000..b05873dff3 --- /dev/null +++ b/qpid/python/hello-world @@ -0,0 +1,11 @@ +#!/usr/bin/env python +import qpid +from qpid.client import Client +from qpid.content import Content + +client = Client("127.0.0.1", 5672, qpid.spec.load("../specs/amqp.0-9.xml")) +client.start({"LOGIN": "guest", "PASSWORD": "guest"}) +ch = client.channel(1) +ch.channel_open() +ch.message_transfer(destination="amq.direct", routing_key="asdf", + body="hello world") -- cgit v1.2.1