def __repr__(self) -> str: return self.type + "|" + Parser.sdict( self.parms )
def deserialize(spec: str) -> "OpNode": toks = spec.split('|') return OpNode(toks[0], toks[1], "", Parser.rdict(toks[2]))
def parse(str): args = str.split("|") kwargs = Parser.rdict( args[1] ) return Transformation( args[0], **kwargs )
def serialize(self) -> str: return "{}|{}|{}".format(self.name, self.domain, Parser.sdict(self.metadata))