pyut2serverlist
Simple Python library for querying Unreal Engine 2 based principal servers and their game servers
Features
- retrieve a list of game servers from an Unreal Engine 2 principal ("master") server
- retrieve info directly from game servers
Installation
Simply install the package via pip.
$ pip install pyut2serverlist
Usage
The following example retrieves and prints a game server list for Unreal Tournament 2004 directly from Epic Games.
from pyut2serverlist import PrincipalServer, Game, Error, Filter, Comparator
principal = PrincipalServer('utmaster.openspy.net', 28902, Game.UT2004, 'some-cd-key')
try:
servers = principal.get_servers(
Filter('gametype', Comparator.Equals, 'xDeathMatch')
)
print(servers)
except Error as e:
print(e)
You can also directly initialize a game server object for a known server and query it to retrieve details such as the current map and game mode.
from pyut2serverlist import Server, Error
server = Server('68.232.165.172', 7778)
try:
info = server.get_info()
print(info)
except Error as e:
print(e)
Metadata
Release files for pyut2serverlist 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyut2serverlist-0.2.0.tar.gz | 8.7 kB | Without provenance | Details for pyut2serverlist-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyut2serverlist-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pyut2serverlist-0.2.0-py3-none-any.whl |
Total release size: 19.1 kB
Release files / pyut2serverlist-0.2.0.tar.gz
| Download URL | pyut2serverlist-0.2.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb867bae3af121e8721e650463b48e83516702aec24a5ff60f5a8e0c5c1a404e
|
|
BLAKE2b-256 checksum How to use checksums |
6cda569796fd0eaadbb978d2eb37e671413c931170f76097c97af968bcfbb5eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / pyut2serverlist-0.2.0-py3-none-any.whl
| Download URL | pyut2serverlist-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
100a8c862090b4e8de21260b99c5fdb966434107e53b1e4c4bac76657ce1cbf1
|
|
BLAKE2b-256 checksum How to use checksums |
035cb71b7606c6beb1a96ef1b794bb5dedd65c308b0f00b2a7fc035520dde490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for pyut2serverlist 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.