sas package

Subpackages

Submodules

sas.cli module

SasView command line interface

This functionality is under development. Interactive sessions do not yet work in the Windows console.

Usage:

sasview [flags]

Run SasView. If no flag is given, or -q or -V are given, this will start the GUI.

sasview [flags] script [args…]

Run a python script using the installed SasView libraries [passing optional arguments]

sasview [flags] -m module [args…]

Run a SasView/Sasmodels/Bumps module as main [passing optional arguments]

sasview [flags] -c “python statements” [args…]

Execute python statements using the installed SasView libraries

sasview -V

Print sasview version and exit.

Flags:

-i, –interactive. Enter an interactive session after command/module/script.

-o, –console. Open a console to show command output. (Windows only)

-q, –quiet. Suppress startup messages on interactive console.

Note: On Windows any console output is ignored by default. You can either open a console to show the output with the -o flag or redirect output to a file using something like sasview … > output.txt.

sas.cli.main(logging='production')
sas.cli.parse_cli(argv)

Parse the command argv returning an argparse.Namespace.

  • version: bool - print version

  • command: str - string to exec

  • module: str - module to run as main

  • interactive: bool - run interactive

  • args: list[str] - additional arguments, or script + args

Module contents