淘宝平台消息服务客户端 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.6.zip
(9.9 kB
view details)
tmcpy-0.3.6.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file tmcpy-0.3.6.zip
.
File metadata
- Download URL: tmcpy-0.3.6.zip
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca813252ea334f97f0783eb274ab3345e82a7ca8fbc98f5490c7cb77aab1cb7d |
|
MD5 | 841b81bf93b190a8149a446acc50140b |
|
BLAKE2b-256 | c0b413de55814d8a17a7a4fe40dbbfbab735ef9453727f6bec12667a81ff105b |
File details
Details for the file tmcpy-0.3.6.tar.gz
.
File metadata
- Download URL: tmcpy-0.3.6.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ce80f8f8f2f76ed24d98cce2757ca9bf5e11ea7f1e9c0a5ec308fdcb4f34e0 |
|
MD5 | ed14edbe62f8d931c90566a256bb6764 |
|
BLAKE2b-256 | cecae76ed962365d5c923cd628a021d2d1267b5098266ae4f6d21f251ecb8499 |
File details
Details for the file tmcpy-0.3.6-py2.py3-none-any.whl
.
File metadata
- Download URL: tmcpy-0.3.6-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 | ed497f495940070a941104e0def7dec9675d04b4d922159e6644949958e867e1 |
|
MD5 | f7b6b813780545ddd010dcd323f56a17 |
|
BLAKE2b-256 | df82bcd01317015d67f6c94d1076c6841a5555ca7fcc5e12f4d9e97e522a394e |