pyETT package

Submodules

pyETT.ett module

class pyETT.ett.ETT[source]

Bases: object

A class to represent Eleven Table Tennis (ETT).

get_leaderboard(num_players=10) → List[pyETT.ett.Player][source]

Returns a list of players from the leaderboard.

get_leaderboard_dataframe(num_players=10) → pandas.core.frame.DataFrame[source]

Returns a pandas dataframe with players from the leaderboard.

get_leaderboard_official_tournament_dataframe() → pandas.core.frame.DataFrame[source]

Returns a pandas dataframe with the leaderboard of the Eleven official tournaments available at http://lavadesignstudio.co.uk/eleven-rankings/.

Returns a list of players whose name contains username, if perfect_match is False. Otherwise, it returns a list of players whose usernames is a perfect match with username.

user_search_dataframe(username, perfect_match=False) → pandas.core.frame.DataFrame[source]

Returns a list of players whose name contains username, if perfect_match is False. Otherwise, it returns a list of players whose usernames is a perfect match with username.

class pyETT.ett.Match(match_id, match)[source]

Bases: object

A class to represent a Match.

class Round(round_attributes)[source]

Bases: object

A class to represent a round of a Match.

get_rounds_dataframe() → pandas.core.frame.DataFrame[source]

Converts a list of rounds to a DataFrame

class pyETT.ett.Player(user_id, player=None, legacy_api=False)[source]

Bases: object

A class to represent a Player.

AWAY = 1
HOME = 0
get_elo_history() → pandas.core.frame.DataFrame[source]

Returns player’s elo score history.

get_friends() → List[pyETT.ett.Player][source]

Return a player’s friends list

get_friends_dataframe() → pandas.core.frame.DataFrame[source]

Return a player’s friends list in a dataframe

get_matches(unranked=False) → List[pyETT.ett.Match][source]

Return player’s matches.

get_matches_dataframe(unranked=False) → pandas.core.frame.DataFrame[source]

Return player’s matches in a pandas dataframe.

pyETT.ett_parser module

pyETT.ett_parser.get_elo_history(user_id) → List[source]
pyETT.ett_parser.get_friends(user_id) → List[source]
pyETT.ett_parser.get_leaderboard(num_players=10)[source]
pyETT.ett_parser.get_leaderboard_official_tournament() → List[source]
pyETT.ett_parser.get_matches(user_id, unranked=False) → List[source]
pyETT.ett_parser.get_user(user_id) → List[source]

Module contents

pyETT.get_or_create_eventloop()[source]