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.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for starter_api-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26745ef4c752bef31965788d01bccfb965dbb036f0e549d85264d74db593a3d2 |
|
MD5 | 1f64b0b23819a565104502be50aade90 |
|
BLAKE2b-256 | fc426e16e4ad11e7f5adcbfd8e00e30ee90893142f8bee36180fc366c3a9e9f7 |