淘宝平台消息服务客户端 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.1.zip
(8.9 kB
view details)
tmcpy-0.2.1.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file tmcpy-0.2.1.zip
.
File metadata
- Download URL: tmcpy-0.2.1.zip
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3d142f3e2c6cf5251a4c96acea566f401c82bd0fb9021713a7cbb86cdd3aaf |
|
MD5 | a63c1e6657f8e966ae089701d65a0e19 |
|
BLAKE2b-256 | d830c2b3945971a36ba45f6a64ac6626bbf4b032300cd8f0bcf54d7c0bb3dedc |
File details
Details for the file tmcpy-0.2.1.tar.gz
.
File metadata
- Download URL: tmcpy-0.2.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 256dc816a71e062cf3a74a60edc3292fcd244a0a15d1bdf4ed6586e0e38c0342 |
|
MD5 | c7410ebcf5b1e397853b284ddce8e5cc |
|
BLAKE2b-256 | c520fd1677965fdac00dc10f62fdc92f8e79ead8c7784da0c962355b0ae9829d |
File details
Details for the file tmcpy-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: tmcpy-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 617af5b8ec1f6db0db1cefffe2bf51db16d06cbc8d3d5136c47639236c311cda |
|
MD5 | 0d93d1f58c928f8ebc535a6b643acf71 |
|
BLAKE2b-256 | 4fa3cb4b56738c1ccdf431f788688871370b90b4026bb6dac12f16976db8fde1 |