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})
res = starter_api.submit(task)
print('res = ' + str(res))
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.0.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for starter_api-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ad5665c575443f4c95a9a583c356a45045753c370e5ea0079f9c9b47cce7c9e |
|
MD5 | 69908efb10d1a7546a765784dfb76f3d |
|
BLAKE2b-256 | cf9b00fcdf091b23ac823018abe5d7ffc5da66bdf36a65a7ed52ed969c3a34fb |