Pymerase Docs - Running Pymerase

Brandon King
Copyright © California Institute of Technology

Version 0.1.3
Apr 30, 2003

Methods of Running Pymerase

Command Line Command Line Interface to Pymerase
Pymerase GUI Python Tk GUI Interface to Pymerase
Driver Program Small Python script for providing pymerase
with information.
Pymweb Pymerase Web Interface

Pymerase: Command Line

Currently works with Python: Yes
Currently works with Jython: No longer needed, support dropped.
Default Install Location: /usr/bin/pymerase
CVS Checkout Location: pymerase/bin/pymerase
 Useage:

  pymerase -s [source] -i [inputModule] -d [destination] -o [outputModule]

  pymerase --source=[source] --inputModule=[inputModule] 
   --destination=[destination] --outputModule=[outputModule] 

  Options:

   -s, --source=[foo]         Location of input file or directory
   -i, --inputModule=[foo]    Name of PyMerase input translation module
   -d, --destination=[foo]    Location of output file or directory
   -o, --outputModule=[foo]   Name of PyMerase output module

   -g, --gui                  GUI Interface to Pymerase

   -t, --translators          Displays more info about translators
   -v, --version              Displays version numbers
   -h, --help                 Displays this help page

 Input Translators Available:
  parseXMI
  parseGenexSchemaXML

 Output Translators Available:
  iPymerase
  CreateHtmlForms
  CreateTableXML
  ...etc...

Pymerase: GUI

Currently works with Python: Yes
Currently works with Jython: No longer needed, support dropped.
Default Install Location: /usr/bin/pymerase
CVS Checkout Location: pymerase/bin/pymerasegui.py
As you can see from the figure below, it's pretty straight forward. You give the path to your source files, choose the input module of your choice, select your output modules, and give the paths to where you want the output to go.
Note that iPymerase requires that ipython to be installed. Also, note that if you want to run ipython, all other options will be deselected.

Pymerase: Driver Program

Currently works with Python: Yes
Currently works with Jython: No longer needed, support dropped.
------------Driver Program Template-----------

#!/usr/bin/env python

import sys
import os
import pymerase

if __name__ == '__main__':
  #Path to schema
  schema = os.path.abspath('./path2schema/schema') 
  
  #Output Path
  outputPath = os.path.abspath('./outputPath')
  
  #Run pymerase
  pymerase.run(schema,
               'nameOfInputModule',
               outputPath,
               'nameofOutputModule')

--------End Driver Program Template---------

Pymerase: Pymweb

CVS Checkout Location: pymerase/pymweb/
Pymweb is in optional web interface for Pymerase. For more information on Pymweb read documention called "Pymerase Docs - Pymweb Install" and "Pymerase Docs - Pymweb Manual". You can find these documents at 'http://pymerase.sf.net/docs/'.



File translated from TEX by TTH, version 3.33.
On 30 Apr 2003, 14:38.