淘宝平台消息服务客户端 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("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("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.2.3.zip
(9.2 kB
view details)
tmcpy-0.2.3.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file tmcpy-0.2.3.zip
.
File metadata
- Download URL: tmcpy-0.2.3.zip
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d72cbbb25a16a58bbc39ba7104abd155f496f41229c910e177bacf29a60128 |
|
MD5 | 0940aea47d7ce6475ae93d7e61d873ca |
|
BLAKE2b-256 | 79fc491d40d557a3dbadbd1a4aa8144889a80bc24d4a965dd120cf43906df792 |
File details
Details for the file tmcpy-0.2.3.tar.gz
.
File metadata
- Download URL: tmcpy-0.2.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f700ce2e62aa5a5a90aacfef33add4c9d9b850817ca66b1a6d060c0dfd4f6d |
|
MD5 | d3c9f38413fe7d392dbe0d9695c8a7ac |
|
BLAKE2b-256 | 975c7eed03a5cda0cdc69ce2264847fb09869fce10cecefcb8675910e7afa57f |
File details
Details for the file tmcpy-0.2.3-py2.py3-none-any.whl
.
File metadata
- Download URL: tmcpy-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a331d824d7b502b77f002e70fdeaf6e87859159adbb38c8ecc307be3f58ac7b |
|
MD5 | 1a98a94ee599d85a3938ba03bf7ca1cf |
|
BLAKE2b-256 | 603e1bdc26f85cf6f41bee5d5f4aaa152b785fada3627a4542ef870b67c18a07 |