semvec/pypi-packages huggingface dataset:
starter_api 0.1.3
Client for Starter Server API
License: MIT

=========================
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})
    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}
pyjst 0.1.6
Bake a template from corresponding JSON object
License: MIT
Keywords: simple static template templating json

# pyjst

Bake a template from corresponding JSON object

## How to use

Install (Python 3) : `pip install pyjst`

Create a project directory with given structure :
- project_name/
    - datas/
    - templates/

In **templates/** you can put templates with extension **.html**. In **datas/** you can put
corresponding data with extension **.json**. What this module does is simply render asked template
_name.html_ with corresponding data _name.json_. The output is generated in folder **output/**.

For instance let this file tree :
- example/
    - datas/
        - example.json
        - another.json
    - templates/
        - example.html
        - another.html

So go into your project folder : `cd example`

Then generate your static page _example_ : `pyjst example`

Or generate static page _another_ : `pyjst another`

Done !