Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
t2wml-api / utils / bindings.py
Size: Mime:
# 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