🏆 Tournament Interface#
Tournament Interface#
- class novauniverse.interfaces.tournaments.TournamentInterface(supports=[SearchBy.ID, SearchBy.NAME], keys={SearchBy.ID: 'id', SearchBy.NAME: 'display_name'})[source]#
- Bases: - SearchInterface- Tournaments at novauniverse are very similar so I made a whole separate interface class for it inheriting from the search interface. Use this for all tournaments, components in this class can be overridden and added to if needed. - abstract get_all() List[NovaBasicTournament][source]#
- Returns all tournaments from the api in a list. Returns empty list if none. 
 - abstract get_latest() NovaBasicTournament | None[source]#
- Returns the latest tournaments from the api. Returns None if there are no tournaments. 
 - get_top_players(order_by: OrderBy = 0, max_players: int = 15) List[TournamentPlayer][source]#
- Returns the top ranked players in this tournament based on your parameters. - This method returns a list of - TournamentPlayer()but with all scores and kills from previous tournaments combined.
 - search(query: Search | int | str) NovaBasicTournament | None[source]#
- Search for a tournament! Returns None if not found.