Newer
Older
#!/usr/bin/env python
import networkx as nx
import json
class MLServerInterface:
def __init__(self):
parameters = {}
this = self.MLClass(parameters, "placeholder")
class Attribute:
def __init__(self, optional, type):
self.optional = optional
self.type = type
def toJSON(self):
return json.dumps(self, default=lambda o: o.__dict__,
sort_keys=True, indent=4)
def handleJSON(self, body) -> str:
pass