wiki:FAQ_WrapperScriptBasics

Version 1 (modified by dkearney, 15 years ago) (diff)

--

Wrapper Script Basics

Topics covered:

  1. What is a Wrapper Script?
  2. Basic Format of a Wrapper Script.
  3. Hands On Example
  4. Wrapper Script Examples

What is a wrapper script?

A wrapper script is a file used to processes the data traveling between the Rappture GUI and the science portion of a project. Most applications do not need a wrapper script because the Rappture libary calls can be embedded directly into the source code, yet still separate from the science code. Typically, wrapper scripts are written in a scripting language such as Tcl or Python. Here are a few cases when you should consider using a wrapper script instead of embedding the Rappture library calls into the source code:

  1. If the code is considered a legacy application where there is little new development and it just needs a graphical user interface.
  2. If the original source code is considered an industry standard and there is no advantage to changing it.
  3. You do not have access/permission to the original source to add Rappture library calls

If your project is still under development or otherwise does not fit into one of the previously definded conditions, you should seriously consider embedding the library calls into your application.

Basic Format of a Wrapper Script

Hands On Example

Wrapper Script Examples

There are a number of previously written wrapper scripts you can look at or use as a starting place for your own script. Check out these examples from other projects:

  1. MolCToy Wrapper Script
  2. Padre Wrapper Script
  3. CNTBands Wrapper Script

Back to Frequently Asked Questions