淘宝平台消息服务客户端 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.5.zip
(9.2 kB
view details)
tmcpy-0.2.5.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file tmcpy-0.2.5.zip
.
File metadata
- Download URL: tmcpy-0.2.5.zip
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be78c9166bcc09d32513958c9fe5a66bdaabfb0e06a6d52fe1858483f3487ccc |
|
MD5 | 864536110614118c8da6af8e2868ce18 |
|
BLAKE2b-256 | 9fad77ab12c4c9c4867c237c929b951e6102c49c52a57a8b1f556d70c233820a |
File details
Details for the file tmcpy-0.2.5.tar.gz
.
File metadata
- Download URL: tmcpy-0.2.5.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95366458d76764b3cec11637a13c0ca2098940a2780adf7f79c675e2d3754e1 |
|
MD5 | f0054ab08bf46ba4907bfafa628826b5 |
|
BLAKE2b-256 | 05032ff1d292ad07086a4db6a7881a2d3170f32d133af5441b6be4b0368d0d29 |
File details
Details for the file tmcpy-0.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: tmcpy-0.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a854ea8c9c4130991177232b00e6df3c226f743fa044711ec00bd250107d9aa1 |
|
MD5 | 52ce7b683f32efa67a5663cb7577ccbd |
|
BLAKE2b-256 | ff9a9d0fd238503792ad50c1a403c36b1d3c39f02f100beca9d3aff97bc70330 |