Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

淘宝平台消息服务python版本

Project description

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()
+++++++++++++++++++++++++++++

Project details


Download files

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

Files for taobao-tmc-py, version 0.1dev-r0
Filename, size File type Python version Upload date Hashes
Filename, size taobao-tmc-py-0.1dev-r0.tar.gz (11.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page