淘宝平台消息服务客户端 for Python
Project description
tmcpy
=======================
淘宝平台消息服务python版本
Usage:
```python
import logging
from tmcpy import TmcClient
logging.basicConfig(level=logging.DEBUG)
tmc = TmcClient('ws://mc.api.tbsandbox.com/', 'appkey', 'appsecret', 'default',
query_message_interval=50)
def print1():
print 'on_open'
tmc.on("open", print1)
try:
ioloop.IOLoop.instance().start()
except KeyboardInterrupt:
pass
finally:
tmc.close()
```
=======================
淘宝平台消息服务python版本
Usage:
```python
import logging
from tmcpy import TmcClient
logging.basicConfig(level=logging.DEBUG)
tmc = TmcClient('ws://mc.api.tbsandbox.com/', 'appkey', 'appsecret', 'default',
query_message_interval=50)
def print1():
print 'on_open'
tmc.on("open", print1)
try:
ioloop.IOLoop.instance().start()
except KeyboardInterrupt:
pass
finally:
tmc.close()
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
tmcpy-0.3.4.zip
(9.6 kB
view hashes)
tmcpy-0.3.4.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for tmcpy-0.3.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a2636b3bba233a06c3f0536f952c5f30af6d2e0a442d1019b98879e38742caf |
|
MD5 | cd7b63231abab141b8cef99e323e321c |
|
BLAKE2b-256 | f7a95ba35dd7869736342c33f619b6a690f681bfa530aacd28d15b09a93f1d09 |