API reference
The signatures and members below are generated from the installed GVU package. See the guides for workflows and the coverage page for verification boundaries.
Session
- class gvu.Session(backend, groups=(), owned=False)[source]
Bases:
objectA GaussView process and the molecule groups owned by a workflow.
- classmethod open(workflow, *, application_path=None, reuse_views=True)[source]
Open declared views, reusing matches unless reuse_views is False.
- classmethod attach(*, application_path=None)[source]
Attach to the running application selected by its bundle path.
- load(paths, grouping=Grouping.SEPARATE, read_intermediates=False)[source]
Load documents and own exactly the new molecule groups they create.
- compare(paths, name='comparison', alignment=Alignment(horizontal='X', vertical='Y'))[source]
Load first-job input geometries as the frames of one molecule group.
- preserve_windows()[source]
Restore existing window bounds on exit; leave group visibility untouched.
- arrange(models=None, style=Layout.OVERLAP, screen=None, size=(620, 390))[source]
Place only the selected models on an explicitly chosen or current display.
Read refreshed menu paths, effective enabled states and native marks.
Set a checkable menu item without toggling an already matching state.
ModelView
- class gvu.ModelView(session, group)[source]
Bases:
object- property window
Inspect native menu availability for this molecule group.
- click(x, y, button='left', modifiers=())[source]
Click a view-relative point for builder, atom-selection or context actions.
- drag(start, end, button='left', modifiers=())[source]
Send a scoped canvas gesture, including documented mouse modifiers.
- property frame
- property frame_count
- property playing
Dialog
Preferences
- class gvu.Preferences(session, title)[source]
Bases:
DialogGaussView preference pages with explicit apply/cancel operations.
- PAGES = ('Ampac Setup', 'Building', 'Charge Distribution', 'Clean Controls', 'Custom Bonding Parameters', 'Colors', 'Display Format', 'File/Directory', 'Font', 'Gaussian Setup', 'Icons', 'Image', 'Job Setup', 'Movie, Animation', 'Print', 'Vibrations', 'Window Behavior')
Plot
Vibrations
Workflow
- class gvu.Workflow(source: pathlib._local.Path, results: tuple[gvu.models.Result, ...] = (), surfaces: tuple[gvu.models.Surface, ...] = (), density_isovalue: float = 0.002, alignment: gvu.models.Alignment | None = None, surface_style: gvu.models.SurfaceStyle = <SurfaceStyle.TRANSPARENT: 'Transparent'>, opacity: float = 0.5, layout: tuple[tuple[str | gvu.models.Result, tuple[int, int], tuple[int, int]], ...] = (), reference_screen: tuple[int, int] = (1728, 1117), position_jitter: int = 8, size_jitter: int = 6)[source]
Bases:
object- source: Path
- density_isovalue: float = 0.002
- surface_style: SurfaceStyle = 'Transparent'
- opacity: float = 0.5
- reference_screen: tuple[int, int] = (1728, 1117)
- position_jitter: int = 8
- size_jitter: int = 6
- property files
- validate()[source]
Validate required files and result markers without opening GaussView.
Raises ValueError for missing data or invalid workflow settings.
- view(*, application_path: Path | str | None = None, reuse_views: bool = True, log_level: int | str = 'INFO')[source]
Open this workflow in GaussView.
- Args:
application_path: Application bundle; defaults to ~/Applications/GaussView6/gview.app. reuse_views: Reuse matching open views; False opens new views. log_level: Standard logging level, such as “INFO”, “DEBUG” or logging.DEBUG.
Validates the workflow before opening windows. Failures raise their original exceptions for the caller to handle. Process arguments are never inspected.
Surface
Result
- class gvu.Result(*values)[source]
Bases:
Enum- SUMMARY = 'Summary...'
- CHARGES = 'Charge Distribution...'
- PCM_CAVITY = 'PCM Solvation Cavity...'
- ATOM_PROPERTIES = 'Atom Properties...'
- BOND_PROPERTIES = 'Bond Properties...'
- SURFACES = 'Surfaces/Contours...'
- VIBRATIONS = 'Vibrations...'
- NMR = 'NMR...'
- EXCITATIONS = 'UV-Vis...'
- ORD = 'ORD...'
- VIBRONIC = 'Vibronic...'
- GROUP_TABLE = 'Molecule Group Table...'
- SCAN = 'Scan...'
- IRC = 'IRC/Path...'
- TRAJECTORY = 'Trajectory...'
- OPTIMIZATION = 'Optimization...'
- ENERGY = 'Energy Plot...'
- property titles
- property markers
- property intermediate_geometries
SurfaceStyle
Alignment
Bounds
Screen
- class gvu.Screen(identifier: int, name: str, bounds: gvu.models.Bounds, work_area: gvu.models.Bounds)[source]
Bases:
object- identifier: int
- name: str
Grouping
Layout
Shortcut
- class gvu.Shortcut(character: str | None = None, modifiers: int | None = None, glyph: int | None = None, key: int | None = None)[source]
Bases:
objectNative macOS shortcut attributes; modifiers use AX’s bit mask.
- character: str | None = None
- modifiers: int | None = None
- glyph: int | None = None
- key: int | None = None
Control
- class gvu.Control(path: tuple[int, ...], role: str, label: str, enabled: bool | None, value: Any, actions: tuple[str, ...], writable: tuple[str, ...], dialog: str = '')[source]
Bases:
object- path: tuple[int, ...]
- role: str
- label: str
- enabled: bool | None
- value: Any
- actions: tuple[str, ...]
- writable: tuple[str, ...]
- dialog: str = ''