Skip to main content

Metaq client for python.

Project description

#介绍

淘宝开源MQ–[metaq](https://github.com/killme2008/Metamorphosis)的python客户端,目前只支持发送消息功能。

#安装

python setup.py install

#使用

使用很简单:

from metaq.producer import Message,MessageProducer,SendResult p=MessageProducer(“avos-fetch-tasks”) message=Message(“avos-fetch-tasks”,”http://www.taobao.com”) print p.send(message) p.close()

如果你的zookeeper不是`localhost:2181`,可设置zk_servers属性:

p=MessageProducer(“avos-fetch-tasks”,zk_servers=”192.168.1.100:2191,192.168.1.101:2181”)

更多信息参考metamorphosis.py

#协议 [The MIT License](http://www.opensource.org/licenses/mit-license.html)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

metaq-0.2.tar.gz (9.0 kB view hashes)

Uploaded Source

metaq-0.2.1.tar.gz (7.5 kB view hashes)

Uploaded Source

metaq-0.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

metaq-0.1-py2.7.egg (18.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page