SYMBOL INDEX (734 symbols across 56 files) FILE: docs/conf.py function _get_version (line 34) | def _get_version() -> Version: function mock_autodoc (line 135) | def mock_autodoc() -> None: function delete_doc_for_address_base (line 152) | def delete_doc_for_address_base() -> None: FILE: docs/examples/code/ping_as_java_and_bedrock_in_one_time.py function status (line 10) | async def status(host: str) -> JavaStatusResponse | BedrockStatusResponse: function handle_exceptions (line 33) | async def handle_exceptions(done: set[asyncio.Task], pending: set[asynci... function handle_java (line 55) | async def handle_java(host: str) -> JavaStatusResponse: function handle_bedrock (line 60) | async def handle_bedrock(host: str) -> BedrockStatusResponse: FILE: docs/examples/code/ping_many_servers_at_once.py function ping_server (line 6) | async def ping_server(ip: str) -> None: function ping_ips (line 15) | async def ping_ips(ips: list[str]) -> None: function main (line 27) | def main() -> None: FILE: mcstatus/__main__.py function _motd (line 35) | def _motd(motd: Motd) -> str: function _kind (line 41) | def _kind(serv: SupportedServers) -> str: function _ping_with_fallback (line 51) | def _ping_with_fallback(server: SupportedServers) -> float: function ping_cmd (line 74) | def ping_cmd(server: SupportedServers) -> int: function status_cmd (line 79) | def status_cmd(server: SupportedServers) -> int: function json_cmd (line 96) | def json_cmd(server: SupportedServers) -> int: function query_cmd (line 127) | def query_cmd(server: SupportedServers) -> int: function main (line 146) | def main(argv: list[str] = sys.argv[1:]) -> int: FILE: mcstatus/_net/address.py function _valid_urlparse (line 26) | def _valid_urlparse(address: str) -> tuple[str, int | None]: class _AddressBase (line 41) | class _AddressBase(NamedTuple): class Address (line 53) | class Address(_AddressBase): method __init__ (line 65) | def __init__(self, host: str, port: int) -> None: # noqa: ARG002 # un... method _ensure_validity (line 76) | def _ensure_validity(host: object, port: object) -> None: method from_tuple (line 85) | def from_tuple(cls, tup: tuple[str, int]) -> Self: method from_path (line 90) | def from_path(cls, path: Path, *, default_port: int | None = None) -> ... method parse_address (line 100) | def parse_address(cls, address: str, *, default_port: int | None = Non... method resolve_ip (line 119) | def resolve_ip(self, lifetime: float | None = None) -> ipaddress.IPv4A... method async_resolve_ip (line 157) | async def async_resolve_ip(self, lifetime: float | None = None) -> ipa... function minecraft_srv_address_lookup (line 189) | def minecraft_srv_address_lookup( function async_minecraft_srv_address_lookup (line 237) | async def async_minecraft_srv_address_lookup( FILE: mcstatus/_net/dns.py function resolve_a_record (line 23) | def resolve_a_record(hostname: str, lifetime: float | None = None) -> str: function async_resolve_a_record (line 41) | async def async_resolve_a_record(hostname: str, lifetime: float | None =... function resolve_srv_record (line 54) | def resolve_srv_record(query_name: str, lifetime: float | None = None) -... function async_resolve_srv_record (line 73) | async def async_resolve_srv_record(query_name: str, lifetime: float | No... function resolve_mc_srv (line 87) | def resolve_mc_srv(hostname: str, lifetime: float | None = None) -> tupl... function async_resolve_mc_srv (line 100) | async def async_resolve_mc_srv(hostname: str, lifetime: float | None = N... FILE: mcstatus/_protocol/bedrock_client.py class BedrockClient (line 19) | class BedrockClient: method __init__ (line 25) | def __init__(self, address: Address, timeout: float = 3) -> None: method parse_response (line 30) | def parse_response(data: bytes, latency: float) -> BedrockStatusResponse: method read_status (line 37) | def read_status(self) -> BedrockStatusResponse: method _read_status (line 43) | def _read_status(self) -> bytes: method read_status_async (line 52) | async def read_status_async(self) -> BedrockStatusResponse: method _read_status_async (line 59) | async def _read_status_async(self) -> bytes: FILE: mcstatus/_protocol/connection.py function _ip_type (line 41) | def _ip_type(address: int | str) -> int | None: class BaseWriteSync (line 55) | class BaseWriteSync(ABC): method write (line 61) | def write(self, data: Connection | str | bytearray | bytes) -> None: method __repr__ (line 64) | def __repr__(self) -> str: method _pack (line 68) | def _pack(format_: str, data: int) -> bytes: method write_varint (line 72) | def write_varint(self, value: int) -> None: method write_varlong (line 89) | def write_varlong(self, value: int) -> None: method write_utf (line 106) | def write_utf(self, value: str) -> None: method write_ascii (line 111) | def write_ascii(self, value: str) -> None: method write_short (line 116) | def write_short(self, value: int) -> None: method write_ushort (line 120) | def write_ushort(self, value: int) -> None: method write_int (line 124) | def write_int(self, value: int) -> None: method write_uint (line 128) | def write_uint(self, value: int) -> None: method write_long (line 132) | def write_long(self, value: int) -> None: method write_ulong (line 136) | def write_ulong(self, value: int) -> None: method write_bool (line 140) | def write_bool(self, value: bool) -> None: # noqa: FBT001 # Boolean p... method write_buffer (line 144) | def write_buffer(self, buffer: Connection) -> None: class BaseWriteAsync (line 151) | class BaseWriteAsync(ABC): method write (line 157) | async def write(self, data: Connection | str | bytearray | bytes) -> N... method __repr__ (line 160) | def __repr__(self) -> str: method _pack (line 164) | def _pack(format_: str, data: int) -> bytes: method write_varint (line 168) | async def write_varint(self, value: int) -> None: method write_varlong (line 185) | async def write_varlong(self, value: int) -> None: method write_utf (line 202) | async def write_utf(self, value: str) -> None: method write_ascii (line 207) | async def write_ascii(self, value: str) -> None: method write_short (line 212) | async def write_short(self, value: int) -> None: method write_ushort (line 216) | async def write_ushort(self, value: int) -> None: method write_int (line 220) | async def write_int(self, value: int) -> None: method write_uint (line 224) | async def write_uint(self, value: int) -> None: method write_long (line 228) | async def write_long(self, value: int) -> None: method write_ulong (line 232) | async def write_ulong(self, value: int) -> None: method write_bool (line 236) | async def write_bool(self, value: bool) -> None: # noqa: FBT001 # Boo... method write_buffer (line 240) | async def write_buffer(self, buffer: Connection) -> None: class BaseReadSync (line 247) | class BaseReadSync(ABC): method read (line 253) | def read(self, length: int, /) -> bytearray: method __repr__ (line 256) | def __repr__(self) -> str: method _unpack (line 260) | def _unpack(format_: str, data: bytes) -> int: method read_varint (line 264) | def read_varint(self) -> int: method read_varlong (line 278) | def read_varlong(self) -> int: method read_utf (line 292) | def read_utf(self) -> str: method read_ascii (line 297) | def read_ascii(self) -> str: method read_short (line 304) | def read_short(self) -> int: method read_ushort (line 308) | def read_ushort(self) -> int: method read_int (line 312) | def read_int(self) -> int: method read_uint (line 316) | def read_uint(self) -> int: method read_long (line 320) | def read_long(self) -> int: method read_ulong (line 324) | def read_ulong(self) -> int: method read_bool (line 328) | def read_bool(self) -> bool: method read_buffer (line 332) | def read_buffer(self) -> Connection: class BaseReadAsync (line 340) | class BaseReadAsync(ABC): method read (line 346) | async def read(self, length: int, /) -> bytearray: method __repr__ (line 349) | def __repr__(self) -> str: method _unpack (line 353) | def _unpack(format_: str, data: bytes) -> int: method read_varint (line 357) | async def read_varint(self) -> int: method read_varlong (line 371) | async def read_varlong(self) -> int: method read_utf (line 385) | async def read_utf(self) -> str: method read_ascii (line 390) | async def read_ascii(self) -> str: method read_short (line 397) | async def read_short(self) -> int: method read_ushort (line 401) | async def read_ushort(self) -> int: method read_int (line 405) | async def read_int(self) -> int: method read_uint (line 409) | async def read_uint(self) -> int: method read_long (line 413) | async def read_long(self) -> int: method read_ulong (line 417) | async def read_ulong(self) -> int: method read_bool (line 421) | async def read_bool(self) -> bool: method read_buffer (line 425) | async def read_buffer(self) -> Connection: class BaseConnection (line 433) | class BaseConnection: method __repr__ (line 438) | def __repr__(self) -> str: method flush (line 441) | def flush(self) -> bytearray: method receive (line 445) | def receive(self, _data: BytesConvertable | bytearray) -> None: method remaining (line 449) | def remaining(self) -> int: class BaseSyncConnection (line 454) | class BaseSyncConnection(BaseConnection, BaseReadSync, BaseWriteSync): class BaseAsyncReadSyncWriteConnection (line 460) | class BaseAsyncReadSyncWriteConnection(BaseConnection, BaseReadAsync, Ba... class BaseAsyncConnection (line 466) | class BaseAsyncConnection(BaseConnection, BaseReadAsync, BaseWriteAsync): class Connection (line 472) | class Connection(BaseSyncConnection): method __init__ (line 477) | def __init__(self) -> None: method read (line 481) | def read(self, length: int, /) -> bytearray: method write (line 490) | def write(self, data: Connection | str | bytearray | bytes) -> None: method receive (line 498) | def receive(self, data: BytesConvertable | bytearray) -> None: method remaining (line 504) | def remaining(self) -> int: method flush (line 508) | def flush(self) -> bytearray: method copy (line 513) | def copy(self) -> Connection: class SocketConnection (line 521) | class SocketConnection(BaseSyncConnection): method __init__ (line 526) | def __init__(self) -> None: method close (line 530) | def close(self) -> None: method __enter__ (line 541) | def __enter__(self) -> Self: method __exit__ (line 544) | def __exit__(self, *_: object) -> None: class TCPSocketConnection (line 548) | class TCPSocketConnection(SocketConnection): method __init__ (line 553) | def __init__(self, addr: tuple[str | None, int], timeout: float = 3) -... method read (line 558) | def read(self, length: int, /) -> bytearray: method write (line 568) | def write(self, data: Connection | str | bytes | bytearray) -> None: class UDPSocketConnection (line 577) | class UDPSocketConnection(SocketConnection): method __init__ (line 582) | def __init__(self, addr: Address, timeout: float = 3) -> None: method remaining (line 591) | def remaining(self) -> int: method read (line 595) | def read(self, _length: int, /) -> bytearray: method write (line 602) | def write(self, data: Connection | str | bytes | bytearray) -> None: class TCPAsyncSocketConnection (line 611) | class TCPAsyncSocketConnection(BaseAsyncReadSyncWriteConnection): method __init__ (line 616) | def __init__(self, addr: Address, timeout: float = 3) -> None: method connect (line 623) | async def connect(self) -> None: method read (line 631) | async def read(self, length: int, /) -> bytearray: method write (line 641) | def write(self, data: Connection | str | bytes | bytearray) -> None: method close (line 649) | def close(self) -> None: method __aenter__ (line 654) | async def __aenter__(self) -> Self: method __aexit__ (line 658) | async def __aexit__(self, *_: object) -> None: class UDPAsyncSocketConnection (line 662) | class UDPAsyncSocketConnection(BaseAsyncConnection): method __init__ (line 667) | def __init__(self, addr: Address, timeout: float = 3) -> None: method connect (line 673) | async def connect(self) -> None: method remaining (line 678) | def remaining(self) -> int: method read (line 682) | async def read(self, _length: int, /) -> bytearray: method write (line 687) | async def write(self, data: Connection | str | bytes | bytearray) -> N... method close (line 695) | def close(self) -> None: method __aenter__ (line 700) | async def __aenter__(self) -> Self: method __aexit__ (line 704) | async def __aexit__(self, *_: object) -> None: FILE: mcstatus/_protocol/java_client.py class _BaseJavaClient (line 23) | class _BaseJavaClient(ABC): method __post_init__ (line 31) | def __post_init__(self) -> None: method handshake (line 35) | def handshake(self) -> None: method read_status (line 47) | def read_status(self) -> JavaStatusResponse | Awaitable[JavaStatusResp... method test_ping (line 52) | def test_ping(self) -> float | Awaitable[float]: method _handle_status_response (line 56) | def _handle_status_response(self, response: Connection, start: float, ... method _handle_ping_response (line 71) | def _handle_ping_response(self, response: Connection, start: float, en... class JavaClient (line 83) | class JavaClient(_BaseJavaClient): method read_status (line 86) | def read_status(self) -> JavaStatusResponse: method test_ping (line 97) | def test_ping(self) -> float: class AsyncJavaClient (line 112) | class AsyncJavaClient(_BaseJavaClient): method read_status (line 115) | async def read_status(self) -> JavaStatusResponse: method test_ping (line 126) | async def test_ping(self) -> float: FILE: mcstatus/_protocol/legacy_client.py class _BaseLegacyClient (line 9) | class _BaseLegacyClient: method parse_response (line 16) | def parse_response(data: bytes, latency: float) -> LegacyStatusResponse: class LegacyClient (line 27) | class LegacyClient(_BaseLegacyClient): method __init__ (line 28) | def __init__(self, connection: BaseSyncConnection) -> None: method read_status (line 31) | def read_status(self) -> LegacyStatusResponse: class AsyncLegacyClient (line 44) | class AsyncLegacyClient(_BaseLegacyClient): method __init__ (line 45) | def __init__(self, connection: BaseAsyncReadSyncWriteConnection) -> None: method read_status (line 48) | async def read_status(self) -> LegacyStatusResponse: FILE: mcstatus/_protocol/query_client.py class _BaseQueryClient (line 21) | class _BaseQueryClient: method _generate_session_id (line 31) | def _generate_session_id() -> int: method _create_packet (line 35) | def _create_packet(self) -> Connection: method _create_handshake_packet (line 44) | def _create_handshake_packet(self) -> Connection: method _read_packet (line 52) | def _read_packet(self) -> Connection | Awaitable[Connection]: method handshake (line 56) | def handshake(self) -> None | Awaitable[None]: method read_query (line 60) | def read_query(self) -> QueryResponse | Awaitable[QueryResponse]: method _parse_response (line 63) | def _parse_response(self, response: Connection) -> tuple[RawQueryRespo... class QueryClient (line 105) | class QueryClient(_BaseQueryClient): method _read_packet (line 108) | def _read_packet(self) -> Connection: method handshake (line 114) | def handshake(self) -> None: method read_query (line 120) | def read_query(self) -> QueryResponse: class AsyncQueryClient (line 130) | class AsyncQueryClient(_BaseQueryClient): method _read_packet (line 133) | async def _read_packet(self) -> Connection: method handshake (line 139) | async def handshake(self) -> None: method read_query (line 145) | async def read_query(self) -> QueryResponse: FILE: mcstatus/_utils/deprecation.py function _get_project_version (line 63) | def _get_project_version() -> tuple[int, int, int]: function deprecation_warn (line 121) | def deprecation_warn( class DecoratorFunction (line 176) | class DecoratorFunction(Protocol): method __call__ (line 177) | def __call__(self, /, func: Callable[P, R]) -> Callable[P, R]: ... function deprecated (line 180) | def deprecated( FILE: mcstatus/_utils/general.py function or_none (line 9) | def or_none(*args: T) -> T | None: FILE: mcstatus/_utils/retry.py function retry (line 18) | def retry(tries: int, exceptions: tuple[type[BaseException]] = (Exceptio... FILE: mcstatus/motd/__init__.py class Motd (line 22) | class Motd: method parse (line 36) | def parse( method _parse_as_str (line 62) | def _parse_as_str(raw: str, *, bedrock: bool = False) -> list[ParsedMo... method _parse_as_dict (line 98) | def _parse_as_dict( method _parse_color (line 149) | def _parse_color(color: str) -> ParsedMotdComponent: method simplify (line 171) | def simplify(self) -> Self: method to_plain (line 191) | def to_plain(self) -> str: method to_minecraft (line 199) | def to_minecraft(self) -> str: method to_html (line 212) | def to_html(self) -> str: method to_ansi (line 262) | def to_ansi(self) -> str: FILE: mcstatus/motd/_simplifies.py function get_unused_elements (line 24) | def get_unused_elements(parsed: Sequence[ParsedMotdComponent]) -> set[int]: function squash_nearby_strings (line 44) | def squash_nearby_strings(parsed: _PARSED_MOTD_COMPONENTS_TYPEVAR) -> _P... function get_double_items (line 71) | def get_double_items(parsed: Sequence[ParsedMotdComponent]) -> set[int]: function get_double_colors (line 90) | def get_double_colors(parsed: Sequence[ParsedMotdComponent]) -> set[int]: function get_formatting_before_color (line 115) | def get_formatting_before_color(parsed: Sequence[ParsedMotdComponent]) -... function get_empty_text (line 149) | def get_empty_text(parsed: Sequence[ParsedMotdComponent]) -> set[int]: function get_end_non_text (line 163) | def get_end_non_text(parsed: Sequence[ParsedMotdComponent]) -> set[int]: function get_meaningless_resets_and_colors (line 185) | def get_meaningless_resets_and_colors(parsed: Sequence[ParsedMotdCompone... FILE: mcstatus/motd/_transformers.py class _BaseTransformer (line 65) | class _BaseTransformer(abc.ABC, t.Generic[_HOOK_RETURN_TYPE, _END_RESULT... method transform (line 75) | def transform(self, motd_components: Sequence[ParsedMotdComponent]) ->... method _format_output (line 79) | def _format_output(self, results: list[_HOOK_RETURN_TYPE]) -> _END_RES... method _handle_component (line 81) | def _handle_component( method _handle_str (line 99) | def _handle_str(self, element: str, /) -> _HOOK_RETURN_TYPE: ... method _handle_translation_tag (line 102) | def _handle_translation_tag(self, _: TranslationTag, /) -> _HOOK_RETUR... method _handle_web_color (line 105) | def _handle_web_color(self, element: WebColor, /) -> _HOOK_RETURN_TYPE... method _handle_formatting (line 108) | def _handle_formatting(self, element: Formatting, /) -> _HOOK_RETURN_T... method _handle_minecraft_color (line 111) | def _handle_minecraft_color(self, element: MinecraftColor, /) -> _HOOK... class _NothingTransformer (line 114) | class _NothingTransformer(_BaseTransformer[str, str]): method _format_output (line 120) | def _format_output(self, results: list[str]) -> str: method _handle_str (line 123) | def _handle_str(self, _element: str, /) -> str: method _handle_minecraft_color (line 126) | def _handle_minecraft_color(self, _element: MinecraftColor, /) -> str: method _handle_web_color (line 129) | def _handle_web_color(self, _element: WebColor, /) -> str: method _handle_formatting (line 132) | def _handle_formatting(self, _element: Formatting, /) -> str: method _handle_translation_tag (line 135) | def _handle_translation_tag(self, _element: TranslationTag, /) -> str: class PlainTransformer (line 139) | class PlainTransformer(_NothingTransformer): method _handle_str (line 140) | def _handle_str(self, element: str, /) -> str: class MinecraftTransformer (line 144) | class MinecraftTransformer(PlainTransformer): method _handle_component (line 145) | def _handle_component(self, component: ParsedMotdComponent) -> tuple[s... method _handle_minecraft_color (line 151) | def _handle_minecraft_color(self, element: MinecraftColor, /) -> str: method _handle_formatting (line 154) | def _handle_formatting(self, element: Formatting, /) -> str: class HtmlTransformer (line 158) | class HtmlTransformer(PlainTransformer): method __init__ (line 167) | def __init__(self, *, bedrock: bool = False) -> None: method transform (line 171) | def transform(self, motd_components: Sequence[ParsedMotdComponent]) ->... method _format_output (line 175) | def _format_output(self, results: list[str]) -> str: method _handle_str (line 178) | def _handle_str(self, element: str, /) -> str: method _handle_minecraft_color (line 181) | def _handle_minecraft_color(self, element: MinecraftColor, /) -> str: method _handle_web_color (line 188) | def _handle_web_color(self, element: WebColor, /) -> str: method _handle_formatting (line 192) | def _handle_formatting(self, element: Formatting, /) -> str: class AnsiTransformer (line 207) | class AnsiTransformer(PlainTransformer): method __init__ (line 223) | def __init__(self, *, bedrock: bool = True) -> None: method ansi_color (line 226) | def ansi_color(self, color: tuple[int, int, int] | MinecraftColor) -> ... method _format_output (line 234) | def _format_output(self, results: list[str]) -> str: method _handle_minecraft_color (line 237) | def _handle_minecraft_color(self, element: MinecraftColor, /) -> str: method _handle_web_color (line 240) | def _handle_web_color(self, element: WebColor, /) -> str: method _handle_formatting (line 243) | def _handle_formatting(self, element: Formatting, /) -> str: FILE: mcstatus/motd/components.py class Formatting (line 25) | class Formatting(Enum): class MinecraftColor (line 44) | class MinecraftColor(Enum): class WebColor (line 84) | class WebColor: method from_hex (line 96) | def from_hex(cls, hex: str) -> Self: # noqa: A002 # shadowing a hex b... method from_rgb (line 117) | def from_rgb(cls, rgb: tuple[int, int, int]) -> Self: method _check_rgb (line 129) | def _check_rgb(rgb: tuple[int, int, int]) -> None: class TranslationTag (line 139) | class TranslationTag: FILE: mcstatus/responses/_raw.py class RawForgeDataChannel (line 24) | class RawForgeDataChannel(TypedDict): class RawForgeDataMod (line 33) | class RawForgeDataMod(TypedDict, total=False): class RawForgeData (line 41) | class RawForgeData(TypedDict, total=False): class RawJavaResponsePlayer (line 50) | class RawJavaResponsePlayer(TypedDict): class RawJavaResponsePlayers (line 55) | class RawJavaResponsePlayers(TypedDict): class RawJavaResponseVersion (line 61) | class RawJavaResponseVersion(TypedDict): class RawJavaResponseMotdWhenDict (line 66) | class RawJavaResponseMotdWhenDict(TypedDict, total=False): class RawJavaResponse (line 79) | class RawJavaResponse(TypedDict): class RawQueryResponse (line 89) | class RawQueryResponse(TypedDict): FILE: mcstatus/responses/base.py class BaseStatusResponse (line 20) | class BaseStatusResponse(ABC): method description (line 36) | def description(self) -> str: method build (line 42) | def build(cls, *args: Any, **kwargs: Any) -> Self: method as_dict (line 51) | def as_dict(self) -> dict[str, Any]: class BaseStatusPlayers (line 72) | class BaseStatusPlayers(ABC): class BaseStatusVersion (line 82) | class BaseStatusVersion(ABC): FILE: mcstatus/responses/bedrock.py class BedrockStatusResponse (line 21) | class BedrockStatusResponse(BaseStatusResponse): method build (line 32) | def build(cls, decoded_data: list[Any], latency: float) -> Self: class BedrockStatusPlayers (line 66) | class BedrockStatusPlayers(BaseStatusPlayers): class BedrockStatusVersion (line 71) | class BedrockStatusVersion(BaseStatusVersion): method version (line 85) | def version(self) -> str: FILE: mcstatus/responses/forge.py class ForgeDataChannel (line 40) | class ForgeDataChannel: method build (line 51) | def build(cls, raw: RawForgeDataChannel) -> Self: method decode (line 60) | def decode(cls, buffer: Connection, mod_id: str | None = None) -> Self: class ForgeDataMod (line 81) | class ForgeDataMod: method build (line 90) | def build(cls, raw: RawForgeDataMod) -> Self: method decode (line 109) | def decode(cls, buffer: Connection) -> tuple[Self, list[ForgeDataChann... class _StringBuffer (line 130) | class _StringBuffer(BaseReadSync, BaseConnection): method __init__ (line 135) | def __init__(self, stringio: StringIO) -> None: method read (line 139) | def read(self, length: int) -> bytearray: method remaining (line 153) | def remaining(self) -> int: method read_optimized_size (line 157) | def read_optimized_size(self) -> int: method read_optimized_buffer (line 161) | def read_optimized_buffer(self) -> Connection: class ForgeData (line 180) | class ForgeData: method _decode_optimized (line 193) | def _decode_optimized(string: str) -> Connection: method build (line 200) | def build(cls, raw: RawForgeData) -> Self: FILE: mcstatus/responses/java.py class JavaStatusResponse (line 24) | class JavaStatusResponse(BaseStatusResponse): method build (line 52) | def build(cls, raw: RawJavaResponse, latency: float = 0) -> Self: class JavaStatusPlayers (line 80) | class JavaStatusPlayers(BaseStatusPlayers): method build (line 96) | def build(cls, raw: RawJavaResponsePlayers) -> Self: class JavaStatusPlayer (line 117) | class JavaStatusPlayer: method uuid (line 126) | def uuid(self) -> str: method build (line 131) | def build(cls, raw: RawJavaResponsePlayer) -> Self: class JavaStatusVersion (line 144) | class JavaStatusVersion(BaseStatusVersion): method build (line 148) | def build(cls, raw: RawJavaResponseVersion) -> Self: FILE: mcstatus/responses/legacy.py class LegacyStatusResponse (line 20) | class LegacyStatusResponse(BaseStatusResponse): method build (line 28) | def build(cls, decoded_data: list[str], latency: float) -> Self: class LegacyStatusPlayers (line 50) | class LegacyStatusPlayers(BaseStatusPlayers): class LegacyStatusVersion (line 55) | class LegacyStatusVersion(BaseStatusVersion): FILE: mcstatus/responses/query.py class QueryResponse (line 22) | class QueryResponse: method build (line 51) | def build(cls, raw: RawQueryResponse, players_list: list[str]) -> Self: method as_dict (line 64) | def as_dict(self) -> dict[str, Any]: method map (line 87) | def map(self) -> str | None: class QueryPlayers (line 96) | class QueryPlayers: method build (line 107) | def build(cls, raw: RawQueryResponse, players_list: list[str]) -> Self: method names (line 116) | def names(self) -> list[str]: class QuerySoftware (line 125) | class QuerySoftware: method build (line 136) | def build(cls, version: str, plugins: str) -> Self: method _parse_plugins (line 145) | def _parse_plugins(plugins: str) -> tuple[str, list[str]]: FILE: mcstatus/server.py class MCServer (line 28) | class MCServer(ABC): method __init__ (line 37) | def __init__(self, host: str, port: int | None = None, timeout: float ... method lookup (line 49) | def lookup(cls, address: str, timeout: float = 3) -> Self: class BaseJavaServer (line 59) | class BaseJavaServer(MCServer): method lookup (line 68) | def lookup(cls, address: str, timeout: float = 3) -> Self: method async_lookup (line 83) | async def async_lookup(cls, address: str, timeout: float = 3) -> Self: class JavaServer (line 92) | class JavaServer(BaseJavaServer): method __init__ (line 95) | def __init__(self, host: str, port: int | None = None, timeout: float ... method ping (line 108) | def ping(self, *, tries: int = 3, version: int = 47, ping_token: int |... method _retry_ping (line 125) | def _retry_ping( method async_ping (line 142) | async def async_ping(self, *, tries: int = 3, version: int = 47, ping_... method _retry_async_ping (line 159) | async def _retry_async_ping( method status (line 177) | def status(self, *, tries: int = 3, version: int = 47, ping_token: int... method _retry_status (line 189) | def _retry_status( method async_status (line 207) | async def async_status(self, *, tries: int = 3, version: int = 47, pin... method _retry_async_status (line 219) | async def _retry_async_status( method query (line 237) | def query(self, *, tries: int = 3) -> QueryResponse: method _retry_query (line 247) | def _retry_query(self, addr: Address, tries: int = 3) -> QueryResponse... method async_query (line 253) | async def async_query(self, *, tries: int = 3) -> QueryResponse: method _retry_async_query (line 263) | async def _retry_async_query(self, address: Address, tries: int = 3) -... class LegacyServer (line 270) | class LegacyServer(BaseJavaServer): method status (line 277) | def status(self, *, tries: int = 3) -> LegacyStatusResponse: # noqa: ... method async_status (line 287) | async def async_status(self, *, tries: int = 3) -> LegacyStatusRespons... class BedrockServer (line 297) | class BedrockServer(MCServer): method status (line 303) | def status(self, *, tries: int = 3) -> BedrockStatusResponse: # noqa:... method async_status (line 312) | async def async_status(self, *, tries: int = 3) -> BedrockStatusRespon... FILE: tests/helpers.py function patch_project_version (line 11) | def patch_project_version(version: str | None) -> c.Iterator[None]: FILE: tests/motd/conftest.py function source_java (line 5) | def source_java() -> dict: function source_bedrock (line 40) | def source_bedrock() -> dict: FILE: tests/motd/test_components.py class TestWebColor (line 8) | class TestWebColor: method test_hex_to_rgb_correct (line 17) | def test_hex_to_rgb_correct(self, hex_, rgb): method test_rgb_to_hex_correct (line 28) | def test_rgb_to_hex_correct(self, hex_, rgb): method test_hex_in_output_has_number_sign (line 31) | def test_hex_in_output_has_number_sign(self): method test_fail_on_incorrect_hex (line 35) | def test_fail_on_incorrect_hex(self): method test_fail_on_too_long_or_too_short_hex (line 40) | def test_fail_on_too_long_or_too_short_hex(self, length: int): method test_fail_on_incorrect_rgb (line 45) | def test_fail_on_incorrect_rgb(self): method test_3_symbols_hex (line 49) | def test_3_symbols_hex(self): FILE: tests/motd/test_motd.py class TestMotdParse (line 10) | class TestMotdParse: method test_correct_result (line 11) | def test_correct_result(self, source_bedrock): method test_bedrock_parameter_nothing_changes (line 53) | def test_bedrock_parameter_nothing_changes(self, bedrock: bool): method test_parse_as_str_ignore_minecoin_gold_on_java (line 62) | def test_parse_as_str_ignore_minecoin_gold_on_java(self, bedrock: bool... method test_parse_incorrect_color_passes (line 65) | def test_parse_incorrect_color_passes(self): method test_parse_uppercase_passes (line 69) | def test_parse_uppercase_passes(self): method test_empty_input_also_empty_raw (line 75) | def test_empty_input_also_empty_raw(self, input_, expected): method test_top_level_formatting_applies_to_all_in_extra (line 78) | def test_top_level_formatting_applies_to_all_in_extra(self) -> None: method test_top_level_formatting_can_be_overwrote (line 90) | def test_top_level_formatting_can_be_overwrote(self) -> None: method test_top_level_formatting_applies_to_string_inside_extra (line 103) | def test_top_level_formatting_applies_to_string_inside_extra(self) -> ... method test_formatting_key_set_to_false_here_without_it_being_set_to_true_before (line 116) | def test_formatting_key_set_to_false_here_without_it_being_set_to_true... method test_translate_string (line 127) | def test_translate_string(self): method test_short_text_is_not_considered_as_color (line 133) | def test_short_text_is_not_considered_as_color(self): method test_text_field_contains_formatting (line 137) | def test_text_field_contains_formatting(self): method test_invalid_raw_input (line 141) | def test_invalid_raw_input(self): method test_invalid_color (line 149) | def test_invalid_color(self): method test_multiple_times_nested_extras (line 153) | def test_multiple_times_nested_extras(self): method test_raw_attribute (line 204) | def test_raw_attribute(self, source_bedrock): FILE: tests/motd/test_simplifies.py class TestMotdSimplifies (line 21) | class TestMotdSimplifies: method test_get_unused_elements_call_every_simplifier (line 22) | def test_get_unused_elements_call_every_simplifier(self): method test_simplify_returns_new_instance (line 40) | def test_simplify_returns_new_instance(self): method test_simplifies_work (line 46) | def test_simplifies_work(self): method test_simplify_runs_few_times (line 49) | def test_simplify_runs_few_times(self): method test_get_double_colors (line 56) | def test_get_double_colors(self, first, second): method test_get_double_colors_with_three_items (line 62) | def test_get_double_colors_with_three_items(self, first, second, third): method test_get_double_colors_with_no_double_colors (line 67) | def test_get_double_colors_with_no_double_colors(self, first, second): method test_get_double_items (line 71) | def test_get_double_items(self, item): method test_get_double_items_with_three_items (line 75) | def test_get_double_items_with_three_items(self, item): method test_get_double_items_with_no_double_items (line 79) | def test_get_double_items_with_no_double_items(self, item): method test_get_formatting_before_color (line 83) | def test_get_formatting_before_color(self, last_item): method test_get_formatting_before_color_without_formatting_before_color (line 87) | def test_get_formatting_before_color_without_formatting_before_color(s... method test_skip_get_formatting_before_color (line 90) | def test_skip_get_formatting_before_color(self): method test_get_formatting_before_color_if_space_between (line 94) | def test_get_formatting_before_color_if_space_between(self, last_item): method test_get_empty_text_removes_empty_string (line 97) | def test_get_empty_text_removes_empty_string(self): method test_two_formattings_before_minecraft_color (line 100) | def test_two_formattings_before_minecraft_color(self): method test_two_formattings_one_by_one (line 104) | def test_two_formattings_one_by_one(self): method test_dont_remove_empty_text (line 109) | def test_dont_remove_empty_text(self, item): method test_non_text_in_the_end (line 113) | def test_non_text_in_the_end(self, last_item): method test_translation_tag_in_the_end (line 116) | def test_translation_tag_in_the_end(self): method test_meaningless_resets_and_colors_active (line 120) | def test_meaningless_resets_and_colors_active(self, item): method test_meaningless_resets_and_colors_reset_nothing (line 123) | def test_meaningless_resets_and_colors_reset_nothing(self): method test_meaningless_resets_and_colors_resets (line 127) | def test_meaningless_resets_and_colors_resets(self, item): method test_no_conflict_on_poping_items (line 130) | def test_no_conflict_on_poping_items(self): method test_simplify_function_provides_the_same_raw (line 153) | def test_simplify_function_provides_the_same_raw(self): method test_simplify_do_not_remove_string_contains_only_spaces (line 157) | def test_simplify_do_not_remove_string_contains_only_spaces(self): method test_simplify_meaningless_resets_and_colors (line 161) | def test_simplify_meaningless_resets_and_colors(self): method test_remove_formatting_reset_if_there_was_no_color_or_formatting (line 164) | def test_remove_formatting_reset_if_there_was_no_color_or_formatting(s... method test_squash_nearby_strings (line 169) | def test_squash_nearby_strings(self): FILE: tests/motd/test_transformers.py function test_nothing_transformer (line 17) | def test_nothing_transformer(): class TestMotdPlain (line 21) | class TestMotdPlain: method result (line 23) | def result(self) -> Callable[[str | RawJavaResponseMotd], str]: method test_plain_text (line 26) | def test_plain_text(self, result): method test_removes_colors (line 29) | def test_removes_colors(self, result): method test_skip_web_colors (line 32) | def test_skip_web_colors(self, result): method test_skip_minecraft_colors (line 35) | def test_skip_minecraft_colors(self, result): class TestMotdMinecraft (line 39) | class TestMotdMinecraft: method result (line 41) | def result(self) -> Callable[[str | RawJavaResponseMotd], str]: method test_return_the_same (line 45) | def test_return_the_same(self, motd: str, result): method test_skip_web_colors (line 48) | def test_skip_web_colors(self, result): class TestMotdHTML (line 52) | class TestMotdHTML: method result (line 54) | def result(self) -> Callable[[str, bool], str]: method test_correct_output_java (line 57) | def test_correct_output_java(self, result: Callable[[str | dict, bool]... method test_correct_output_bedrock (line 82) | def test_correct_output_bedrock(self, result: Callable[[str | dict, bo... method test_new_line_is_br_tag (line 119) | def test_new_line_is_br_tag(self): class TestMotdAnsi (line 124) | class TestMotdAnsi: method result (line 126) | def result(self) -> Callable[[str, bool], str]: method test_correct_output_java (line 129) | def test_correct_output_java(self, result: Callable[[str | dict, bool]... method test_correct_output_bedrock (line 155) | def test_correct_output_bedrock(self, result: Callable[[str | dict, bo... FILE: tests/net/test_address.py class TestSRVLookup (line 16) | class TestSRVLookup: method test_address_no_srv (line 18) | def test_address_no_srv(self, exception): method test_address_no_srv_no_default_port (line 28) | def test_address_no_srv_no_default_port(self, exception): method test_address_with_srv (line 35) | def test_address_with_srv(self): method test_async_address_no_srv (line 49) | async def test_async_address_no_srv(self, exception): method test_async_address_no_srv_no_default_port (line 60) | async def test_async_address_no_srv_no_default_port(self, exception): method test_async_address_with_srv (line 68) | async def test_async_address_with_srv(self): class TestAddressValidity (line 81) | class TestAddressValidity: method test_address_validation_valid (line 91) | def test_address_validation_valid(self, address, port): method test_address_validation_range (line 101) | def test_address_validation_range(self, address, port): method test_address_validation_port_invalid_type (line 105) | def test_address_validation_port_invalid_type(self): method test_address_validation_host_invalid_type (line 113) | def test_address_validation_host_invalid_type(self, address, port): method test_address_host_invalid_format (line 117) | def test_address_host_invalid_format(self): class TestAddressConstructing (line 122) | class TestAddressConstructing: method test_init_constructor (line 123) | def test_init_constructor(self): method test_tuple_behavior (line 128) | def test_tuple_behavior(self): method test_from_tuple_constructor (line 135) | def test_from_tuple_constructor(self): method test_from_path_constructor (line 140) | def test_from_path_constructor(self): method test_address_with_port_no_default (line 145) | def test_address_with_port_no_default(self): method test_address_with_port_default (line 150) | def test_address_with_port_default(self): method test_address_without_port_default (line 155) | def test_address_without_port_default(self): method test_address_without_port (line 160) | def test_address_without_port(self): method test_address_with_invalid_port (line 167) | def test_address_with_invalid_port(self): method test_address_with_multiple_ports (line 171) | def test_address_with_multiple_ports(self): class TestAddressIPResolving (line 176) | class TestAddressIPResolving: method setup_method (line 177) | def setup_method(self): method test_ip_resolver_with_hostname (line 182) | def test_ip_resolver_with_hostname(self): method test_async_ip_resolver_with_hostname (line 195) | async def test_async_ip_resolver_with_hostname(self): method test_ip_resolver_cache (line 208) | def test_ip_resolver_cache(self, ip_version: str): method test_async_ip_resolver_cache (line 215) | async def test_async_ip_resolver_cache(self, ip_version: str): method test_ip_resolver_with_ipv4 (line 222) | def test_ip_resolver_with_ipv4(self): method test_async_ip_resolver_with_ipv4 (line 231) | async def test_async_ip_resolver_with_ipv4(self): method test_ip_resolver_with_ipv6 (line 239) | def test_ip_resolver_with_ipv6(self): method test_async_ip_resolver_with_ipv6 (line 248) | async def test_async_ip_resolver_with_ipv6(self): method test_resolve_localhost (line 256) | def test_resolve_localhost(self): method test_async_resolve_localhost (line 264) | async def test_async_resolve_localhost(self): FILE: tests/protocol/test_async_support.py function test_is_completely_asynchronous (line 6) | def test_is_completely_asynchronous(): function test_query_is_completely_asynchronous (line 16) | def test_query_is_completely_asynchronous(): FILE: tests/protocol/test_bedrock_client.py function test_bedrock_response_is_expected_type (line 12) | def test_bedrock_response_is_expected_type(): function test_latency_is_real_number (line 24) | def test_latency_is_real_number(): function test_async_latency_is_real_number (line 46) | async def test_async_latency_is_real_number(): FILE: tests/protocol/test_connection.py class TestConnection (line 9) | class TestConnection: method setup_method (line 12) | def setup_method(self): method test_flush (line 15) | def test_flush(self): method test_receive (line 21) | def test_receive(self): method test_remaining (line 27) | def test_remaining(self): method test_send (line 33) | def test_send(self): method test_read (line 39) | def test_read(self): method _assert_varint_read_write (line 45) | def _assert_varint_read_write(self, hexstr, value) -> None: method test_varint_cases (line 52) | def test_varint_cases(self): method test_read_invalid_varint (line 61) | def test_read_invalid_varint(self): method test_write_invalid_varint (line 67) | def test_write_invalid_varint(self): method test_read_utf (line 73) | def test_read_utf(self): method test_write_utf (line 78) | def test_write_utf(self): method test_read_empty_utf (line 83) | def test_read_empty_utf(self): method test_read_ascii (line 88) | def test_read_ascii(self): method test_write_ascii (line 93) | def test_write_ascii(self): method test_read_empty_ascii (line 98) | def test_read_empty_ascii(self): method test_read_short_negative (line 103) | def test_read_short_negative(self): method test_write_short_negative (line 108) | def test_write_short_negative(self): method test_read_short_positive (line 113) | def test_read_short_positive(self): method test_write_short_positive (line 118) | def test_write_short_positive(self): method test_read_ushort_positive (line 123) | def test_read_ushort_positive(self): method test_write_ushort_positive (line 128) | def test_write_ushort_positive(self): method test_read_int_negative (line 133) | def test_read_int_negative(self): method test_write_int_negative (line 138) | def test_write_int_negative(self): method test_read_int_positive (line 143) | def test_read_int_positive(self): method test_write_int_positive (line 148) | def test_write_int_positive(self): method test_read_uint_positive (line 153) | def test_read_uint_positive(self): method test_write_uint_positive (line 158) | def test_write_uint_positive(self): method test_read_long_negative (line 163) | def test_read_long_negative(self): method test_write_long_negative (line 168) | def test_write_long_negative(self): method test_read_long_positive (line 173) | def test_read_long_positive(self): method test_write_long_positive (line 178) | def test_write_long_positive(self): method test_read_ulong_positive (line 183) | def test_read_ulong_positive(self): method test_write_ulong_positive (line 188) | def test_write_ulong_positive(self): method test_read_bool (line 194) | def test_read_bool(self, as_bytes: str, as_bool: bool) -> None: method test_write_bool (line 200) | def test_write_bool(self, as_bytes: str, as_bool: bool) -> None: method test_read_buffer (line 205) | def test_read_buffer(self): method test_write_buffer (line 212) | def test_write_buffer(self): method test_read_empty (line 219) | def test_read_empty(self): method test_read_not_enough (line 225) | def test_read_not_enough(self): class TestTCPSocketConnection (line 232) | class TestTCPSocketConnection: method connection (line 234) | def connection(self): method test_flush (line 245) | def test_flush(self, connection): method test_receive (line 249) | def test_receive(self, connection): method test_remaining (line 253) | def test_remaining(self, connection): method test_read (line 257) | def test_read(self, connection): method test_read_empty (line 262) | def test_read_empty(self, connection): method test_read_not_enough (line 268) | def test_read_not_enough(self, connection): method test_write (line 274) | def test_write(self, connection): class TestUDPSocketConnection (line 280) | class TestUDPSocketConnection: method connection (line 282) | def connection(self): method test_flush (line 293) | def test_flush(self, connection): method test_receive (line 297) | def test_receive(self, connection): method test_remaining (line 301) | def test_remaining(self, connection): method test_read (line 304) | def test_read(self, connection): method test_read_empty (line 309) | def test_read_empty(self, connection): method test_write (line 315) | def test_write(self, connection): FILE: tests/protocol/test_java_client.py class TestJavaClient (line 12) | class TestJavaClient: method setup_method (line 13) | def setup_method(self): method test_handshake (line 20) | def test_handshake(self): method test_read_status (line 25) | def test_read_status(self): method test_read_status_invalid_json (line 42) | def test_read_status_invalid_json(self): method test_read_status_invalid_reply (line 47) | def test_read_status_invalid_reply(self): method test_read_status_invalid_status (line 58) | def test_read_status_invalid_status(self): method test_test_ping (line 64) | def test_test_ping(self): method test_test_ping_invalid (line 71) | def test_test_ping_invalid(self): method test_test_ping_wrong_token (line 78) | def test_test_ping_wrong_token(self): method test_latency_is_real_number (line 86) | def test_latency_is_real_number(self): method test_test_ping_is_in_milliseconds (line 120) | def test_test_ping_is_in_milliseconds(self): FILE: tests/protocol/test_java_client_async.py function async_decorator (line 13) | def async_decorator(f): class FakeAsyncConnection (line 20) | class FakeAsyncConnection(Connection): method read_buffer (line 21) | async def read_buffer(self): # pyright: ignore[reportIncompatibleMeth... class TestAsyncJavaClient (line 25) | class TestAsyncJavaClient: method setup_method (line 26) | def setup_method(self): method test_handshake (line 33) | def test_handshake(self): method test_read_status (line 38) | def test_read_status(self): method test_read_status_invalid_json (line 55) | def test_read_status_invalid_json(self): method test_read_status_invalid_reply (line 60) | def test_read_status_invalid_reply(self): method test_read_status_invalid_status (line 70) | def test_read_status_invalid_status(self): method test_test_ping (line 76) | def test_test_ping(self): method test_test_ping_invalid (line 83) | def test_test_ping_invalid(self): method test_test_ping_wrong_token (line 90) | def test_test_ping_wrong_token(self): method test_latency_is_real_number (line 99) | async def test_latency_is_real_number(self): method test_test_ping_is_in_milliseconds (line 137) | async def test_test_ping_is_in_milliseconds(self): FILE: tests/protocol/test_legacy_client.py function test_invalid_kick_reason (line 9) | def test_invalid_kick_reason(): function test_parse_response (line 38) | def test_parse_response(response: bytes, expected: LegacyStatusResponse): function test_invalid_packet_id (line 42) | def test_invalid_packet_id(): FILE: tests/protocol/test_query_client.py class TestQueryClient (line 8) | class TestQueryClient: method setup_method (line 9) | def setup_method(self): method test_handshake (line 12) | def test_handshake(self): method test_query (line 20) | def test_query(self): method test_query_handles_unorderd_map_response (line 48) | def test_query_handles_unorderd_map_response(self): method test_query_handles_unicode_motd_with_nulls (line 63) | def test_query_handles_unicode_motd_with_nulls(self): method test_query_handles_unicode_motd_with_2a00_at_the_start (line 78) | def test_query_handles_unicode_motd_with_2a00_at_the_start(self): method test_session_id (line 95) | def test_session_id(self): FILE: tests/protocol/test_query_client_async.py class FakeUDPAsyncConnection (line 6) | class FakeUDPAsyncConnection(Connection): method read (line 7) | async def read(self, length): # pyright: ignore[reportIncompatibleMet... method write (line 10) | async def write(self, data): # pyright: ignore[reportIncompatibleMeth... class TestAsyncQueryClient (line 14) | class TestAsyncQueryClient: method setup_method (line 15) | def setup_method(self): method test_handshake (line 18) | def test_handshake(self): method test_query (line 25) | def test_query(self): FILE: tests/protocol/test_timeout.py class FakeAsyncStream (line 12) | class FakeAsyncStream(asyncio.StreamReader): method read (line 13) | async def read(self, *args, **kwargs) -> typing.NoReturn: function fake_asyncio_asyncio_open_connection (line 18) | async def fake_asyncio_asyncio_open_connection(hostname: str, port: int): class TestAsyncSocketConnection (line 22) | class TestAsyncSocketConnection: method test_tcp_socket_read (line 24) | async def test_tcp_socket_read(self): FILE: tests/responses/__init__.py class BaseResponseTest (line 15) | class BaseResponseTest(abc.ABC): method _validate (line 24) | def _validate(self) -> None: method build (line 48) | def build(self) -> BaseStatusResponse: ... method test_values_of_attributes (line 52) | def test_values_of_attributes(self, build: BaseStatusResponse, field: ... method test_types_of_attributes (line 55) | def test_types_of_attributes(self, build: BaseStatusResponse, field: s... method test_attribute_in (line 58) | def test_attribute_in(self, build: BaseStatusResponse, field: str) -> ... method test_optional_field_turns_into_none (line 61) | def test_optional_field_turns_into_none(self, build: BaseStatusRespons... method _dependency_table (line 66) | def _dependency_table(self) -> dict[str, bool]: method _marks_table (line 77) | def _marks_table(self) -> dict[str, tuple[str, tuple[Any, ...]]]: method construct (line 95) | def construct(class_: _T) -> _T: FILE: tests/responses/conftest.py function pytest_generate_tests (line 13) | def pytest_generate_tests(metafunc: Metafunc) -> None: function pytest_collection_modifyitems (line 25) | def pytest_collection_modifyitems(items: list[Function]) -> None: FILE: tests/responses/test_base.py class TestMCStatusResponse (line 6) | class TestMCStatusResponse: method test_raises_not_implemented_error_on_build (line 7) | def test_raises_not_implemented_error_on_build(self): FILE: tests/responses/test_bedrock.py function build (line 12) | def build(): class TestBedrockStatusResponse (line 34) | class TestBedrockStatusResponse(BaseResponseTest): method build (line 47) | def build(self, build): method test_optional_parameters_is_none (line 51) | def test_optional_parameters_is_none(self, field, pop_index): method test_as_dict (line 71) | def test_as_dict(self, build: BedrockStatusResponse): method test_description_alias (line 81) | def test_description_alias(self, build: BedrockStatusResponse): class TestBedrockStatusPlayers (line 86) | class TestBedrockStatusPlayers(BaseResponseTest): method build (line 90) | def build(self, build): class TestBedrockStatusVersion (line 95) | class TestBedrockStatusVersion(BaseResponseTest): method build (line 99) | def build(self, build): method test_deprecated_version_alias (line 102) | def test_deprecated_version_alias(self, build: BedrockStatusVersion): FILE: tests/responses/test_forge_data.py class TestForgeDataV1 (line 20) | class TestForgeDataV1(BaseResponseTest): method build (line 50) | def build(self) -> ForgeData: class TestForgeDataV2 (line 55) | class TestForgeDataV2(BaseResponseTest): method build (line 75) | def build(self) -> ForgeData: class TestForgeDataV3 (line 80) | class TestForgeDataV3(BaseResponseTest): method build (line 116) | def build(self) -> ForgeData: class TestForgeDataMod (line 120) | class TestForgeDataMod: method test_build_with_empty_input (line 121) | def test_build_with_empty_input(self): method test_build_without_mod_id (line 125) | def test_build_without_mod_id(self): class TestForgeData (line 133) | class TestForgeData(BaseResponseTest): method build (line 548) | def build(self) -> ForgeData: method test_build_with_empty_input (line 685) | def test_build_with_empty_input(self): function test_java_status_response_forge_data_is_none (line 691) | def test_java_status_response_forge_data_is_none(key): function test_java_status_response_forge_data (line 705) | def test_java_status_response_forge_data(key: str, raw: bytes) -> None: FILE: tests/responses/test_java.py class TestJavaStatusResponse (line 11) | class TestJavaStatusResponse(BaseResponseTest): method build (line 42) | def build(self) -> JavaStatusResponse: method test_as_dict (line 45) | def test_as_dict(self, build: JavaStatusResponse): method test_description_alias (line 63) | def test_description_alias(self, build: JavaStatusResponse): class TestJavaStatusPlayers (line 68) | class TestJavaStatusPlayers(BaseResponseTest): method build (line 95) | def build(self) -> JavaStatusPlayers: method test_empty_sample_turns_into_empty_list (line 108) | def test_empty_sample_turns_into_empty_list(self) -> None: method test_java_status_players_sample_is_none (line 111) | def test_java_status_players_sample_is_none(self) -> None: class TestJavaStatusPlayer (line 126) | class TestJavaStatusPlayer(BaseResponseTest): method build (line 130) | def build(self) -> JavaStatusPlayer: method test_id_field_the_same_as_uuid (line 133) | def test_id_field_the_same_as_uuid(self) -> None: class TestJavaStatusVersion (line 141) | class TestJavaStatusVersion(BaseResponseTest): method build (line 145) | def build(self) -> JavaStatusVersion: FILE: tests/responses/test_legacy.py function build (line 11) | def build(): class TestLegacyStatusResponse (line 25) | class TestLegacyStatusResponse(BaseResponseTest): method build (line 36) | def build(self, build): method test_as_dict (line 39) | def test_as_dict(self, build: LegacyStatusResponse): class TestLegacyStatusPlayers (line 49) | class TestLegacyStatusPlayers(BaseResponseTest): method build (line 53) | def build(self, build): class TestLegacyStatusVersion (line 58) | class TestLegacyStatusVersion(BaseResponseTest): method build (line 62) | def build(self, build): FILE: tests/responses/test_query.py class TestQueryResponse (line 13) | class TestQueryResponse(BaseResponseTest): method build (line 41) | def build(self): method test_as_dict (line 44) | def test_as_dict(self, build: QueryResponse): method test_deprecated_map_alias (line 80) | def test_deprecated_map_alias(self, build: QueryResponse): class TestQueryPlayers (line 91) | class TestQueryPlayers(BaseResponseTest): method build (line 99) | def build(self): method test_deprecated_names_alias (line 116) | def test_deprecated_names_alias(self, build: QueryPlayers): class TestQuerySoftware (line 129) | class TestQuerySoftware: method test_vanilla (line 130) | def test_vanilla(self): method test_modded (line 136) | def test_modded(self): method test_modded_no_plugins (line 141) | def test_modded_no_plugins(self): FILE: tests/test_cli.py function patch_stdout_stderr (line 91) | def patch_stdout_stderr(): function mock_network_requests (line 99) | def mock_network_requests(): function normalise_help_output (line 118) | def normalise_help_output(s: str) -> str: function test_no_args (line 137) | def test_no_args(): function test_help (line 146) | def test_help(): function test_help_matches_recorded_output (line 156) | def test_help_matches_recorded_output(): function test_one_argument_is_status (line 164) | def test_one_argument_is_status(mock_network_requests): function test_status (line 177) | def test_status(mock_network_requests): function test_status_with_sample (line 190) | def test_status_with_sample(mock_network_requests): function test_status_sample_empty_list (line 217) | def test_status_sample_empty_list(mock_network_requests): function test_status_bedrock (line 237) | def test_status_bedrock(mock_network_requests): function test_status_legacy (line 252) | def test_status_legacy(mock_network_requests): function test_status_offline (line 262) | def test_status_offline(mock_network_requests): function test_query (line 270) | def test_query(mock_network_requests): function test_query_offline (line 284) | def test_query_offline(mock_network_requests): function test_query_on_bedrock (line 292) | def test_query_on_bedrock(mock_network_requests): function test_json (line 300) | def test_json(mock_network_requests): function test_ping (line 362) | def test_ping(mock_network_requests): function test_ping_bedrock (line 370) | def test_ping_bedrock(mock_network_requests): function test_ping_legacy (line 378) | def test_ping_legacy(mock_network_requests): function test_ping_server_doesnt_support (line 386) | def test_ping_server_doesnt_support(mock_network_requests): FILE: tests/test_compat.py function _chdir (line 21) | def _chdir(path: Path) -> Iterator[None]: function _extractall_compat (line 31) | def _extractall_compat(tar: tarfile.TarFile, destination: Path) -> None: function test_deprecated_import_path (line 61) | def test_deprecated_import_path(raises: bool, module: str, msg_pattern: ... function sdist_path (line 80) | def sdist_path(tmp_path_factory: pytest.TempPathFactory) -> Path: function sdist_member_names (line 114) | def sdist_member_names(sdist_path: Path) -> set[str]: function wheel_member_names (line 122) | def wheel_member_names(sdist_path: Path, tmp_path_factory: pytest.TempPa... function test_includes_compat_shims (line 158) | def test_includes_compat_shims( FILE: tests/test_server.py class AsyncConnection (line 20) | class AsyncConnection(BaseAsyncReadSyncWriteConnection): method __init__ (line 21) | def __init__(self) -> None: method read (line 25) | async def read(self, length: int) -> bytearray: method write (line 34) | def write(self, data: Connection | str | bytearray | bytes) -> None: method receive (line 42) | def receive(self, data: BytesConvertable | bytearray) -> None: method remaining (line 48) | def remaining(self) -> int: method flush (line 52) | def flush(self) -> bytearray: class MockProtocolFactory (line 58) | class MockProtocolFactory(asyncio.Protocol): method __init__ (line 61) | def __init__(self, data_expected_to_receive, data_to_respond_with): method connection_made (line 65) | def connection_made(self, transport: asyncio.Transport): # pyright: i... method connection_lost (line 69) | def connection_lost(self, exc): method data_received (line 73) | def data_received(self, data): method eof_received (line 77) | def eof_received(self): method pause_writing (line 80) | def pause_writing(self): method resume_writing (line 83) | def resume_writing(self): function create_mock_packet_server (line 88) | async def create_mock_packet_server(): class TestBedrockServer (line 108) | class TestBedrockServer: method setup_method (line 109) | def setup_method(self): method test_default_port (line 112) | def test_default_port(self): method test_lookup_constructor (line 115) | def test_lookup_constructor(self): class TestAsyncJavaServer (line 121) | class TestAsyncJavaServer: method test_async_ping (line 123) | async def test_async_ping(self, unused_tcp_port, create_mock_packet_se... method test_async_lookup_constructor (line 135) | async def test_async_lookup_constructor(self): function test_java_server_with_query_port (line 141) | def test_java_server_with_query_port(): function test_java_server_with_query_port_async (line 150) | async def test_java_server_with_query_port_async(): class TestJavaServer (line 158) | class TestJavaServer: method setup_method (line 159) | def setup_method(self): method test_default_port (line 163) | def test_default_port(self): method test_ping (line 166) | def test_ping(self): method test_ping_retry (line 177) | def test_ping_retry(self): method test_status (line 185) | def test_status(self): method test_status_retry (line 207) | def test_status_retry(self): method test_query (line 215) | def test_query(self): method test_query_retry (line 253) | def test_query_retry(self): method test_lookup_constructor (line 262) | def test_lookup_constructor(self): class TestLegacyServer (line 268) | class TestLegacyServer: method setup_method (line 269) | def setup_method(self): method test_default_port (line 273) | def test_default_port(self): method test_lookup_constructor (line 276) | def test_lookup_constructor(self): method test_status (line 281) | def test_status(self): class TestAsyncLegacyServer (line 307) | class TestAsyncLegacyServer: method setup_method (line 308) | def setup_method(self): method test_async_lookup_constructor (line 313) | async def test_async_lookup_constructor(self): method test_async_status (line 319) | async def test_async_status(self): FILE: tests/utils/test_deprecation.py function test_invalid_lib_version (line 14) | def test_invalid_lib_version(): function test_epoch_in_lib_version (line 22) | def test_epoch_in_lib_version(): function test_deprecation_warn_produces_error (line 33) | def test_deprecation_warn_produces_error(removal_version: str | tuple[in... function test_deprecation_warn_produces_warning (line 46) | def test_deprecation_warn_produces_warning(removal_version: str | tuple[... function test_deprecation_invalid_removal_version (line 57) | def test_deprecation_invalid_removal_version(): function test_deprecation_warn_unknown_version (line 70) | def test_deprecation_warn_unknown_version(): function test_deprecation_decorator_warn (line 84) | def test_deprecation_decorator_warn(): function test_deprecation_decorator_inferred_name (line 100) | def test_deprecation_decorator_inferred_name(): function test_deprecation_decorator_missing_docstring_directive (line 117) | def test_deprecation_decorator_missing_docstring_directive(): function test_deprecation_decorator_no_docstring_check_opt_out (line 132) | def test_deprecation_decorator_no_docstring_check_opt_out(): function test_project_version_non_normalized_parsing (line 160) | def test_project_version_non_normalized_parsing(version: str, expected: ... function test_project_version_normalizes_release_components (line 184) | def test_project_version_normalizes_release_components( FILE: tests/utils/test_general.py function test_or_none (line 15) | def test_or_none(a, b, result): function test_or_none_many_arguments (line 19) | def test_or_none_many_arguments(): FILE: tests/utils/test_retry.py function test_sync_success (line 7) | def test_sync_success(): function test_sync_fail (line 21) | def test_sync_fail(): function test_async_success (line 38) | def test_async_success(): function test_async_fail (line 52) | def test_async_fail():