MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / publish

Method publish

Algorithmia/algorithm.py:105–110  ·  view source on GitHub ↗
(self, details={}, settings={}, version_info={}, source={}, scmsCredentials={})

Source from the content-addressed store, hash-verified

103
104 # Publish an algorithm
105 def publish(self, details={}, settings={}, version_info={}, source={}, scmsCredentials={}):
106 url = "/v1/algorithms/" + self.username + "/" + self.algoname + "/versions"
107 publish_parameters = {"details": details, "settings": settings,
108 "version_info": version_info, "source": source, "scmsCredentials": scmsCredentials}
109 api_response = self.client.postJsonHelper(url, publish_parameters, parse_response_as_json=True, retry=True)
110 return api_response
111
112 def get_builds(self, limit=56, marker=None):
113 kwargs = {"limit": limit, "marker": marker}

Calls 1

postJsonHelperMethod · 0.80