Skip to main content

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


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)

Uploaded Source

Built Distribution

taobaopyx-0.1.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page