淘宝平台消息服务客户端 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.5.zip
(9.6 kB
view details)
tmcpy-0.3.5.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file tmcpy-0.3.5.zip
.
File metadata
- Download URL: tmcpy-0.3.5.zip
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b0ec31cc975cc38ab5f57670255448d352a6b5d6ad5ae2c534b4ddbec0d9c21 |
|
MD5 | 6b1f2ca426b85a523394687e16461b0f |
|
BLAKE2b-256 | e4a9b86606cc2852ee42b02a5b6aa50845acfafa53e079580b235c66c6f5a691 |
File details
Details for the file tmcpy-0.3.5.tar.gz
.
File metadata
- Download URL: tmcpy-0.3.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5a2f0301753288c79dc4ed3bf747319dabc75ff809ede988a4a2fda34faf8f1 |
|
MD5 | a47f81dc05df85e8a868edf17b2b65b6 |
|
BLAKE2b-256 | c5e99d3ebc6a58a56b3ea29fc73780664e48b257f26d41ed331438770e65b960 |
File details
Details for the file tmcpy-0.3.5-py2.py3-none-any.whl
.
File metadata
- Download URL: tmcpy-0.3.5-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ca02d7b92256b0fd627245f616bf01871844d4dd1e66f91f4ba5f8433494068 |
|
MD5 | 7c60a8207a9fbe2d08c47714ecf69968 |
|
BLAKE2b-256 | 5f3f4ac672a6462ad55c184dcdc23b4fe8d9f840593593781205695dcbc61dcd |