Event¶
-
class
alliancepy.ext.aio.async_event.Event(event_key: str, headers: dict)¶ Bases:
objectThis is the asynchronous version of the normal
Eventclass. Instances of this class should not be created directly; instead use yourTeamobject.- season
The season in which the event occurred.
- region
The key of the region in which the event occured.
- league
The key of the league the event occured in, if any.
- name
The name of the event
- location
The location of the event, in City, State/Province, Country form.
- venue
The venue of the event.
-
async
match(match_type: alliancepy.match_type.MatchType, match_number: int)¶ Get one of the matches for the event.
- Parameters
match_type (
MatchType) – The type of the match. See Match Type for more information.match_number (int) – The number of the match.
- Returns
A
Matchobject containing details about the specific match.- Return type
-
async
rank(team_number: int)¶ The specified team’s rank at the end of the match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The rank as an integer.
- Return type
int
-
async
rank_change(team_number: int)¶ The amount of times the team’s rank changed during the event.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The rank change as an integer.
- Return type
int
-
async
wins(team_number: int)¶ The amount of times within the event that the specified team won a match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of wins as an integer.
- Return type
int
-
async
losses(team_number: int)¶ The amount of times within the event that the specified team lost a match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of losses as an integer.
- Return type
int
-
async
ties(team_number: int)¶ The amount of times within the event that the specified team tied in a match.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of ties as an integer.
- Return type
int
-
async
opr(team_number: int)¶ The specified team’s OPR for this event only. Penalties are factored in.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The OPR as a floating point number.
- Return type
float
-
async
np_opr(team_number: int)¶ The specified team’s OPR for this event only. Penaltied are not factored in.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The NP_OPR as a floating point number.
- Return type
float
-
async
highest_qualifier_score(team_number: int)¶ The specified team’s highest score in a qualifier.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The score as an integer.
- Return type
int
-
async
ranking_points(team_number: int)¶ The specified team’s ranking points for this event only.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of ranking points as a floating point number.
- Return type
float
-
async
qualifying_points(team_number: int)¶ The specified team’s qualifying points for this event only.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of wualifying points as an integer.
- Return type
int
-
async
tiebreaker_points(team_number: int)¶ The specified team’s tiebreaker points for this event only.
- Parameters
team_number (int) – A valid FTC team number.
- Returns
The amount of tiebreaker points as a floating point number.
- Return type
float