def setup_(url, project): api = MLApi(url=url) if not isinstance(project, Project): project = Project.objects.get(pk=project) return api.setup(project)
def api(self): return MLApi(url=self.url, timeout=self.timeout)
def healthcheck_(url): return MLApi(url=url).health()
def api(self): return MLApi(url=self.url)