淘宝平台消息服务客户端 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.3.zip
(9.4 kB
view details)
tmcpy-0.3.3.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file tmcpy-0.3.3.zip
.
File metadata
- Download URL: tmcpy-0.3.3.zip
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b094a1ec4752bc780b92e287f8ae46d1a68332b3c7ace777cfd24b0a4fed97e9 |
|
MD5 | a47e5d67503d88b32818c2710c5846e4 |
|
BLAKE2b-256 | 22f417fd548672065c8af486202a9a942e95e76fae6ffbd8292da61e47d4c7ee |
File details
Details for the file tmcpy-0.3.3.tar.gz
.
File metadata
- Download URL: tmcpy-0.3.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 287bf09e07a378d60c53dcfb89fdf4139693e67971b2873fd9adc986dc9d09b7 |
|
MD5 | 63f98779db2b11257d88260ab63d196a |
|
BLAKE2b-256 | 041a5ecf4bfe01d172e30a0824be82a849611df547870c69d56a02f9f929bbdf |
File details
Details for the file tmcpy-0.3.3-py2.py3-none-any.whl
.
File metadata
- Download URL: tmcpy-0.3.3-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 | f970d703e3bfc4c6edc87bbad36edbc62dbd89597dce182655bbab85c9dc75f9 |
|
MD5 | e798f74fca6c2747b5fe264641084b75 |
|
BLAKE2b-256 | 0732033314097363a5caea3a210b9a1fb9dc9a7f48a1ea58ebec1754340f1c31 |