Skip to main content

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.

Files for starter_api, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size starter_api-0.1.3-py3-none-any.whl (4.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size starter_api-0.1.3.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page