淘宝平台消息服务客户端 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.2.zip
(9.4 kB
view details)
tmcpy-0.3.2.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file tmcpy-0.3.2.zip
.
File metadata
- Download URL: tmcpy-0.3.2.zip
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd3441894521f93f678c75025b6db6a95bb0848f552f6183e050c9c4aa99fee |
|
MD5 | 1baafde5b8fc7fe6c150cf9707d308db |
|
BLAKE2b-256 | cca9d56d8ec36cdb1d55bb4e030df99f9cbc55b8b0948130732b94661f6674c6 |
File details
Details for the file tmcpy-0.3.2.tar.gz
.
File metadata
- Download URL: tmcpy-0.3.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ade08d3d41c3ab2c00f496a779979d6e545cb1c4abb2bbbc731a7cdb50916d8b |
|
MD5 | 982443581a53a664debd9048923e8b4f |
|
BLAKE2b-256 | 95f00e0b2d52e0f0186bb97dc75585b8df9385f37148cc9d8d33ef45af2037b1 |
File details
Details for the file tmcpy-0.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: tmcpy-0.3.2-py2.py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efbcd54cedaa6955b86c6745a3791daef34222517bf6509c16b3a513b54ffc0e |
|
MD5 | 927b7075ae1fbef3aad403b5e918eefe |
|
BLAKE2b-256 | 57573419aff0ff73cd3836497c756a6b4754327d02d661878115a221b02e3013 |