Dict Parser

Schema on Site

This component allows for a custom Dict to Table performance.


Methods:
    def AddDict(data: dict, unique=True):
        """Add a dict to be parsed."""
        pass

    def AddDicts(data: List[dict], unique=True):
        """Add a List of Dicts to be parse."""
        pass

    def GetRow( rowIndex: entryIndex):
        pass

    def GetValue(rowIndex: entryIndex, itemIndex: entryIndex) -> Dict[str, any]:
        """Return a dictionary of the parsed row!"""
        pass

    def SearchRows(searchValue: str, searchCol: entryIndex) -> List[entryIndex]:
        """This loads the complete row, which is def not ideal, but usable. Use Index-Tables for quicker search?"""
        pass

Callbacks:
def GetDefinition( entryDefinition:"Type[EntryDefinition]", parser:"extDictParser" ):
	return [
		entryDefinition( "Required", lambda input: input["Required"], required = True, returnFunction=lambda value: value.capitalize() ),
		entryDefinition( "NoDefault", lambda input: input["NoDefault"] ),
		entryDefinition( "NotRequired", lambda input: input["NotRquired"], default = "Default Value")
	]


Downloads: 40

Created at: 5.6.2024

Uploaded: 5.6.2024
Download