Skip to main content
Help us improve Python packaging – donate today!

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)

Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
metaq-0.1-py2.7.egg (18.9 kB) Copy SHA256 hash SHA256 Egg 2.7 May 10, 2012
metaq-0.1.tar.gz (8.4 kB) Copy SHA256 hash SHA256 Source None May 10, 2012
metaq-0.2.1.tar.gz (7.5 kB) Copy SHA256 hash SHA256 Source None Aug 27, 2012
metaq-0.2.tar.gz (9.0 kB) Copy SHA256 hash SHA256 Source None May 21, 2012

Supported by

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