Skip to main content

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


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)

Uploaded Source

Built Distribution

aioquery-0.0.3-py3-none-any.whl (7.2 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