๐ 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#
- 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.
Global Reference#
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#
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#