Skip to content
Back to skills

Python Subprocess Pattern

ASecurity

Sub-skill of aqwa-batch-execution: Python Subprocess Pattern.

  • 17 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill python-subprocess-pattern --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Subprocess Pattern?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Subprocess Pattern
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-python-subprocess-pattern/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-python-subprocess-pattern)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aqwa-batch-execution-python-subprocess-pattern
description: 'Sub-skill of aqwa-batch-execution: Python Subprocess Pattern.'
version: 1.1.0
category: engineering
type: reference
scripts_exempt: true
---

# Python Subprocess Pattern

## Python Subprocess Pattern


```python
import subprocess
from pathlib import Path

AQWA_EXE = Path("/ansys_inc/v251/aqwa/bin/lnx64/Aqwa")

def run_aqwa(work_dir: Path, job_name: str, job_type: str = "std") -> bool:
    """Run AQWA batch. Returns True on success."""
    result = subprocess.run(
        [str(AQWA_EXE), job_type, job_name],
        cwd=str(work_dir), capture_output=True, text=True,
    )
    mes = (work_dir / f"{job_name}.mes")
    if mes.exists() and any(
        kw in mes.read_text(errors="replace").upper()
        for kw in ("ERROR", "FATAL", "ABORT")
    ):
        return False
    return (work_dir / f"{job_name}.res").exists()
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.