Client for Starter Server API
Project description
Install
pip install starter_api
Usage
import starter_api
starter_api.init("http://HOST:PORT")
# simple build and submit task to server
res = starter_api.build_submit("YOUR_SERVICE", {"myparam": 1})
print('res = ' + str(res))
# build task object into variable and submit to server
task = starter_api.build_task("YOUR_SERVICE", {"myparam": 1})
task_dict = starter_api.submit(task)
print('str(task_dict))
# {u'status': u'NEW', u'retries': 0, u'origin': u'USER', u'sessionId': None, u'serviceId': u'adptools.schema_db', u'dateTarget': u'2017-10-24T20:01:26Z', u'taskId': u'3f7ddc54-17ee-4a0c-8b8e-b6854613c315', u'agentId': None, u'data': {u'myparam': 1}, u'processingResult': None}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
starter_api-0.1.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for starter_api-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d29ff2e8351d906a13fd6a32819890e2af9640aa66a000debc425a28f6c1396 |
|
MD5 | 66e0e66ff76108b044fdb59c69768fb9 |
|
BLAKE2b-256 | 15db4ac7311f934737cadbe84cc3f727b0f5bc82a0d12c591bd92e53b3269f07 |