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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file starter_api-0.1.3.tar.gz.
File metadata
- Download URL: starter_api-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd39f59a518039055d69e9c132cec9235b434d7027f86d062fed503732755d1f
|
|
| MD5 |
f2a2c8ea4ce80bfee2f3194bd8cabd9a
|
|
| BLAKE2b-256 |
85a0e90829ae15c7f3c05861c2c0ed87977a906227fad40ef3312fefee7943de
|
File details
Details for the file starter_api-0.1.3-py3-none-any.whl.
File metadata
- Download URL: starter_api-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26745ef4c752bef31965788d01bccfb965dbb036f0e549d85264d74db593a3d2
|
|
| MD5 |
1f64b0b23819a565104502be50aade90
|
|
| BLAKE2b-256 |
fc426e16e4ad11e7f5adcbfd8e00e30ee90893142f8bee36180fc366c3a9e9f7
|