Python Modules

Module Descriptions

The Python modules, their names and their purpose are described below.

Module

Purpose

 

 

netsvc

This is the main module and provides wrappers around the

 

functionality of the OSE C++ class library. It includes all that

 

is required for building distributed applications using the

 

service agent framework.

 

 

netrpc

This module provides a client implementation of the RPC

 

over HTTP protocol implemented by OSE called NET-RPC.

 

 

netsvc.xmlrpc

This module includes the XML-RPC gateway for OSE. Any

 

server code is the same as for when the NET-RPC protocol is

 

used. The only difference is which gateway you instantiate.

 

 

netrpc.xmlrpc

This module provides a client implementation of the XML-

 

RPC protocol. The module is interface compatible with

 

the"netrpc" module.

 

 

netsvc.soap

This module includes the SOAP gateway for OSE. Any

 

server code is the same as for when the NET-RPC protocol is

 

used. The only difference is which gateway you instantiate.

 

 

netrpc.soap

This module provides a client implementation of the SOAP

 

protocol. The module is interface compatible with

 

the"netrpc" module.

 

 

Installation and Setup

The "netsvc" module requires the main OSE C++ class library to be installed, as well as the Python extension library. The version of "makeit" installed when OSE is installed needs to be run in the "python" subdirectory of the OSE source code. This final step will install the two Python modules, a dynamically loadable module which drags in the OSE C++ class libraries and a GUI based debugger for the service agent framework called "spyon". The exact steps which need to be followed are given in the "INSTALL" file in the OSE source code.

When the Python modules are installed, they are not installed into your Python installation, but into the same area that OSE is installed. In order that Python can find the modules, you will need to set your PYTHONPATH environment variable to include the appropriate library directory in the OSE installa- tion. For OSE 7.0, if installed into its standard location, the directory will be:

/usr/local/ose/7.0/lib/python

10

Page 10
Image 10
Python Python Manual, 7.0pl5 manual Module Descriptions, Installation and Setup