Repository URL to install this package:
|
Version:
0.0.7 ▾
|
# bindings represents informationnused by classes/functions available in the t2wml parser
class BindingsClass:
def __init__(self):
self.item_table = None
self.excel_sheet = None
bindings = BindingsClass()
def update_bindings(sheet=None, item_table=None) -> None:
"""
This function updates the bindings dictionary with the excel_file, item_table, and sparql endpoint
"""
if sheet:
bindings.excel_sheet = sheet
if item_table:
bindings.item_table = item_table