Asynchronous wrapper for source query.
Project description
Asynchronous Source Query
Install
- Pypi:
pip3 install aioquery
- Git:
pip3 install git+https://github.com/WardPearce/aioquery.git
Example
import asyncio
from aioquery import aioquery
async def testing():
query = aioquery("216.52.148.47", 27015)
server_info = await query.get_info()
players = await query.get_players()
print(server_info)
print(players)
loop = asyncio.get_event_loop()
loop.run_until_complete(testing())
loop.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 Distribution
aioquery-0.0.3.tar.gz
(3.0 kB
view hashes)