-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .pyi file for python type hinting.
- Loading branch information
1 parent
6c5b935
commit 6636999
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import pandas as pd | ||
from typing import Dict, Sequence | ||
|
||
class DemoParser: | ||
def __init__(self, path: str) -> None: ... | ||
def parse_header(self) -> Dict[str, str]: ... | ||
def parse_convars(self) -> Dict[str, str]: ... | ||
def Sequence_game_events(self) -> Sequence[str]: ... | ||
def parse_grenades(self) -> pd.DataFrame: ... | ||
def parse_chat_messages(self) -> pd.DataFrame: ... | ||
def parse_player_info(self) -> pd.DataFrame: ... | ||
def parse_item_drops(self) -> pd.DataFrame: ... | ||
def parse_skins(self) -> pd.DataFrame: ... | ||
def parse_event( | ||
self, | ||
event_name: str, | ||
player: Sequence[str] = [], | ||
other: Sequence[str] = [], | ||
player_extra: Sequence[str] = [], | ||
other_extra: Sequence[str] = [], | ||
) -> pd.DataFrame: ... | ||
def parse_events( | ||
self, | ||
event_name: Sequence[str], | ||
player: Sequence[str] = [], | ||
other: Sequence[str] = [], | ||
player_extra: Sequence[str] = [], | ||
other_extra: Sequence[str] = [], | ||
) -> pd.DataFrame: ... | ||
def parse_voice(self) -> Dict[str, bytes]: ... | ||
def parse_ticks( | ||
self, | ||
wanted_props: Sequence[str], | ||
player: Sequence[str] = [], | ||
ticks: Sequence[str] = [], | ||
) -> pd.DataFrame: | ||
"""Parse the specified props. | ||
Args: | ||
wanted_props (Sequence[str]): The props to parse for each player at each tick. | ||
player (Sequence[int]): Sequence of Steam IDs of the players to parse. An empty Sequence means all players. | ||
ticks (Sequence[int]): Sequence of ticks to parse. An empty Sequence means all ticks. | ||
Returns: | ||
pd.DataFrame: Dataframe of all the parsed props for each player at each tick. | ||
""" |