bfrt_helper.bfrt_info

BfRtInfo

class BfRtInfo(data)[source]

Bases: object

Class representing the contents of a BfRtInfo file

This class is a utility class used to more easily access the contents of a BfRtInfo file, rather than define a bunch of functions for navigating it’s JSON (or a dictionary containing it’s contents).

This would then be passed to the BfRt helper.

The data passed in would ordinarily be created as follows:

bfrt_data = json.load(open("all_bfrt.json"))
bfrt_info = BfRtInfo(all_bfrt_data)
Parameters:

data (dict) – Dictionary containing the contents of the BfRtInfo file.

get_action_field(table_name, action_name, field_name)[source]
get_action_field_id(table_name, action_name, field_name)[source]
get_data_field(table_name, field_name)[source]
get_data_field_id(table_name, field_name)[source]
get_table(table_name)[source]
get_key(table_name, key_name)[source]
get_table_id(table_name)[source]
get_key_id(table_name, key_name)[source]
get_action_spec(table_name, action_spec_name)[source]
get_action_spec_id(table_name, action_spec_name)[source]