utils module#

async get_req_data(req: Request, *keys: str) list[str][source]#
async post_prediction(app: Client, broadcaster_id: int, title: str, outcomes: list[str], prediction_window: int)[source]#
getfile(x: str, mode: str)[source]#
update_db()[source]#
convert_class_to_obj(obj: Any) dict[str, Any][source]#
format_for_slaytabase(val: str) str[source]#
complete_match(string: str, matches: Iterable[str]) list[source]#
parse_date_range(date_string: str) tuple[datetime][source]#

valid date strings: YYYY/MM/DD-YYYY/MM/DD (MM and DD optional), YYYY/MM/DD+ (no end date), YYYY/MM/DD- (no start date)