Get information about teeworlds/ddnet servers.
Project description
twstatus.py
Get the server information of teeworlds servers.
Tested on vanilla and ddnet based servers.
pip install twstatus.py
from twstatus import ServerHandler
import asyncio
server = ServerHandler("1.1.1.1", 8303)
async def main():
print(vars(await server.get_info()))
# Note: asyncio.run is only available on 3.7+
# https://docs.python.org/3/library/asyncio-task.html#id3
asyncio.run(main())
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
twstatus.py-0.3.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for twstatus.py-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bb588b6dfe3d546872210bed3002aa5b595bab6cb7eee1f51cf9ff5d9f0cd12 |
|
MD5 | 5e5da67848b55bf5c9c01c390a5bef91 |
|
BLAKE2b-256 | a8efdaa2164c288a03210dc854874c53aa52801b568502b31f6c6badebf04818 |