classes module

class classes.League(code)

Bases: object

Represents a league class

print_matchday(num)

Prints all matches of given matchday :param num: matchday number :return: None

print_scorers()

Prints a list of top 10 scorers of the league :return: None

print_standings()

Prints the standings :return: None

class classes.Team(name, team_id, match_list, matchday, standings)

Bases: object

Represents one football team

against_top_6()

Returns a MatchList class object with matches only against top 6 teams in league :return: MatchList object with all matches against top 6 teams

get_form(num)

Returns a MatchList class object that contains last number(num) of matches :param num: number of last matches :return: MatchList object

get_stats()

Finds the stats and gives the values to the atributes :return: None

print_head_to_head(other_team)

Prints comparison of two teams and their previous games against each other :param other_team: name of team to compare with :return: None

print_info()