Skip to main content

淘宝平台消息服务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.

Source Distribution

taobao-tmc-py-0.1dev-r0.tar.gz (11.0 kB view details)

Uploaded Source

File details

Details for the file taobao-tmc-py-0.1dev-r0.tar.gz.

File metadata

File hashes

Hashes for taobao-tmc-py-0.1dev-r0.tar.gz
Algorithm Hash digest
SHA256 7fb6c13c64d6cf2fa97eba6c9238582d495b51acec50a850b5fb7598cc758f7a
MD5 207965a163365e5e3617d0ec550fe749
BLAKE2b-256 f34a720aa0c2975c6202c2201ebe7dd462cbeb0d9765e103ad391f2267f68908

See more details on using hashes here.

Supported by

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