Using the Python API

The Python API documentation is included in the package. After installation, refer to:

pydoc rawclient

Example

The following Python code will connect to the RAW Executor and test if it is alive:

>>> from rawapi import *
>>> cli = new_raw_client()
>>> cli.health()

By default, new_raw_client() will look up for the raw.ini configuration file, in the same order as described in the command-line client section. The method can be parameterized with the RAW server endpoint locations.