Asynchronous apple searchads framework for asyncio and Python
Project description
Aiosearchads
Asynchronous apple searchads framework for asyncio and Python
Document
Installation
pip install aiosearchads
Simple uses
import asyncio
import aiomysql
from aiomysql_core import AioMysqlCore
async def test_example(loop):
pool = await aiomysql.create_pool(host='', port=3306,
user='', password='',
db='', loop=loop)
core = AioMysqlCore(pool=pool)
rows = await core.query('select * from users where uid=%s', 113)
print(rows)
rows = await core.gener('select * from users limit 100')
async for row in rows:
print(row)
row = await core.get('select * from users where uid=%(uid)s', {'uid': 113})
print(row)
rowcount = await core.execute_rowcount('select * from users where uid=%(uid)s', {'uid': 113})
print(rowcount)
pool.close()
await pool.wait_closed()
loop = asyncio.get_event_loop()
loop.run_until_complete(test_example(loop))
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
aiosearchads-0.0.1.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for aiosearchads-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1587e70c7c979017f1e92fcfb54dbba5361075cee60b3991b0ec143d1baba186 |
|
MD5 | 4104969eb14a57b636679c3378a4d91c |
|
BLAKE2b-256 | 471175ae41e60bdbf86e098be6d0034b228fd823b90a1a66ef00a89e29ed910c |