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

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.

Files for metaq, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size metaq-0.1-py2.7.egg (18.9 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size metaq-0.1.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size metaq-0.2.1.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size metaq-0.2.tar.gz (9.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page