๐ŸŒ Server Stats#

Server Interface#

class novauniverse.interfaces.stats.server.Server[source]#

Bases: BasicInterface

The interface for NovaAPIโ€™s /stats/extended endpoint. Allows you to get all ๐ŸŒserver stats/info and see which players are ๐ŸŸขonline.

get_online_players() List[NovaOnlinePlayer][source]#

Returns list of just the online players.

get_stats() ServerInfo[source]#

Getโ€™s and returns all server stats.

ServerInfo Reference#

class novauniverse.interfaces.stats.server.server_info.ServerInfo(data: dict, players_data: dict)[source]#

Bases: NovaDataclass

cached: bool#

Returns whether this data is cached or not.

data: dict#
global_: Global#

Returns class that contains global player_count and server_count.

online_players: List[NovaOnlinePlayer]#

Returns all players that are online as NovaBasicPlayer object.

player_count: int#

Returns global player count of Nova Universe.

player_preview: PlayerPreview#

Returns player preview.

players_data: dict#
server_count: int#

Returns global server count of Nova Universe.

servers: List[NovaServer]#

Returns all servers on the Nova Universe network.

system: System#

Returns the system class that lets you see get details like the localtime.

Global Reference#

class novauniverse.interfaces.stats.server.global_.Global(data: dict)[source]#

Bases: NovaDataclass

data: dict#
player_count: int#

Returns global player count of Nova Universe.

server_count: int#

Returns global server count of Nova Universe.

NovaOnlinePlayer Reference#

class novauniverse.interfaces.stats.server.nova_online_player.NovaOnlinePlayer(data: dict)[source]#

Bases: NovaBasicPlayer

A online Nova Universe player. WOW their actually ONLINE! Thatโ€™s CRAZY!

server_name: str#

Returns name of the server the player is in.

server_type_display_name: str#

Returns type display name of the server the player is in.

server_type_id: str#

Returns type id of the server the player is in.

server_type_name: str#

Returns type name of the server the player is in.

NovaServer Reference#

class novauniverse.interfaces.stats.server.nova_server.NovaServer(data: dict)[source]#

Bases: NovaDataclass

available: bool#
data: dict#
display_name: str#
id: str#
max_preview_players: int#
name: str#
player_preview: List[NovaBasicPlayer]#
server_count: str#

PlayerPreview Reference#

class novauniverse.interfaces.stats.server.player_preview.PlayerPreview(data: dict)[source]#

Bases: NovaDataclass

additional: int#
content: List[NovaBasicPlayer]#
data: dict#
max_preview_items: int#

System Reference#

class novauniverse.interfaces.stats.server.system.System(data: dict)[source]#

Bases: NovaDataclass

data: dict#
localtime: Timestamp#