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 details)
Built Distribution
File details
Details for the file twstatus.py-0.3.3.tar.gz
.
File metadata
- Download URL: twstatus.py-0.3.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1d500f55f2e5bd8b6be1a7fa5a1af03bf44e436556fb3869c07e51a96af435ff
|
|
MD5 |
9d3509b93235e141f9e51a864fb6c3be
|
|
BLAKE2b-256 |
d1ce610f380c975679ffe3a196332b73e8ce8c4d3961bd33380fb20ae7dce592
|
File details
Details for the file twstatus.py-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: twstatus.py-0.3.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5bb588b6dfe3d546872210bed3002aa5b595bab6cb7eee1f51cf9ff5d9f0cd12
|
|
MD5 |
5e5da67848b55bf5c9c01c390a5bef91
|
|
BLAKE2b-256 |
a8efdaa2164c288a03210dc854874c53aa52801b568502b31f6c6badebf04818
|