Metadata-Version: 2.0
Name: starter-api
Version: 0.0.4
Summary: Client for Starter Server API
Home-page: https://github.com/rw-meta/starter-py-client
Author: Artur Geraschenko
Author-email: arturgspb@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Requires-Dist: requests (==2.10.0)

=========================
Starter Server API Client
=========================


Install
=======
pip install starter_api


Usage
=====
.. code-block:: python

    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))



