Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for twstatus.py, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size twstatus.py-0.3.3-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size twstatus.py-0.3.3.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page