Asyncio version of taobaopy
Project description
taobaopyx
Asyncio version of taobaopy powered by httpx
Install
pip install -U taobaopyx
Use
from taobaopyx.taobao import APINode, AsyncTaobaoAPIClient
import asyncio
import logging
logging.basicConfig(level=logging.DEBUG)
client = AsyncTaobaoAPIClient(app_key="fake_key", app_secret="fake_sescret")
taobao = APINode(client, "taobao")
async def get():
res = await taobao.mixnick.get(nick="nick")
print(res)
async def shutdown():
await client.aclose()
asyncio.run(get())
asyncio.run(shutdown())
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 Distribution
taobaopyx-0.1.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for taobaopyx-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b440891bd43762599816ecb2a9a9adf02f42470dbc893b5eccca9172ec85b61 |
|
MD5 | ca5886f87c1aab9ae939c44c85a7adb6 |
|
BLAKE2b-256 | 1f03f53515a362c692b7e65c16824f79e754241305b5283b7d0d07631649225b |