semvec/pypi-packages huggingface dataset:
taobao-tmc-py 0.1dev-r0
淘宝平台消息服务python版本
License: MIT
Keywords: taobao tmc python

taobao-tmc-python
-----------------

淘宝平台消息服务python版本

usage:

+++++++++++++++++++++++++++++
from tornado import ioloop
from taobaotmcpy import TmcClient

logging.basicConfig(level=logging.DEBUG)
ws = TmcClient('ws://mc.api.tbsandbox.com/', 'appkey', 'appsecret', 'default',
    query_message_interval=50)
def print1():
    print 'on_open'
ws.on("on_open", print1)
try:
    ioloop.IOLoop.instance().start()
except KeyboardInterrupt:
    pass
finally:
    ws.close()
+++++++++++++++++++++++++++++