淘宝平台消息服务客户端 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.7.zip
(9.9 kB
view details)
tmcpy-0.3.7.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmcpy-0.3.7.zip.
File metadata
- Download URL: tmcpy-0.3.7.zip
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e5f754180fc3cab28bd2459991f61ad8c5342d30b9166218d552fcf704a29ce
|
|
| MD5 |
068ff1dd5447531e05b2a991b05c07db
|
|
| BLAKE2b-256 |
7de1a809a18df65402b64b37b0dbbb019486aeeb7c6753463bd1dde8accdeedd
|
File details
Details for the file tmcpy-0.3.7.tar.gz.
File metadata
- Download URL: tmcpy-0.3.7.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed3c4953bce45e85e97dab1a850db0e7a7d8918fe8412a15bfb9778b6f1507e3
|
|
| MD5 |
4e2f1249d8d7112a91193734d9237a9c
|
|
| BLAKE2b-256 |
c2d0208c6437235bb1a462c4a1e13aa5d545a6e230dedfa0c0075bb3073a1587
|
File details
Details for the file tmcpy-0.3.7-py2.py3-none-any.whl.
File metadata
- Download URL: tmcpy-0.3.7-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
925d4ca68363e7bb6446aa61d63a010a7f3c1dba76014a04c0e769e6176d14a1
|
|
| MD5 |
60154ac7ac19085ec1b54a711f1c7dd9
|
|
| BLAKE2b-256 |
9829c718539d375bdaeececd2d173890f1874e0c60b6b7088c963b95c26f69ad
|