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.