# slurm_script_generator.slurm_template

*module*

Generate a SLURM batch script from a built-in template.

``slurm-template <template> -o job.sh`` writes a ready-to-edit script for a
common job shape (single CPU task, OpenMP, MPI, hybrid MPI+OpenMP, GPU, or a
job array) instead of building one pragma-by-pragma with
``generate-slurm-script``. Run ``slurm-template --list`` to see what's
available.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/slurm_template.py#L1-L1)

## slurm_script_generator.slurm_template.main

*function*

```python
def main(argv: Optional[List[str]] = None) -> None
```

Entry point for the ``slurm-template`` command-line tool.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/slurm_template.py#L34-L171)
