# slurm_script_generator.pragmas

*module*

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

## slurm_script_generator.pragmas.PragmaTypes

*attribute* · *module attribute*

```python
PragmaTypes = Literal['job_config', 'time_and_priority', 'io_and_directory', 'notifications', 'dependencies_and_arrays', 'core_node_and_task_allocation', 'cpu_topology_and_binding', 'memory', 'gpus', 'generic_resources_and_licenses', 'node_constraints_and_selection', 'exclusivity_and_sharing', 'execution_behavior_and_signals', 'advanced_hardware_misc', 'plugins', 'other_options']
```

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

## slurm_script_generator.pragmas.acc

*attribute* · *module attribute*

```python
acc = Account('max')
```

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

## slurm_script_generator.pragmas.pragmas_ordered

*attribute* · *module attribute*

```python
pragmas_ordered: List[Type[Pragma]] = [Job_name, Account, Partition, Qos, Clusters, Reservation, Wckey, Mcs_label, Comment, Time, Time_min, Begin, Deadline, Priority, Nice, Chdir, Output, Error, Disable_output_job_summary, Get_user_env, Quiet, Mail_user, Mail_type, Bell, Dependency, Array, Nodes, Ntasks, Ntasks_per_node, Cpus_per_task, Mincpus, Distribution, Spread_job, Use_min_nodes, Sockets_per_node, Cores_per_socket, Threads_per_core, Ntasks_per_core, Ntasks_per_socket, Extra_node_info, Hint, Mem, Mem_per_cpu, Mem_bind, Oom_kill_step, Gpus, Gpus_per_node, Gpus_per_task, Gpus_per_socket, Cpus_per_gpu, Mem_per_gpu, Gpu_bind, Gpu_freq, Nvmps, Gres, Gres_flags, Tres_bind, Tres_per_task, Licenses, Constraint, Cluster_constraint, Contiguous, Nodelist, Nodefile, Exclude, Exclusive_user, Exclusive_mcs, Oversubscribe, Overcommit, Hold, Immediate, Reboot, Delay_boot, No_kill, Kill_command, Signal, Core_spec, Thread_spec, Cpu_freq, Tmp, Resv_ports, Switches, Power, Profile, Burst_buffer, Bb_file, Container, Container_id]
```

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

## slurm_script_generator.pragmas.Account

*class*

```python
class Account(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --account pragma.
Specifies the account to charge for resource usage of the job.
Usage: --account <ACCOUNT_NAME>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Account.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'account'
```

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

### slurm_script_generator.pragmas.Account.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--account'
```

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

### slurm_script_generator.pragmas.Account.example

*attribute* · *class attribute* · *instance attribute*

```python
example = 'myacct'
```

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

### slurm_script_generator.pragmas.Account.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-A', '--account']
```

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

### slurm_script_generator.pragmas.Account.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'charge job to specified account'
```

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

### slurm_script_generator.pragmas.Account.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NAME'
```

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

### slurm_script_generator.pragmas.Account.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Account.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

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

### slurm_script_generator.pragmas.Account.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

This class represents the SLURM #SBATCH --account pragma.

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

### slurm_script_generator.pragmas.Account.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Account.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Account.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Account.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Account.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Account.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Account.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Account.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Array

*class*

```python
class Array(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --array pragma.
Submits a job array, allowing multiple similar jobs to be managed together.
Usage: --array <INDEXES>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Array.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'array'
```

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

### slurm_script_generator.pragmas.Array.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--array'
```

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

### slurm_script_generator.pragmas.Array.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--array']
```

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

### slurm_script_generator.pragmas.Array.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'submit a job array'
```

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

### slurm_script_generator.pragmas.Array.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'INDEXES'
```

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

### slurm_script_generator.pragmas.Array.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Array.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'dependencies_and_arrays'
```

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

### slurm_script_generator.pragmas.Array.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Array.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Array.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Array.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Array.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Array.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Array.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Array.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Array.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Array.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Bb_file

*class*

```python
class Bb_file(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --bbf pragma.
Specifies a burst buffer specification file for the job.
Usage: --bbf <FILE_NAME>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Bb_file.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'bb_file'
```

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

### slurm_script_generator.pragmas.Bb_file.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--bbf'
```

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

### slurm_script_generator.pragmas.Bb_file.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--bbf']
```

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

### slurm_script_generator.pragmas.Bb_file.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'burst buffer specification file'
```

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

### slurm_script_generator.pragmas.Bb_file.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'FILE_NAME'
```

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

### slurm_script_generator.pragmas.Bb_file.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Bb_file.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'plugins'
```

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

### slurm_script_generator.pragmas.Bb_file.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Bb_file.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bb_file.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bb_file.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bb_file.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bb_file.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bb_file.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bb_file.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bb_file.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Bb_file.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Begin

*class*

```python
class Begin(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --begin pragma.
Defers job start until a specified time (absolute or relative).
Usage: --begin <TIME>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Begin.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'begin'
```

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

### slurm_script_generator.pragmas.Begin.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--begin'
```

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

### slurm_script_generator.pragmas.Begin.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-b', '--begin']
```

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

### slurm_script_generator.pragmas.Begin.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'defer job until HH:MM MM/DD/YY'
```

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

### slurm_script_generator.pragmas.Begin.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'TIME'
```

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

### slurm_script_generator.pragmas.Begin.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

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

### slurm_script_generator.pragmas.Begin.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'time_and_priority'
```

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

### slurm_script_generator.pragmas.Begin.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Begin.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Begin.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Begin.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Begin.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Begin.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Begin.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Begin.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Begin.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Begin.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Bell

*class*

```python
class Bell(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --bell pragma.
Rings the terminal bell when the job is allocated.
Usage: --bell

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Bell.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

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

### slurm_script_generator.pragmas.Bell.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'bell'
```

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

### slurm_script_generator.pragmas.Bell.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--bell'
```

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

### slurm_script_generator.pragmas.Bell.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--bell']
```

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

### slurm_script_generator.pragmas.Bell.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'ring the terminal bell when the job is allocated'
```

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

### slurm_script_generator.pragmas.Bell.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

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

### slurm_script_generator.pragmas.Bell.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'notifications'
```

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

### slurm_script_generator.pragmas.Bell.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Bell.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bell.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bell.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bell.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bell.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bell.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bell.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Bell.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Bell.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Burst_buffer

*class*

```python
class Burst_buffer(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --bb pragma.
Specifies burst buffer specifications for the job.
Usage: --bb <SPEC>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Burst_buffer.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'burst_buffer'
```

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

### slurm_script_generator.pragmas.Burst_buffer.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--bb'
```

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

### slurm_script_generator.pragmas.Burst_buffer.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--bb']
```

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

### slurm_script_generator.pragmas.Burst_buffer.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'burst buffer specifications'
```

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

### slurm_script_generator.pragmas.Burst_buffer.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'SPEC'
```

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

### slurm_script_generator.pragmas.Burst_buffer.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Burst_buffer.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'plugins'
```

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

### slurm_script_generator.pragmas.Burst_buffer.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Burst_buffer.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Burst_buffer.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Burst_buffer.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Burst_buffer.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Burst_buffer.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Burst_buffer.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Burst_buffer.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Burst_buffer.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Burst_buffer.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Chdir

*class*

```python
class Chdir(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --chdir pragma.
Changes the working directory for the job before execution.
Usage: --chdir <PATH>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Chdir.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'chdir'
```

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

### slurm_script_generator.pragmas.Chdir.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--chdir'
```

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

### slurm_script_generator.pragmas.Chdir.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-D', '--chdir']
```

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

### slurm_script_generator.pragmas.Chdir.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'change working directory'
```

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

### slurm_script_generator.pragmas.Chdir.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'PATH'
```

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

### slurm_script_generator.pragmas.Chdir.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Chdir.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'io_and_directory'
```

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

### slurm_script_generator.pragmas.Chdir.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Chdir.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Chdir.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Chdir.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Chdir.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Chdir.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Chdir.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Chdir.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Chdir.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Chdir.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Cluster_constraint

*class*

```python
class Cluster_constraint(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --cluster-constraint pragma.
Specifies a list of cluster constraints for node selection.
Usage: --cluster-constraint <LIST>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Cluster_constraint.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'cluster_constraint'
```

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

### slurm_script_generator.pragmas.Cluster_constraint.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--cluster-constraint'
```

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

### slurm_script_generator.pragmas.Cluster_constraint.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--cluster-constraint']
```

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

### slurm_script_generator.pragmas.Cluster_constraint.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'specify a list of cluster constraints'
```

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

### slurm_script_generator.pragmas.Cluster_constraint.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'LIST'
```

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

### slurm_script_generator.pragmas.Cluster_constraint.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Cluster_constraint.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'node_constraints_and_selection'
```

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

### slurm_script_generator.pragmas.Cluster_constraint.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Cluster_constraint.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cluster_constraint.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cluster_constraint.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cluster_constraint.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cluster_constraint.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cluster_constraint.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cluster_constraint.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cluster_constraint.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Cluster_constraint.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Clusters

*class*

```python
class Clusters(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --clusters pragma.
Specifies a comma-separated list of clusters to issue commands to, for multi-cluster environments.
Usage: --clusters <CLUSTER1,CLUSTER2,...>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Clusters.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'clusters'
```

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

### slurm_script_generator.pragmas.Clusters.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--clusters'
```

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

### slurm_script_generator.pragmas.Clusters.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-M', '--clusters']
```

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

### slurm_script_generator.pragmas.Clusters.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'Comma separated list of clusters to issue commands to'
```

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

### slurm_script_generator.pragmas.Clusters.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NAMES'
```

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

### slurm_script_generator.pragmas.Clusters.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

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

### slurm_script_generator.pragmas.Clusters.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

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

### slurm_script_generator.pragmas.Clusters.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Clusters.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Clusters.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Clusters.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Clusters.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Clusters.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Clusters.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Clusters.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Clusters.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Clusters.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Comment

*class*

```python
class Comment(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --comment pragma.
Adds an arbitrary comment to the job for annotation or tracking.
Usage: --comment <TEXT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Comment.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'comment'
```

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

### slurm_script_generator.pragmas.Comment.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--comment'
```

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

### slurm_script_generator.pragmas.Comment.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--comment']
```

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

### slurm_script_generator.pragmas.Comment.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'arbitrary comment'
```

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

### slurm_script_generator.pragmas.Comment.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NAME'
```

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

### slurm_script_generator.pragmas.Comment.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 8
```

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

### slurm_script_generator.pragmas.Comment.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

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

### slurm_script_generator.pragmas.Comment.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Comment.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Comment.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Comment.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Comment.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Comment.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Comment.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Comment.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Comment.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Comment.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Constraint

*class*

```python
class Constraint(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --constraint pragma.
Specifies a list of constraints for node selection.
Usage: --constraint <LIST>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Constraint.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'constraint'
```

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

### slurm_script_generator.pragmas.Constraint.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--constraint'
```

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

### slurm_script_generator.pragmas.Constraint.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-C', '--constraint']
```

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

### slurm_script_generator.pragmas.Constraint.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'specify a list of constraints'
```

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

### slurm_script_generator.pragmas.Constraint.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'LIST'
```

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

### slurm_script_generator.pragmas.Constraint.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Constraint.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'node_constraints_and_selection'
```

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

### slurm_script_generator.pragmas.Constraint.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Constraint.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Constraint.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Constraint.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Constraint.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Constraint.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Constraint.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Constraint.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Constraint.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Constraint.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Container

*class*

```python
class Container(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --container pragma.
Specifies the path to an OCI container bundle for the job.
Usage: --container <PATH>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Container.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'container'
```

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

### slurm_script_generator.pragmas.Container.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--container'
```

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

### slurm_script_generator.pragmas.Container.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--container']
```

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

### slurm_script_generator.pragmas.Container.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'Path to OCI container bundle'
```

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

### slurm_script_generator.pragmas.Container.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'PATH'
```

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

### slurm_script_generator.pragmas.Container.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

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

### slurm_script_generator.pragmas.Container.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'plugins'
```

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

### slurm_script_generator.pragmas.Container.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Container.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Container.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Container_id

*class*

```python
class Container_id(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --container-id pragma.
Specifies the OCI container ID for the job.
Usage: --container-id <ID>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Container_id.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'container_id'
```

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

### slurm_script_generator.pragmas.Container_id.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--container-id'
```

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

### slurm_script_generator.pragmas.Container_id.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--container-id']
```

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

### slurm_script_generator.pragmas.Container_id.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'OCI container ID'
```

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

### slurm_script_generator.pragmas.Container_id.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'ID'
```

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

### slurm_script_generator.pragmas.Container_id.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

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

### slurm_script_generator.pragmas.Container_id.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'plugins'
```

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

### slurm_script_generator.pragmas.Container_id.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Container_id.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container_id.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container_id.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container_id.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container_id.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container_id.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container_id.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Container_id.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Container_id.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Contiguous

*class*

```python
class Contiguous(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --contiguous pragma.
Demands a contiguous range of nodes for the job.
Usage: --contiguous

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Contiguous.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

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

### slurm_script_generator.pragmas.Contiguous.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'contiguous'
```

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

### slurm_script_generator.pragmas.Contiguous.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--contiguous'
```

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

### slurm_script_generator.pragmas.Contiguous.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--contiguous']
```

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

### slurm_script_generator.pragmas.Contiguous.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'demand a contiguous range of nodes'
```

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

### slurm_script_generator.pragmas.Contiguous.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

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

### slurm_script_generator.pragmas.Contiguous.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'node_constraints_and_selection'
```

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

### slurm_script_generator.pragmas.Contiguous.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Contiguous.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Contiguous.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Contiguous.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Contiguous.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Contiguous.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Contiguous.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Contiguous.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Contiguous.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Contiguous.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Core_spec

*class*

```python
class Core_spec(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --core-spec pragma.
Sets the count of reserved cores for the job.
Usage: --core-spec <CORES>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Core_spec.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'core_spec'
```

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

### slurm_script_generator.pragmas.Core_spec.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--core-spec'
```

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

### slurm_script_generator.pragmas.Core_spec.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-S', '--core-spec']
```

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

### slurm_script_generator.pragmas.Core_spec.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'count of reserved cores'
```

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

### slurm_script_generator.pragmas.Core_spec.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'CORES'
```

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

### slurm_script_generator.pragmas.Core_spec.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Core_spec.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

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

### slurm_script_generator.pragmas.Core_spec.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Core_spec.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Core_spec.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Core_spec.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Core_spec.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Core_spec.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Core_spec.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Core_spec.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Core_spec.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Core_spec.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Cores_per_socket

*class*

```python
class Cores_per_socket(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --cores-per-socket pragma.
Sets the number of cores per socket to allocate.
Usage: --cores-per-socket <COUNT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Cores_per_socket.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'cores_per_socket'
```

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

### slurm_script_generator.pragmas.Cores_per_socket.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--cores-per-socket'
```

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

### slurm_script_generator.pragmas.Cores_per_socket.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '8'
```

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

### slurm_script_generator.pragmas.Cores_per_socket.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--cores-per-socket']
```

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

### slurm_script_generator.pragmas.Cores_per_socket.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of cores per socket to allocate'
```

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

### slurm_script_generator.pragmas.Cores_per_socket.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'C'
```

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

### slurm_script_generator.pragmas.Cores_per_socket.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Cores_per_socket.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'cpu_topology_and_binding'
```

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

### slurm_script_generator.pragmas.Cores_per_socket.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Cores_per_socket.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cores_per_socket.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cores_per_socket.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cores_per_socket.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cores_per_socket.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cores_per_socket.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cores_per_socket.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Cores_per_socket.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Cpu_freq

*class*

```python
class Cpu_freq(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --cpu-freq pragma.
Requests CPU frequency and governor settings for the job.
Usage: --cpu-freq <MIN[-MAX[:GOV]]>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Cpu_freq.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'cpu_freq'
```

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

### slurm_script_generator.pragmas.Cpu_freq.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--cpu-freq'
```

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

### slurm_script_generator.pragmas.Cpu_freq.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--cpu-freq']
```

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

### slurm_script_generator.pragmas.Cpu_freq.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'requested cpu frequency (and governor)'
```

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

### slurm_script_generator.pragmas.Cpu_freq.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MIN[-MAX[:GOV]]'
```

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

### slurm_script_generator.pragmas.Cpu_freq.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

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

### slurm_script_generator.pragmas.Cpu_freq.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

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

### slurm_script_generator.pragmas.Cpu_freq.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Cpu_freq.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpu_freq.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpu_freq.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpu_freq.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpu_freq.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpu_freq.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpu_freq.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpu_freq.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Cpu_freq.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Cpus_per_gpu

*class*

```python
class Cpus_per_gpu(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --cpus-per-gpu pragma.
Specifies the number of CPUs required per allocated GPU.
Usage: --cpus-per-gpu <COUNT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Cpus_per_gpu.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'cpus_per_gpu'
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--cpus-per-gpu'
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '4'
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--cpus-per-gpu']
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of CPUs required per allocated GPU'
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Cpus_per_gpu.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_gpu.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_gpu.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_gpu.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_gpu.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_gpu.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_gpu.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Cpus_per_gpu.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Cpus_per_task

*class*

```python
class Cpus_per_task(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --cpus-per-task pragma.
Sets the number of CPUs required per task.
Usage: --cpus-per-task <COUNT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Cpus_per_task.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'cpus_per_task'
```

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

### slurm_script_generator.pragmas.Cpus_per_task.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--cpus-per-task'
```

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

### slurm_script_generator.pragmas.Cpus_per_task.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '16'
```

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

### slurm_script_generator.pragmas.Cpus_per_task.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-c', '--cpus-per-task']
```

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

### slurm_script_generator.pragmas.Cpus_per_task.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of cpus required per task'
```

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

### slurm_script_generator.pragmas.Cpus_per_task.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NCPUS'
```

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

### slurm_script_generator.pragmas.Cpus_per_task.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

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

### slurm_script_generator.pragmas.Cpus_per_task.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

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

### slurm_script_generator.pragmas.Cpus_per_task.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Cpus_per_task.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_task.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_task.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_task.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_task.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_task.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Cpus_per_task.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Cpus_per_task.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Deadline

*class*

```python
class Deadline(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --deadline pragma.
Removes the job if it cannot finish before the specified deadline.
Usage: --deadline <TIME>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Deadline.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'deadline'
```

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

### slurm_script_generator.pragmas.Deadline.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--deadline'
```

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

### slurm_script_generator.pragmas.Deadline.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--deadline']
```

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

### slurm_script_generator.pragmas.Deadline.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'remove the job if no ending possible before this deadline'
```

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

### slurm_script_generator.pragmas.Deadline.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'TIME'
```

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

### slurm_script_generator.pragmas.Deadline.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

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

### slurm_script_generator.pragmas.Deadline.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'time_and_priority'
```

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

### slurm_script_generator.pragmas.Deadline.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Deadline.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Deadline.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Deadline.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Deadline.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Deadline.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Deadline.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Deadline.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Deadline.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Deadline.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Delay_boot

*class*

```python
class Delay_boot(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --delay-boot pragma.
Delays node boot for desired features before job execution.
Usage: --delay-boot <MINS>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Delay_boot.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'delay_boot'
```

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

### slurm_script_generator.pragmas.Delay_boot.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--delay-boot'
```

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

### slurm_script_generator.pragmas.Delay_boot.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--delay-boot']
```

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

### slurm_script_generator.pragmas.Delay_boot.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'delay boot for desired node features'
```

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

### slurm_script_generator.pragmas.Delay_boot.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MINS'
```

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

### slurm_script_generator.pragmas.Delay_boot.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

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

### slurm_script_generator.pragmas.Delay_boot.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'execution_behavior_and_signals'
```

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

### slurm_script_generator.pragmas.Delay_boot.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Delay_boot.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Delay_boot.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Delay_boot.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Delay_boot.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Delay_boot.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Delay_boot.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Delay_boot.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Delay_boot.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Delay_boot.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Dependency

*class*

```python
class Dependency(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --dependency pragma.
Defers job start until a condition on another job ID is satisfied (e.g., after, afterok).
Usage: --dependency <TYPE:JOBID[:TIME]>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Dependency.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'dependency'
```

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

### slurm_script_generator.pragmas.Dependency.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--dependency'
```

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

### slurm_script_generator.pragmas.Dependency.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-d', '--dependency']
```

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

### slurm_script_generator.pragmas.Dependency.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'defer job until condition on jobid is satisfied'
```

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

### slurm_script_generator.pragmas.Dependency.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'TYPE:JOBID[:TIME]'
```

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

### slurm_script_generator.pragmas.Dependency.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Dependency.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'dependencies_and_arrays'
```

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

### slurm_script_generator.pragmas.Dependency.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Dependency.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Dependency.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Dependency.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Dependency.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Dependency.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Dependency.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Dependency.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Dependency.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Dependency.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Disable_output_job_summary

*class*

```python
class Disable_output_job_summary(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --disable-output-job-summary pragma.
Disables the job summary in the output file for the job.
Usage: --disable-output-job-summary

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Disable_output_job_summary.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'disable_output_job_summary'
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--disable-output-job-summary'
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--disable-output-job-summary']
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'disable job summary in output file for the job'
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'io_and_directory'
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Disable_output_job_summary.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Disable_output_job_summary.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Disable_output_job_summary.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Disable_output_job_summary.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Disable_output_job_summary.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Disable_output_job_summary.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Disable_output_job_summary.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Disable_output_job_summary.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Disable_output_job_summary.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Distribution

*class*

```python
class Distribution(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --distribution pragma.
Sets the distribution method for processes across nodes (block, cyclic, arbitrary).
Usage: --distribution <TYPE>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Distribution.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'distribution'
```

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

### slurm_script_generator.pragmas.Distribution.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices = ['block', 'cyclic', 'arbitrary']
```

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

### slurm_script_generator.pragmas.Distribution.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--distribution'
```

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

### slurm_script_generator.pragmas.Distribution.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-m', '--distribution']
```

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

### slurm_script_generator.pragmas.Distribution.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'distribution method for processes to nodes'
```

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

### slurm_script_generator.pragmas.Distribution.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'TYPE'
```

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

### slurm_script_generator.pragmas.Distribution.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

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

### slurm_script_generator.pragmas.Distribution.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

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

### slurm_script_generator.pragmas.Distribution.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Distribution.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Distribution.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Distribution.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Distribution.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Distribution.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Distribution.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Distribution.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Distribution.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Error

*class*

```python
class Error(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --error pragma.
Redirects job error to a specified file, supporting job and jobname variables.
Usage: --error <FILE>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Error.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'error'
```

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

### slurm_script_generator.pragmas.Error.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--error'
```

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

### slurm_script_generator.pragmas.Error.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '--error ./%x.%j.err'
```

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

### slurm_script_generator.pragmas.Error.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--error', '-e']
```

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

### slurm_script_generator.pragmas.Error.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'File to redirect error (%%x=jobname, %%j=jobid)'
```

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

### slurm_script_generator.pragmas.Error.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'ERROR'
```

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

### slurm_script_generator.pragmas.Error.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

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

### slurm_script_generator.pragmas.Error.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'io_and_directory'
```

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

### slurm_script_generator.pragmas.Error.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Error.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Error.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Error.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Error.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Error.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Error.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Error.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Error.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Exclude

*class*

```python
class Exclude(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --exclude pragma.
Excludes a specific list of hosts from job allocation.
Usage: --exclude <HOSTS>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Exclude.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'exclude'
```

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

### slurm_script_generator.pragmas.Exclude.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--exclude'
```

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

### slurm_script_generator.pragmas.Exclude.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-x', '--exclude']
```

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

### slurm_script_generator.pragmas.Exclude.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'exclude a specific list of hosts'
```

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

### slurm_script_generator.pragmas.Exclude.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'HOST'
```

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

### slurm_script_generator.pragmas.Exclude.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs = '+'
```

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

### slurm_script_generator.pragmas.Exclude.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

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

### slurm_script_generator.pragmas.Exclude.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'node_constraints_and_selection'
```

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

### slurm_script_generator.pragmas.Exclude.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Exclude.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclude.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclude.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclude.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclude.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclude.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclude.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Exclude.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Exclusive_mcs

*class*

```python
class Exclusive_mcs(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --exclusive-mcs pragma.
Allocates nodes in exclusive mode when the mcs plugin is enabled.
Usage: --exclusive-mcs

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Exclusive_mcs.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'exclusive_mcs'
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--exclusive-mcs'
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--exclusive-mcs']
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'allocate nodes in exclusive mode when mcs plugin is enabled'
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'exclusivity_and_sharing'
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Exclusive_mcs.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_mcs.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_mcs.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_mcs.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_mcs.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_mcs.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_mcs.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_mcs.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Exclusive_mcs.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Exclusive_user

*class*

```python
class Exclusive_user(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --exclusive-user pragma.
Allocates nodes in exclusive mode for CPU consumable resources.
Usage: --exclusive-user

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Exclusive_user.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

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

### slurm_script_generator.pragmas.Exclusive_user.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'exclusive_user'
```

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

### slurm_script_generator.pragmas.Exclusive_user.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--exclusive-user'
```

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

### slurm_script_generator.pragmas.Exclusive_user.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--exclusive-user']
```

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

### slurm_script_generator.pragmas.Exclusive_user.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'allocate nodes in exclusive mode for cpu consumable resource'
```

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

### slurm_script_generator.pragmas.Exclusive_user.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Exclusive_user.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'exclusivity_and_sharing'
```

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

### slurm_script_generator.pragmas.Exclusive_user.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Exclusive_user.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_user.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_user.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_user.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_user.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_user.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_user.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Exclusive_user.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Exclusive_user.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Extra_node_info

*class*

```python
class Extra_node_info(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --extra-node-info pragma.
Combines requests for sockets, cores, and threads in a single specification.
Usage: --extra-node-info <S[:C[:T]]>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Extra_node_info.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'extra_node_info'
```

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

### slurm_script_generator.pragmas.Extra_node_info.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--extra-node-info'
```

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

### slurm_script_generator.pragmas.Extra_node_info.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-B', '--extra-node-info']
```

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

### slurm_script_generator.pragmas.Extra_node_info.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'combine request of sockets, cores and threads'
```

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

### slurm_script_generator.pragmas.Extra_node_info.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'S[:C[:T]]'
```

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

### slurm_script_generator.pragmas.Extra_node_info.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

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

### slurm_script_generator.pragmas.Extra_node_info.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'cpu_topology_and_binding'
```

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

### slurm_script_generator.pragmas.Extra_node_info.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Extra_node_info.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Extra_node_info.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Extra_node_info.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Extra_node_info.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Extra_node_info.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Extra_node_info.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Extra_node_info.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Extra_node_info.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Extra_node_info.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Get_user_env

*class*

```python
class Get_user_env(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --get-user-env pragma.
Used by Moab for environment setup; see srun man page for details.
Usage: --get-user-env

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Get_user_env.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

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

### slurm_script_generator.pragmas.Get_user_env.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'get_user_env'
```

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

### slurm_script_generator.pragmas.Get_user_env.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--get-user-env'
```

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

### slurm_script_generator.pragmas.Get_user_env.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--get-user-env']
```

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

### slurm_script_generator.pragmas.Get_user_env.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'used by Moab. See srun man page'
```

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

### slurm_script_generator.pragmas.Get_user_env.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

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

### slurm_script_generator.pragmas.Get_user_env.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'io_and_directory'
```

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

### slurm_script_generator.pragmas.Get_user_env.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Get_user_env.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Get_user_env.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Get_user_env.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Get_user_env.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Get_user_env.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Get_user_env.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Get_user_env.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Get_user_env.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Get_user_env.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gpu_bind

*class*

```python
class Gpu_bind(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gpu-bind pragma.
Specifies task-to-GPU binding options for optimal placement.
Usage: --gpu-bind <OPTIONS>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gpu_bind.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gpu_bind'
```

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

### slurm_script_generator.pragmas.Gpu_bind.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gpu-bind'
```

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

### slurm_script_generator.pragmas.Gpu_bind.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--gpu-bind']
```

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

### slurm_script_generator.pragmas.Gpu_bind.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'task to gpu binding options'
```

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

### slurm_script_generator.pragmas.Gpu_bind.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = '...'
```

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

### slurm_script_generator.pragmas.Gpu_bind.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 6
```

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

### slurm_script_generator.pragmas.Gpu_bind.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

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

### slurm_script_generator.pragmas.Gpu_bind.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gpu_bind.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_bind.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_bind.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_bind.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_bind.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_bind.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_bind.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_bind.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gpu_bind.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gpu_freq

*class*

```python
class Gpu_freq(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gpu-freq pragma.
Sets the frequency and voltage of GPUs for the job.
Usage: --gpu-freq <OPTIONS>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gpu_freq.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gpu_freq'
```

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

### slurm_script_generator.pragmas.Gpu_freq.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gpu-freq'
```

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

### slurm_script_generator.pragmas.Gpu_freq.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--gpu-freq']
```

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

### slurm_script_generator.pragmas.Gpu_freq.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'frequency and voltage of GPUs'
```

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

### slurm_script_generator.pragmas.Gpu_freq.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = '...'
```

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

### slurm_script_generator.pragmas.Gpu_freq.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 7
```

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

### slurm_script_generator.pragmas.Gpu_freq.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

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

### slurm_script_generator.pragmas.Gpu_freq.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gpu_freq.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_freq.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_freq.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_freq.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_freq.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_freq.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_freq.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpu_freq.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gpu_freq.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gpus

*class*

```python
class Gpus(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gpus pragma.
Specifies the number of GPUs required for the job.
Usage: --gpus <COUNT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gpus.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gpus'
```

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

### slurm_script_generator.pragmas.Gpus.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gpus'
```

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

### slurm_script_generator.pragmas.Gpus.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '32'
```

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

### slurm_script_generator.pragmas.Gpus.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-G', '--gpus']
```

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

### slurm_script_generator.pragmas.Gpus.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'count of GPUs required for the job'
```

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

### slurm_script_generator.pragmas.Gpus.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

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

### slurm_script_generator.pragmas.Gpus.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Gpus.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

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

### slurm_script_generator.pragmas.Gpus.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gpus.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gpus.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gpus_per_node

*class*

```python
class Gpus_per_node(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gpus-per-node pragma.
Sets the number of GPUs required per allocated node.
Usage: --gpus-per-node <COUNT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gpus_per_node.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gpus_per_node'
```

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

### slurm_script_generator.pragmas.Gpus_per_node.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gpus-per-node'
```

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

### slurm_script_generator.pragmas.Gpus_per_node.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--gpus-per-node']
```

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

### slurm_script_generator.pragmas.Gpus_per_node.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of GPUs required per allocated node'
```

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

### slurm_script_generator.pragmas.Gpus_per_node.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

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

### slurm_script_generator.pragmas.Gpus_per_node.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Gpus_per_node.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

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

### slurm_script_generator.pragmas.Gpus_per_node.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gpus_per_node.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_node.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_node.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_node.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_node.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_node.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_node.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_node.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gpus_per_node.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gpus_per_socket

*class*

```python
class Gpus_per_socket(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gpus-per-socket pragma.
Sets the number of GPUs required per allocated socket.
Usage: --gpus-per-socket <COUNT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gpus_per_socket.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gpus_per_socket'
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gpus-per-socket'
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--gpus-per-socket']
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of GPUs required per allocated socket'
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gpus_per_socket.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_socket.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_socket.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_socket.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_socket.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_socket.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_socket.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_socket.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gpus_per_socket.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gpus_per_task

*class*

```python
class Gpus_per_task(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gpus-per-task pragma.
Specifies the number of GPUs required per spawned task.
Usage: --gpus-per-task <COUNT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gpus_per_task.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gpus_per_task'
```

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

### slurm_script_generator.pragmas.Gpus_per_task.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gpus-per-task'
```

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

### slurm_script_generator.pragmas.Gpus_per_task.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--gpus-per-task']
```

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

### slurm_script_generator.pragmas.Gpus_per_task.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of GPUs required per spawned task'
```

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

### slurm_script_generator.pragmas.Gpus_per_task.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

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

### slurm_script_generator.pragmas.Gpus_per_task.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

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

### slurm_script_generator.pragmas.Gpus_per_task.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

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

### slurm_script_generator.pragmas.Gpus_per_task.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gpus_per_task.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_task.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_task.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_task.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_task.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_task.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_task.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gpus_per_task.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gpus_per_task.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gres

*class*

```python
class Gres(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gres pragma.
Specifies required generic resources (e.g., GPUs, licenses).
Usage: --gres <LIST>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gres.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gres'
```

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

### slurm_script_generator.pragmas.Gres.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gres'
```

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

### slurm_script_generator.pragmas.Gres.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--gres']
```

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

### slurm_script_generator.pragmas.Gres.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'required generic resources'
```

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

### slurm_script_generator.pragmas.Gres.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'LIST'
```

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

### slurm_script_generator.pragmas.Gres.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Gres.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'generic_resources_and_licenses'
```

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

### slurm_script_generator.pragmas.Gres.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gres.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gres.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Gres_flags

*class*

```python
class Gres_flags(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --gres-flags pragma.
Sets flags related to GRES (Generic Resource) management.
Usage: --gres-flags <OPTIONS>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Gres_flags.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'gres_flags'
```

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

### slurm_script_generator.pragmas.Gres_flags.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--gres-flags'
```

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

### slurm_script_generator.pragmas.Gres_flags.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--gres-flags']
```

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

### slurm_script_generator.pragmas.Gres_flags.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'flags related to GRES management'
```

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

### slurm_script_generator.pragmas.Gres_flags.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'OPTS'
```

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

### slurm_script_generator.pragmas.Gres_flags.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Gres_flags.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'generic_resources_and_licenses'
```

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

### slurm_script_generator.pragmas.Gres_flags.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Gres_flags.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres_flags.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres_flags.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres_flags.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres_flags.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres_flags.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres_flags.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Gres_flags.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Gres_flags.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Hint

*class*

```python
class Hint(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --hint pragma.
Provides application binding hints to optimize task placement.
Usage: --hint <HINT>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Hint.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'hint'
```

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

### slurm_script_generator.pragmas.Hint.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--hint'
```

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

### slurm_script_generator.pragmas.Hint.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--hint']
```

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

### slurm_script_generator.pragmas.Hint.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'Bind tasks according to application hints'
```

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

### slurm_script_generator.pragmas.Hint.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'HINT'
```

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

### slurm_script_generator.pragmas.Hint.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 6
```

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

### slurm_script_generator.pragmas.Hint.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'cpu_topology_and_binding'
```

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

### slurm_script_generator.pragmas.Hint.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Hint.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hint.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hint.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hint.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hint.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hint.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hint.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hint.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Hint.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Hold

*class*

```python
class Hold(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --hold pragma.
Submits the job in a held state, preventing immediate execution.
Usage: --hold

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Hold.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

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

### slurm_script_generator.pragmas.Hold.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'hold'
```

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

### slurm_script_generator.pragmas.Hold.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--hold'
```

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

### slurm_script_generator.pragmas.Hold.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-H', '--hold']
```

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

### slurm_script_generator.pragmas.Hold.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'submit job in held state'
```

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

### slurm_script_generator.pragmas.Hold.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Hold.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'execution_behavior_and_signals'
```

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

### slurm_script_generator.pragmas.Hold.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Hold.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hold.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hold.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hold.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hold.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hold.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hold.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Hold.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Hold.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Immediate

*class*

```python
class Immediate(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --immediate pragma.
Exits if resources are not available within the specified seconds.
Usage: --immediate [SECS]

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Immediate.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'immediate'
```

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

### slurm_script_generator.pragmas.Immediate.const

*attribute* · *class attribute* · *instance attribute*

```python
const = '0'
```

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

### slurm_script_generator.pragmas.Immediate.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--immediate'
```

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

### slurm_script_generator.pragmas.Immediate.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-I', '--immediate']
```

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

### slurm_script_generator.pragmas.Immediate.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'exit if resources not available in "secs"'
```

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

### slurm_script_generator.pragmas.Immediate.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'SECS'
```

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

### slurm_script_generator.pragmas.Immediate.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs = '?'
```

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

### slurm_script_generator.pragmas.Immediate.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

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

### slurm_script_generator.pragmas.Immediate.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'execution_behavior_and_signals'
```

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

### slurm_script_generator.pragmas.Immediate.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Immediate.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Immediate.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Immediate.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Immediate.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Immediate.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Immediate.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Immediate.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Job_name

*class*

```python
class Job_name(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --job-name pragma.
Sets a custom name for the submitted job, which appears in job listings and output files.
Usage: --job-name <NAME>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Job_name.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'job_name'
```

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

### slurm_script_generator.pragmas.Job_name.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--job-name'
```

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

### slurm_script_generator.pragmas.Job_name.example

*attribute* · *class attribute* · *instance attribute*

```python
example = 'my_job'
```

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

### slurm_script_generator.pragmas.Job_name.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-J', '--job-name']
```

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

### slurm_script_generator.pragmas.Job_name.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'name of job'
```

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

### slurm_script_generator.pragmas.Job_name.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NAME'
```

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

### slurm_script_generator.pragmas.Job_name.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

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

### slurm_script_generator.pragmas.Job_name.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

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

### slurm_script_generator.pragmas.Job_name.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Job_name.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Job_name.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Job_name.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Job_name.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Job_name.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Job_name.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Job_name.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Job_name.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Kill_command

*class*

```python
class Kill_command(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --kill-command pragma.
Specifies the signal to send when terminating the job.
Usage: --kill-command [SIGNAL]

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Kill_command.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'kill_command'
```

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

### slurm_script_generator.pragmas.Kill_command.const

*attribute* · *class attribute* · *instance attribute*

```python
const = 'TERM'
```

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

### slurm_script_generator.pragmas.Kill_command.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--kill-command'
```

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

### slurm_script_generator.pragmas.Kill_command.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-K', '--kill-command']
```

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

### slurm_script_generator.pragmas.Kill_command.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'signal to send terminating job'
```

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

### slurm_script_generator.pragmas.Kill_command.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'SIGNAL'
```

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

### slurm_script_generator.pragmas.Kill_command.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs = '?'
```

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

### slurm_script_generator.pragmas.Kill_command.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

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

### slurm_script_generator.pragmas.Kill_command.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'execution_behavior_and_signals'
```

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

### slurm_script_generator.pragmas.Kill_command.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Kill_command.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Kill_command.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Kill_command.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Kill_command.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Kill_command.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Kill_command.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Kill_command.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Licenses

*class*

```python
class Licenses(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --licenses pragma.
Specifies required licenses for the job, comma separated.
Usage: --licenses <NAMES>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Licenses.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'licenses'
```

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

### slurm_script_generator.pragmas.Licenses.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--licenses'
```

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

### slurm_script_generator.pragmas.Licenses.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-L', '--licenses']
```

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

### slurm_script_generator.pragmas.Licenses.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'required license, comma separated'
```

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

### slurm_script_generator.pragmas.Licenses.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NAMES'
```

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

### slurm_script_generator.pragmas.Licenses.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

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

### slurm_script_generator.pragmas.Licenses.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'generic_resources_and_licenses'
```

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

### slurm_script_generator.pragmas.Licenses.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

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

### slurm_script_generator.pragmas.Licenses.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Licenses.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Licenses.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Licenses.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Licenses.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Licenses.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Licenses.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

### slurm_script_generator.pragmas.Licenses.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

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

### slurm_script_generator.pragmas.Licenses.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

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

## slurm_script_generator.pragmas.Mail_type

*class*

```python
class Mail_type(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mail-type pragma.
Sets which job state changes trigger email notifications (e.g., BEGIN, END, FAIL).
Usage: --mail-type <TYPE>

Parameters
----------

Returns
-------

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

### slurm_script_generator.pragmas.Mail_type.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mail_type'
```

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

### slurm_script_generator.pragmas.Mail_type.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices = ['NONE', 'BEGIN', 'END', 'FAIL', 'REQUEUE', 'ALL']
```

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

### slurm_script_generator.pragmas.Mail_type.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mail-type'
```

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

### slurm_script_generator.pragmas.Mail_type.example

*attribute* · *class attribute* · *instance attribute*

```python
example = 'ALL'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L702-L702)

### slurm_script_generator.pragmas.Mail_type.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mail-type']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L698-L698)

### slurm_script_generator.pragmas.Mail_type.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'notify on state change'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L701-L701)

### slurm_script_generator.pragmas.Mail_type.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'TYPE'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L700-L700)

### slurm_script_generator.pragmas.Mail_type.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L695-L695)

### slurm_script_generator.pragmas.Mail_type.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'notifications'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L696-L696)

### slurm_script_generator.pragmas.Mail_type.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L704-L704)

### slurm_script_generator.pragmas.Mail_type.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mail_type.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mail_type.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mail_type.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mail_type.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mail_type.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mail_type.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Mail_user

*class*

```python
class Mail_user(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mail-user pragma.
Specifies the email address to receive job state notifications.
Usage: --mail-user <EMAIL>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L658-L679)

### slurm_script_generator.pragmas.Mail_user.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mail_user'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L673-L673)

### slurm_script_generator.pragmas.Mail_user.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mail-user'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L675-L675)

### slurm_script_generator.pragmas.Mail_user.example

*attribute* · *class attribute* · *instance attribute*

```python
example = 'example@email.com'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L678-L678)

### slurm_script_generator.pragmas.Mail_user.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mail-user']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L674-L674)

### slurm_script_generator.pragmas.Mail_user.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'who to send email notification for job state changes'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L677-L677)

### slurm_script_generator.pragmas.Mail_user.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'USER'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L676-L676)

### slurm_script_generator.pragmas.Mail_user.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L671-L671)

### slurm_script_generator.pragmas.Mail_user.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'notifications'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L672-L672)

### slurm_script_generator.pragmas.Mail_user.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L679-L679)

### slurm_script_generator.pragmas.Mail_user.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mail_user.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Mail_user.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mail_user.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mail_user.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mail_user.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mail_user.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mail_user.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Mcs_label

*class*

```python
class Mcs_label(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mcs-label pragma.
Sets an MCS label if the mcs plugin is enabled, for group-based resource allocation.
Usage: --mcs-label <LABEL>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L305-L325)

### slurm_script_generator.pragmas.Mcs_label.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mcs_label'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L320-L320)

### slurm_script_generator.pragmas.Mcs_label.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mcs-label'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L322-L322)

### slurm_script_generator.pragmas.Mcs_label.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mcs-label']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L321-L321)

### slurm_script_generator.pragmas.Mcs_label.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'mcs label if mcs plugin mcs/group is used'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L324-L324)

### slurm_script_generator.pragmas.Mcs_label.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MCS'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L323-L323)

### slurm_script_generator.pragmas.Mcs_label.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 7
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L318-L318)

### slurm_script_generator.pragmas.Mcs_label.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L319-L319)

### slurm_script_generator.pragmas.Mcs_label.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L325-L325)

### slurm_script_generator.pragmas.Mcs_label.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mcs_label.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Mcs_label.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mcs_label.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mcs_label.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Mcs_label.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mcs_label.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mcs_label.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mcs_label.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Mem

*class*

```python
class Mem(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mem pragma.
Sets the minimum amount of real memory required for the job.
Usage: --mem <SIZE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1134-L1155)

### slurm_script_generator.pragmas.Mem.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mem'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1149-L1149)

### slurm_script_generator.pragmas.Mem.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mem'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1151-L1151)

### slurm_script_generator.pragmas.Mem.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '25GB'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1154-L1154)

### slurm_script_generator.pragmas.Mem.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mem']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1150-L1150)

### slurm_script_generator.pragmas.Mem.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'minimum amount of real memory'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1153-L1153)

### slurm_script_generator.pragmas.Mem.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MB'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1152-L1152)

### slurm_script_generator.pragmas.Mem.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1147-L1147)

### slurm_script_generator.pragmas.Mem.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'memory'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1148-L1148)

### slurm_script_generator.pragmas.Mem.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1155-L1155)

### slurm_script_generator.pragmas.Mem.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mem.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Mem.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mem.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mem.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mem.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mem.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mem.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Mem_bind

*class*

```python
class Mem_bind(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mem-bind pragma.
Binds memory to locality domains for performance optimization.
Usage: --mem-bind <BIND>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1181-L1201)

### slurm_script_generator.pragmas.Mem_bind.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mem_bind'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1196-L1196)

### slurm_script_generator.pragmas.Mem_bind.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mem-bind'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1198-L1198)

### slurm_script_generator.pragmas.Mem_bind.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mem-bind']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1197-L1197)

### slurm_script_generator.pragmas.Mem_bind.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'Bind memory to locality domains'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1200-L1200)

### slurm_script_generator.pragmas.Mem_bind.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'BIND'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1199-L1199)

### slurm_script_generator.pragmas.Mem_bind.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1194-L1194)

### slurm_script_generator.pragmas.Mem_bind.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'memory'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1195-L1195)

### slurm_script_generator.pragmas.Mem_bind.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1201-L1201)

### slurm_script_generator.pragmas.Mem_bind.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mem_bind.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Mem_bind.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mem_bind.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mem_bind.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Mem_bind.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mem_bind.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mem_bind.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mem_bind.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Mem_per_cpu

*class*

```python
class Mem_per_cpu(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mem-per-cpu pragma.
Specifies the maximum amount of real memory per allocated CPU.
Usage: --mem-per-cpu <SIZE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1158-L1178)

### slurm_script_generator.pragmas.Mem_per_cpu.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mem_per_cpu'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1173-L1173)

### slurm_script_generator.pragmas.Mem_per_cpu.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mem-per-cpu'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1175-L1175)

### slurm_script_generator.pragmas.Mem_per_cpu.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mem-per-cpu']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1174-L1174)

### slurm_script_generator.pragmas.Mem_per_cpu.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'maximum amount of real memory per allocated cpu'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1177-L1177)

### slurm_script_generator.pragmas.Mem_per_cpu.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MB'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1176-L1176)

### slurm_script_generator.pragmas.Mem_per_cpu.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1171-L1171)

### slurm_script_generator.pragmas.Mem_per_cpu.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'memory'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1172-L1172)

### slurm_script_generator.pragmas.Mem_per_cpu.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1178-L1178)

### slurm_script_generator.pragmas.Mem_per_cpu.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mem_per_cpu.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Mem_per_cpu.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mem_per_cpu.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mem_per_cpu.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Mem_per_cpu.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mem_per_cpu.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mem_per_cpu.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mem_per_cpu.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Mem_per_gpu

*class*

```python
class Mem_per_gpu(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mem-per-gpu pragma.
Sets the real memory required per allocated GPU.
Usage: --mem-per-gpu <SIZE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1347-L1367)

### slurm_script_generator.pragmas.Mem_per_gpu.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mem_per_gpu'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1362-L1362)

### slurm_script_generator.pragmas.Mem_per_gpu.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mem-per-gpu'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1364-L1364)

### slurm_script_generator.pragmas.Mem_per_gpu.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '8GB'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1366-L1366)

### slurm_script_generator.pragmas.Mem_per_gpu.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mem-per-gpu']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1363-L1363)

### slurm_script_generator.pragmas.Mem_per_gpu.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'real memory required per allocated GPU'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1365-L1365)

### slurm_script_generator.pragmas.Mem_per_gpu.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1360-L1360)

### slurm_script_generator.pragmas.Mem_per_gpu.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1361-L1361)

### slurm_script_generator.pragmas.Mem_per_gpu.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1367-L1367)

### slurm_script_generator.pragmas.Mem_per_gpu.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mem_per_gpu.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Mem_per_gpu.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mem_per_gpu.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mem_per_gpu.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Mem_per_gpu.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mem_per_gpu.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mem_per_gpu.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mem_per_gpu.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Mincpus

*class*

```python
class Mincpus(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --mincpus pragma.
Specifies the minimum number of logical processors per node.
Usage: --mincpus <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L874-L894)

### slurm_script_generator.pragmas.Mincpus.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'mincpus'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L889-L889)

### slurm_script_generator.pragmas.Mincpus.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--mincpus'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L891-L891)

### slurm_script_generator.pragmas.Mincpus.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--mincpus']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L890-L890)

### slurm_script_generator.pragmas.Mincpus.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'minimum number of logical processors per node'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L893-L893)

### slurm_script_generator.pragmas.Mincpus.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L892-L892)

### slurm_script_generator.pragmas.Mincpus.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L887-L887)

### slurm_script_generator.pragmas.Mincpus.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L888-L888)

### slurm_script_generator.pragmas.Mincpus.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L894-L894)

### slurm_script_generator.pragmas.Mincpus.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Mincpus.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Mincpus.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Mincpus.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Mincpus.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Mincpus.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Mincpus.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Mincpus.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Mincpus.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Nice

*class*

```python
class Nice(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --nice pragma.
Decreases the job's scheduling priority by the specified value.
Usage: --nice <VALUE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L492-L513)

### slurm_script_generator.pragmas.Nice.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'nice'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L507-L507)

### slurm_script_generator.pragmas.Nice.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--nice'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L509-L509)

### slurm_script_generator.pragmas.Nice.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '1'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L512-L512)

### slurm_script_generator.pragmas.Nice.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--nice']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L508-L508)

### slurm_script_generator.pragmas.Nice.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'decrease scheduling priority by value'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L511-L511)

### slurm_script_generator.pragmas.Nice.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'VALUE'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L510-L510)

### slurm_script_generator.pragmas.Nice.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L505-L505)

### slurm_script_generator.pragmas.Nice.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'time_and_priority'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L506-L506)

### slurm_script_generator.pragmas.Nice.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L513-L513)

### slurm_script_generator.pragmas.Nice.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Nice.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Nice.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Nice.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Nice.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Nice.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Nice.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Nice.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.No_kill

*class*

```python
class No_kill(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --no-kill pragma.
Prevents job termination on node failure.
Usage: --no-kill

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1884-L1904)

### slurm_script_generator.pragmas.No_kill.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1903-L1903)

### slurm_script_generator.pragmas.No_kill.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'no_kill'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1899-L1899)

### slurm_script_generator.pragmas.No_kill.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--no-kill'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1901-L1901)

### slurm_script_generator.pragmas.No_kill.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-k', '--no-kill']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1900-L1900)

### slurm_script_generator.pragmas.No_kill.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'do not kill job on node failure'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1902-L1902)

### slurm_script_generator.pragmas.No_kill.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1897-L1897)

### slurm_script_generator.pragmas.No_kill.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'execution_behavior_and_signals'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1898-L1898)

### slurm_script_generator.pragmas.No_kill.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1904-L1904)

### slurm_script_generator.pragmas.No_kill.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.No_kill.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.No_kill.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.No_kill.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.No_kill.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.No_kill.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.No_kill.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.No_kill.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.No_kill.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Nodefile

*class*

```python
class Nodefile(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --nodefile pragma.
Requests a specific list of hosts from a file for job execution.
Usage: --nodefile <FILENAME>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1649-L1669)

### slurm_script_generator.pragmas.Nodefile.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'nodefile'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1664-L1664)

### slurm_script_generator.pragmas.Nodefile.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--nodefile'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1666-L1666)

### slurm_script_generator.pragmas.Nodefile.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-F', '--nodefile']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1665-L1665)

### slurm_script_generator.pragmas.Nodefile.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'request a specific list of hosts'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1668-L1668)

### slurm_script_generator.pragmas.Nodefile.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'FILENAME'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1667-L1667)

### slurm_script_generator.pragmas.Nodefile.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1662-L1662)

### slurm_script_generator.pragmas.Nodefile.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'node_constraints_and_selection'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1663-L1663)

### slurm_script_generator.pragmas.Nodefile.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1669-L1669)

### slurm_script_generator.pragmas.Nodefile.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Nodefile.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Nodefile.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Nodefile.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Nodefile.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Nodefile.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Nodefile.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Nodefile.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Nodefile.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Nodelist

*class*

```python
class Nodelist(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --nodelist pragma.
Requests a specific list of hosts for job execution.
Usage: --nodelist <HOSTS>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1625-L1646)

### slurm_script_generator.pragmas.Nodelist.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'nodelist'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1640-L1640)

### slurm_script_generator.pragmas.Nodelist.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--nodelist'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1642-L1642)

### slurm_script_generator.pragmas.Nodelist.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-w', '--nodelist']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1641-L1641)

### slurm_script_generator.pragmas.Nodelist.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'request a specific list of hosts'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1644-L1644)

### slurm_script_generator.pragmas.Nodelist.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'HOST'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1643-L1643)

### slurm_script_generator.pragmas.Nodelist.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs = '+'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1645-L1645)

### slurm_script_generator.pragmas.Nodelist.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1638-L1638)

### slurm_script_generator.pragmas.Nodelist.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'node_constraints_and_selection'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1639-L1639)

### slurm_script_generator.pragmas.Nodelist.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1646-L1646)

### slurm_script_generator.pragmas.Nodelist.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Nodelist.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Nodelist.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Nodelist.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Nodelist.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Nodelist.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Nodelist.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Nodelist.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Nodes

*class*

```python
class Nodes(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --nodes pragma.
Specifies the number of nodes to allocate for the job.
Usage: --nodes <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L778-L799)

### slurm_script_generator.pragmas.Nodes.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'nodes'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L793-L793)

### slurm_script_generator.pragmas.Nodes.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--nodes'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L795-L795)

### slurm_script_generator.pragmas.Nodes.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '2'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L798-L798)

### slurm_script_generator.pragmas.Nodes.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-N', '--nodes']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L794-L794)

### slurm_script_generator.pragmas.Nodes.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of nodes on which to run'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L797-L797)

### slurm_script_generator.pragmas.Nodes.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NODES'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L796-L796)

### slurm_script_generator.pragmas.Nodes.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L791-L791)

### slurm_script_generator.pragmas.Nodes.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L792-L792)

### slurm_script_generator.pragmas.Nodes.type

*attribute* · *class attribute* · *instance attribute*

```python
type = int
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L799-L799)

### slurm_script_generator.pragmas.Nodes.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Nodes.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Nodes.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Nodes.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Nodes.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Nodes.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Nodes.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Nodes.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Ntasks

*class*

```python
class Ntasks(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --ntasks pragma.
Sets the total number of tasks (processes) to run for the job.
Usage: --ntasks <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L802-L823)

### slurm_script_generator.pragmas.Ntasks.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'ntasks'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L817-L817)

### slurm_script_generator.pragmas.Ntasks.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--ntasks'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L819-L819)

### slurm_script_generator.pragmas.Ntasks.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '16'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L822-L822)

### slurm_script_generator.pragmas.Ntasks.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-n', '--ntasks']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L818-L818)

### slurm_script_generator.pragmas.Ntasks.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of processors required'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L821-L821)

### slurm_script_generator.pragmas.Ntasks.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L820-L820)

### slurm_script_generator.pragmas.Ntasks.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L815-L815)

### slurm_script_generator.pragmas.Ntasks.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L816-L816)

### slurm_script_generator.pragmas.Ntasks.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L823-L823)

### slurm_script_generator.pragmas.Ntasks.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Ntasks.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Ntasks.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Ntasks.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Ntasks.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Ntasks.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Ntasks.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Ntasks.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Ntasks_per_core

*class*

```python
class Ntasks_per_core(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --ntasks-per-core pragma.
Sets the number of tasks to invoke on each core.
Usage: --ntasks-per-core <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1039-L1060)

### slurm_script_generator.pragmas.Ntasks_per_core.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'ntasks_per_core'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1054-L1054)

### slurm_script_generator.pragmas.Ntasks_per_core.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--ntasks-per-core'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1056-L1056)

### slurm_script_generator.pragmas.Ntasks_per_core.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '16'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1059-L1059)

### slurm_script_generator.pragmas.Ntasks_per_core.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--ntasks-per-core']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1055-L1055)

### slurm_script_generator.pragmas.Ntasks_per_core.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of tasks to invoke on each core'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1058-L1058)

### slurm_script_generator.pragmas.Ntasks_per_core.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1057-L1057)

### slurm_script_generator.pragmas.Ntasks_per_core.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1052-L1052)

### slurm_script_generator.pragmas.Ntasks_per_core.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'cpu_topology_and_binding'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1053-L1053)

### slurm_script_generator.pragmas.Ntasks_per_core.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1060-L1060)

### slurm_script_generator.pragmas.Ntasks_per_core.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Ntasks_per_core.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Ntasks_per_core.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Ntasks_per_core.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Ntasks_per_core.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Ntasks_per_core.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Ntasks_per_core.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Ntasks_per_core.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Ntasks_per_node

*class*

```python
class Ntasks_per_node(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --ntasks-per-node pragma.
Specifies the number of tasks to invoke on each node.
Usage: --ntasks-per-node <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L826-L847)

### slurm_script_generator.pragmas.Ntasks_per_node.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'ntasks_per_node'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L841-L841)

### slurm_script_generator.pragmas.Ntasks_per_node.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--ntasks-per-node'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L843-L843)

### slurm_script_generator.pragmas.Ntasks_per_node.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '16'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L846-L846)

### slurm_script_generator.pragmas.Ntasks_per_node.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--ntasks-per-node']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L842-L842)

### slurm_script_generator.pragmas.Ntasks_per_node.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of tasks to invoke on each node'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L845-L845)

### slurm_script_generator.pragmas.Ntasks_per_node.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L844-L844)

### slurm_script_generator.pragmas.Ntasks_per_node.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L839-L839)

### slurm_script_generator.pragmas.Ntasks_per_node.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L840-L840)

### slurm_script_generator.pragmas.Ntasks_per_node.type

*attribute* · *class attribute* · *instance attribute*

```python
type = int
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L847-L847)

### slurm_script_generator.pragmas.Ntasks_per_node.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Ntasks_per_node.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Ntasks_per_node.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Ntasks_per_node.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Ntasks_per_node.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Ntasks_per_node.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Ntasks_per_node.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Ntasks_per_node.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Ntasks_per_socket

*class*

```python
class Ntasks_per_socket(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --ntasks-per-socket pragma.
Specifies the number of tasks to invoke on each socket.
Usage: --ntasks-per-socket <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1063-L1084)

### slurm_script_generator.pragmas.Ntasks_per_socket.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'ntasks_per_socket'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1078-L1078)

### slurm_script_generator.pragmas.Ntasks_per_socket.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--ntasks-per-socket'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1080-L1080)

### slurm_script_generator.pragmas.Ntasks_per_socket.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '8'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1083-L1083)

### slurm_script_generator.pragmas.Ntasks_per_socket.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--ntasks-per-socket']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1079-L1079)

### slurm_script_generator.pragmas.Ntasks_per_socket.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of tasks to invoke on each socket'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1082-L1082)

### slurm_script_generator.pragmas.Ntasks_per_socket.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'N'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1081-L1081)

### slurm_script_generator.pragmas.Ntasks_per_socket.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1076-L1076)

### slurm_script_generator.pragmas.Ntasks_per_socket.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'cpu_topology_and_binding'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1077-L1077)

### slurm_script_generator.pragmas.Ntasks_per_socket.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1084-L1084)

### slurm_script_generator.pragmas.Ntasks_per_socket.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Ntasks_per_socket.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Ntasks_per_socket.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Ntasks_per_socket.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Ntasks_per_socket.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Ntasks_per_socket.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Ntasks_per_socket.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Ntasks_per_socket.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Nvmps

*class*

```python
class Nvmps(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --nvmps pragma.
Launches NVIDIA MPS (Multi-Process Service) for the job.
Usage: --nvmps

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1416-L1436)

### slurm_script_generator.pragmas.Nvmps.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1435-L1435)

### slurm_script_generator.pragmas.Nvmps.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'nvmps'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1431-L1431)

### slurm_script_generator.pragmas.Nvmps.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--nvmps'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1433-L1433)

### slurm_script_generator.pragmas.Nvmps.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--nvmps']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1432-L1432)

### slurm_script_generator.pragmas.Nvmps.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'launching NVIDIA MPS for job'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1434-L1434)

### slurm_script_generator.pragmas.Nvmps.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 8
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1429-L1429)

### slurm_script_generator.pragmas.Nvmps.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'gpus'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1430-L1430)

### slurm_script_generator.pragmas.Nvmps.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1436-L1436)

### slurm_script_generator.pragmas.Nvmps.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Nvmps.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Nvmps.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Nvmps.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Nvmps.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Nvmps.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Nvmps.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Nvmps.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Nvmps.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Oom_kill_step

*class*

```python
class Oom_kill_step(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --oom-kill-step pragma.
Sets the OOMKillStep behavior for jobs that exceed memory limits.
Usage: --oom-kill-step <0|1>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1204-L1226)

### slurm_script_generator.pragmas.Oom_kill_step.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'oom_kill_step'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1219-L1219)

### slurm_script_generator.pragmas.Oom_kill_step.const

*attribute* · *class attribute* · *instance attribute*

```python
const = '1'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1225-L1225)

### slurm_script_generator.pragmas.Oom_kill_step.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--oom-kill-step'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1221-L1221)

### slurm_script_generator.pragmas.Oom_kill_step.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--oom-kill-step']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1220-L1220)

### slurm_script_generator.pragmas.Oom_kill_step.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'set the OOMKillStep behaviour'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1223-L1223)

### slurm_script_generator.pragmas.Oom_kill_step.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = '0|1'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1222-L1222)

### slurm_script_generator.pragmas.Oom_kill_step.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs = '?'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1224-L1224)

### slurm_script_generator.pragmas.Oom_kill_step.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1217-L1217)

### slurm_script_generator.pragmas.Oom_kill_step.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'memory'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1218-L1218)

### slurm_script_generator.pragmas.Oom_kill_step.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1226-L1226)

### slurm_script_generator.pragmas.Oom_kill_step.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Oom_kill_step.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Oom_kill_step.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Oom_kill_step.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Oom_kill_step.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Oom_kill_step.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Oom_kill_step.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Output

*class*

```python
class Output(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --output pragma.
Redirects job output to a specified file, supporting job and jobname variables.
Usage: --output <FILE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L540-L561)

### slurm_script_generator.pragmas.Output.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'output'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L555-L555)

### slurm_script_generator.pragmas.Output.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--output'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L557-L557)

### slurm_script_generator.pragmas.Output.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '--output ./%x.%j.out'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L560-L560)

### slurm_script_generator.pragmas.Output.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--output', '-o']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L556-L556)

### slurm_script_generator.pragmas.Output.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'File to redirect output (%%x=jobname, %%j=jobid)'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L559-L559)

### slurm_script_generator.pragmas.Output.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'OUTPUT'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L558-L558)

### slurm_script_generator.pragmas.Output.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L553-L553)

### slurm_script_generator.pragmas.Output.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'io_and_directory'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L554-L554)

### slurm_script_generator.pragmas.Output.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L561-L561)

### slurm_script_generator.pragmas.Output.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Output.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Output.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Output.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Output.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Output.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Output.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Output.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Overcommit

*class*

```python
class Overcommit(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --overcommit pragma.
Allows resources to be overcommitted for the job.
Usage: --overcommit

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1766-L1786)

### slurm_script_generator.pragmas.Overcommit.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1785-L1785)

### slurm_script_generator.pragmas.Overcommit.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'overcommit'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1781-L1781)

### slurm_script_generator.pragmas.Overcommit.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--overcommit'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1783-L1783)

### slurm_script_generator.pragmas.Overcommit.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-O', '--overcommit']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1782-L1782)

### slurm_script_generator.pragmas.Overcommit.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'overcommit resources'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1784-L1784)

### slurm_script_generator.pragmas.Overcommit.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1779-L1779)

### slurm_script_generator.pragmas.Overcommit.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'exclusivity_and_sharing'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1780-L1780)

### slurm_script_generator.pragmas.Overcommit.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1786-L1786)

### slurm_script_generator.pragmas.Overcommit.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Overcommit.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Overcommit.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Overcommit.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Overcommit.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Overcommit.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Overcommit.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Overcommit.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Overcommit.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Oversubscribe

*class*

```python
class Oversubscribe(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --oversubscribe pragma.
Allows resources to be oversubscribed with other jobs.
Usage: --oversubscribe

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1743-L1763)

### slurm_script_generator.pragmas.Oversubscribe.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1762-L1762)

### slurm_script_generator.pragmas.Oversubscribe.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'oversubscribe'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1758-L1758)

### slurm_script_generator.pragmas.Oversubscribe.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--oversubscribe'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1760-L1760)

### slurm_script_generator.pragmas.Oversubscribe.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-s', '--oversubscribe']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1759-L1759)

### slurm_script_generator.pragmas.Oversubscribe.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'oversubscribe resources with other jobs'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1761-L1761)

### slurm_script_generator.pragmas.Oversubscribe.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1756-L1756)

### slurm_script_generator.pragmas.Oversubscribe.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'exclusivity_and_sharing'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1757-L1757)

### slurm_script_generator.pragmas.Oversubscribe.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1763-L1763)

### slurm_script_generator.pragmas.Oversubscribe.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Oversubscribe.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Oversubscribe.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Oversubscribe.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Oversubscribe.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Oversubscribe.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Oversubscribe.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Oversubscribe.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Oversubscribe.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Partition

*class*

```python
class Partition(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --partition pragma.
Requests a specific partition (queue) for job scheduling.
Usage: --partition <PARTITION>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L190-L210)

### slurm_script_generator.pragmas.Partition.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'partition'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L205-L205)

### slurm_script_generator.pragmas.Partition.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--partition'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L207-L207)

### slurm_script_generator.pragmas.Partition.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-p', '--partition']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L206-L206)

### slurm_script_generator.pragmas.Partition.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'partition requested'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L209-L209)

### slurm_script_generator.pragmas.Partition.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'PARTITION'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L208-L208)

### slurm_script_generator.pragmas.Partition.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L203-L203)

### slurm_script_generator.pragmas.Partition.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L204-L204)

### slurm_script_generator.pragmas.Partition.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L210-L210)

### slurm_script_generator.pragmas.Partition.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Partition.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Partition.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Partition.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Partition.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Partition.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Partition.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Partition.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Partition.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Power

*class*

```python
class Power(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --power pragma.
Sets power management options for the job.
Usage: --power <FLAGS>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2094-L2114)

### slurm_script_generator.pragmas.Power.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'power'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2109-L2109)

### slurm_script_generator.pragmas.Power.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--power'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2111-L2111)

### slurm_script_generator.pragmas.Power.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--power']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2110-L2110)

### slurm_script_generator.pragmas.Power.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'power management options'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2113-L2113)

### slurm_script_generator.pragmas.Power.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'FLAGS'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2112-L2112)

### slurm_script_generator.pragmas.Power.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 6
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2107-L2107)

### slurm_script_generator.pragmas.Power.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2108-L2108)

### slurm_script_generator.pragmas.Power.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2114-L2114)

### slurm_script_generator.pragmas.Power.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Power.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Power.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Power.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Power.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Power.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Power.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Power.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Power.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Pragma

*class*

```python
class Pragma
```

Base class representing a SLURM #SBATCH pragma.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L66-L136)

### slurm_script_generator.pragmas.Pragma.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Pragma.arg_varname

*attribute* · *instance attribute*

```python
arg_varname: str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L69-L69)

### slurm_script_generator.pragmas.Pragma.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Pragma.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Pragma.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Pragma.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest: str = ''
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L73-L73)

### slurm_script_generator.pragmas.Pragma.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Pragma.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags: List[str] = []
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L72-L72)

### slurm_script_generator.pragmas.Pragma.help

*attribute* · *class attribute* · *instance attribute*

```python
help: str = ''
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L75-L75)

### slurm_script_generator.pragmas.Pragma.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Pragma.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Pragma.pragma_id

*attribute* · *instance attribute*

```python
pragma_id: int
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L70-L70)

### slurm_script_generator.pragmas.Pragma.pragma_type

*attribute* · *instance attribute*

```python
pragma_type: PragmaTypes
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L71-L71)

### slurm_script_generator.pragmas.Pragma.type

*attribute* · *class attribute* · *instance attribute*

```python
type: Callable[[str], Any] = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L77-L77)

### slurm_script_generator.pragmas.Pragma.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Pragma.is_flag

*property*

```python
is_flag: bool
```

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Pragma.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.PragmaFactory

*class*

```python
class PragmaFactory
```

Factory class for creating and managing SLURM pragma classes.
Provides methods to validate pragma keys, create pragma instances, and retrieve pragma classes.

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2379-L2510)

### slurm_script_generator.pragmas.PragmaFactory.pragmas

*attribute* · *class attribute* · *instance attribute*

```python
pragmas = {pragma_cls.arg_varname: pragma_cls for pragma_cls in pragmas_ordered}
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2391-L2391)

### slurm_script_generator.pragmas.PragmaFactory.create_pragma

*method* · *staticmethod*

```python
def create_pragma(key: str, value: str) -> Pragma
```

Create a Pragma instance for the given key and value.

Parameters
----------
key : str
    The pragma key.
key :
    str:
value :
    str:
key: str :

value: str :

Returns
-------

Raises
------
ValueError
    If the key is not valid.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2412-L2440)

### slurm_script_generator.pragmas.PragmaFactory.flag_to_cls

*method* · *staticmethod*

```python
def flag_to_cls(flag: str) -> Type[Pragma] | None
```

Look up the Pragma class carrying a given flag.

**Parameters**

- `flag` (`str`) — The flag to look up (e.g. ``"--job-name"`` or ``"-J"``).

**Returns**

- (`Type[Pragma] | None`) — The matching Pragma class, or None if the flag is not known.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2473-L2486)

### slurm_script_generator.pragmas.PragmaFactory.flag_to_pragma

*method* · *staticmethod*

```python
def flag_to_pragma(flag: str, value: str) -> Pragma | None
```

Create a Pragma instance based on a flag and value.

Parameters
----------
flag : str
    The flag associated with the pragma (e.g., '--job-name').
flag :
    str:
value :
    str:
flag: str :

value: str :

Returns
-------

Raises
------
ValueError
    If the flag is not recognized.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2442-L2471)

### slurm_script_generator.pragmas.PragmaFactory.get_pragma_cls

*method* · *staticmethod*

```python
def get_pragma_cls(key: str) -> Type[Pragma]
```

Retrieve the Pragma class for a given key.

Parameters
----------
key :
    str:
key: str :

Returns
-------

Raises
------
ValueError
    If the key is not valid.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2488-L2510)

### slurm_script_generator.pragmas.PragmaFactory.is_valid_pragma_key

*method* · *staticmethod*

```python
def is_valid_pragma_key(key: str) -> bool
```

Check if a given key is a valid pragma key.

Parameters
----------
key :
    str:
key: str :

Returns
-------
bool
    True if the key is valid, False otherwise.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2393-L2410)

## slurm_script_generator.pragmas.Priority

*class*

```python
class Priority(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --priority pragma.
Sets the priority value for the job, influencing scheduling order.
Usage: --priority <VALUE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L469-L489)

### slurm_script_generator.pragmas.Priority.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'priority'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L484-L484)

### slurm_script_generator.pragmas.Priority.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--priority'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L486-L486)

### slurm_script_generator.pragmas.Priority.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--priority']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L485-L485)

### slurm_script_generator.pragmas.Priority.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'set the priority of the job'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L488-L488)

### slurm_script_generator.pragmas.Priority.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'VALUE'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L487-L487)

### slurm_script_generator.pragmas.Priority.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L482-L482)

### slurm_script_generator.pragmas.Priority.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'time_and_priority'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L483-L483)

### slurm_script_generator.pragmas.Priority.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L489-L489)

### slurm_script_generator.pragmas.Priority.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Priority.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Priority.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Priority.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Priority.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Priority.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Priority.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Priority.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Priority.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Profile

*class*

```python
class Profile(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --profile pragma.
Enables acct_gather_profile for detailed job data collection.
Usage: --profile <VALUE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2117-L2137)

### slurm_script_generator.pragmas.Profile.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'profile'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2132-L2132)

### slurm_script_generator.pragmas.Profile.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--profile'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2134-L2134)

### slurm_script_generator.pragmas.Profile.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--profile']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2133-L2133)

### slurm_script_generator.pragmas.Profile.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'enable acct_gather_profile for detailed data'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2136-L2136)

### slurm_script_generator.pragmas.Profile.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'VALUE'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2135-L2135)

### slurm_script_generator.pragmas.Profile.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 7
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2130-L2130)

### slurm_script_generator.pragmas.Profile.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2131-L2131)

### slurm_script_generator.pragmas.Profile.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2137-L2137)

### slurm_script_generator.pragmas.Profile.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Profile.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Profile.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Profile.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Profile.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Profile.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Profile.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Profile.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Profile.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Qos

*class*

```python
class Qos(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --qos pragma.
Sets the quality of service for the job, affecting priority and limits.
Usage: --qos <QOS>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L213-L233)

### slurm_script_generator.pragmas.Qos.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'qos'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L228-L228)

### slurm_script_generator.pragmas.Qos.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--qos'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L230-L230)

### slurm_script_generator.pragmas.Qos.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-q', '--qos']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L229-L229)

### slurm_script_generator.pragmas.Qos.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'quality of service'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L232-L232)

### slurm_script_generator.pragmas.Qos.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'QOS'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L231-L231)

### slurm_script_generator.pragmas.Qos.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L226-L226)

### slurm_script_generator.pragmas.Qos.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L227-L227)

### slurm_script_generator.pragmas.Qos.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L233-L233)

### slurm_script_generator.pragmas.Qos.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Qos.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Qos.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Qos.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Qos.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Qos.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Qos.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Qos.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Qos.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Quiet

*class*

```python
class Quiet(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --quiet pragma.
Suppresses informational messages during job submission.
Usage: --quiet

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L634-L654)

### slurm_script_generator.pragmas.Quiet.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L653-L653)

### slurm_script_generator.pragmas.Quiet.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'quiet'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L649-L649)

### slurm_script_generator.pragmas.Quiet.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--quiet'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L651-L651)

### slurm_script_generator.pragmas.Quiet.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-Q', '--quiet']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L650-L650)

### slurm_script_generator.pragmas.Quiet.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'quiet mode (suppress informational messages)'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L652-L652)

### slurm_script_generator.pragmas.Quiet.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L647-L647)

### slurm_script_generator.pragmas.Quiet.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'io_and_directory'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L648-L648)

### slurm_script_generator.pragmas.Quiet.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L654-L654)

### slurm_script_generator.pragmas.Quiet.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Quiet.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Quiet.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Quiet.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Quiet.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Quiet.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Quiet.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Quiet.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Quiet.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Reboot

*class*

```python
class Reboot(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --reboot pragma.
Reboots compute nodes before starting the job.
Usage: --reboot

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1838-L1858)

### slurm_script_generator.pragmas.Reboot.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1857-L1857)

### slurm_script_generator.pragmas.Reboot.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'reboot'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1853-L1853)

### slurm_script_generator.pragmas.Reboot.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--reboot'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1855-L1855)

### slurm_script_generator.pragmas.Reboot.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--reboot']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1854-L1854)

### slurm_script_generator.pragmas.Reboot.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'reboot compute nodes before starting job'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1856-L1856)

### slurm_script_generator.pragmas.Reboot.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1851-L1851)

### slurm_script_generator.pragmas.Reboot.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'execution_behavior_and_signals'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1852-L1852)

### slurm_script_generator.pragmas.Reboot.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1858-L1858)

### slurm_script_generator.pragmas.Reboot.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Reboot.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Reboot.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Reboot.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Reboot.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Reboot.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Reboot.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Reboot.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Reboot.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Reservation

*class*

```python
class Reservation(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --reservation pragma.
Allocates resources from a named reservation, useful for reserved compute time or special projects.
Usage: --reservation <RESERVATION_NAME>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L259-L279)

### slurm_script_generator.pragmas.Reservation.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'reservation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L274-L274)

### slurm_script_generator.pragmas.Reservation.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--reservation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L276-L276)

### slurm_script_generator.pragmas.Reservation.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--reservation']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L275-L275)

### slurm_script_generator.pragmas.Reservation.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'allocate resources from named reservation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L278-L278)

### slurm_script_generator.pragmas.Reservation.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'NAME'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L277-L277)

### slurm_script_generator.pragmas.Reservation.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L272-L272)

### slurm_script_generator.pragmas.Reservation.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L273-L273)

### slurm_script_generator.pragmas.Reservation.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L279-L279)

### slurm_script_generator.pragmas.Reservation.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Reservation.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Reservation.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Reservation.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Reservation.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Reservation.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Reservation.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Reservation.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Reservation.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Resv_ports

*class*

```python
class Resv_ports(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --resv-ports pragma.
Reserves communication ports for the job.
Usage: --resv-ports

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2048-L2068)

### slurm_script_generator.pragmas.Resv_ports.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2067-L2067)

### slurm_script_generator.pragmas.Resv_ports.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'resv_ports'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2063-L2063)

### slurm_script_generator.pragmas.Resv_ports.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--resv-ports'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2065-L2065)

### slurm_script_generator.pragmas.Resv_ports.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--resv-ports']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2064-L2064)

### slurm_script_generator.pragmas.Resv_ports.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'reserve communication ports'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2066-L2066)

### slurm_script_generator.pragmas.Resv_ports.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 4
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2061-L2061)

### slurm_script_generator.pragmas.Resv_ports.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2062-L2062)

### slurm_script_generator.pragmas.Resv_ports.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2068-L2068)

### slurm_script_generator.pragmas.Resv_ports.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Resv_ports.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Resv_ports.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Resv_ports.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Resv_ports.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Resv_ports.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Resv_ports.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Resv_ports.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Resv_ports.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Signal

*class*

```python
class Signal(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --signal pragma.
Sends a signal when the time limit is within the specified seconds.
Usage: --signal [R:]NUM[@TIME]

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1932-L1952)

### slurm_script_generator.pragmas.Signal.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'signal'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1947-L1947)

### slurm_script_generator.pragmas.Signal.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--signal'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1949-L1949)

### slurm_script_generator.pragmas.Signal.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--signal']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1948-L1948)

### slurm_script_generator.pragmas.Signal.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'send signal when time limit within time seconds'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1951-L1951)

### slurm_script_generator.pragmas.Signal.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = '[R:]NUM[@TIME]'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1950-L1950)

### slurm_script_generator.pragmas.Signal.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 6
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1945-L1945)

### slurm_script_generator.pragmas.Signal.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'execution_behavior_and_signals'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1946-L1946)

### slurm_script_generator.pragmas.Signal.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1952-L1952)

### slurm_script_generator.pragmas.Signal.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Signal.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Signal.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Signal.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Signal.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Signal.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Signal.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Signal.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Signal.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Sockets_per_node

*class*

```python
class Sockets_per_node(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --sockets-per-node pragma.
Specifies the number of sockets per node to allocate.
Usage: --sockets-per-node <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L968-L988)

### slurm_script_generator.pragmas.Sockets_per_node.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'sockets_per_node'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L983-L983)

### slurm_script_generator.pragmas.Sockets_per_node.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--sockets-per-node'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L985-L985)

### slurm_script_generator.pragmas.Sockets_per_node.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--sockets-per-node']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L984-L984)

### slurm_script_generator.pragmas.Sockets_per_node.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of sockets per node to allocate'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L987-L987)

### slurm_script_generator.pragmas.Sockets_per_node.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'S'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L986-L986)

### slurm_script_generator.pragmas.Sockets_per_node.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L981-L981)

### slurm_script_generator.pragmas.Sockets_per_node.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'cpu_topology_and_binding'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L982-L982)

### slurm_script_generator.pragmas.Sockets_per_node.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L988-L988)

### slurm_script_generator.pragmas.Sockets_per_node.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Sockets_per_node.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Sockets_per_node.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Sockets_per_node.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Sockets_per_node.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Sockets_per_node.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Sockets_per_node.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Sockets_per_node.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Sockets_per_node.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Spread_job

*class*

```python
class Spread_job(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --spread-job pragma.
Spreads the job across as many nodes as possible.
Usage: --spread-job

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L921-L941)

### slurm_script_generator.pragmas.Spread_job.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L940-L940)

### slurm_script_generator.pragmas.Spread_job.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'spread_job'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L936-L936)

### slurm_script_generator.pragmas.Spread_job.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--spread-job'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L938-L938)

### slurm_script_generator.pragmas.Spread_job.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--spread-job']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L937-L937)

### slurm_script_generator.pragmas.Spread_job.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'spread job across as many nodes as possible'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L939-L939)

### slurm_script_generator.pragmas.Spread_job.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 6
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L934-L934)

### slurm_script_generator.pragmas.Spread_job.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L935-L935)

### slurm_script_generator.pragmas.Spread_job.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L941-L941)

### slurm_script_generator.pragmas.Spread_job.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Spread_job.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Spread_job.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Spread_job.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Spread_job.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Spread_job.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Spread_job.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Spread_job.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Spread_job.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Switches

*class*

```python
class Switches(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --switches pragma.
Sets optimum switches and maximum wait time for optimum.
Usage: --switches <MAX_SWITCHES[@MAX_TIME]>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2071-L2091)

### slurm_script_generator.pragmas.Switches.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'switches'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2086-L2086)

### slurm_script_generator.pragmas.Switches.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--switches'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2088-L2088)

### slurm_script_generator.pragmas.Switches.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--switches']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2087-L2087)

### slurm_script_generator.pragmas.Switches.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'optimum switches and max time to wait for optimum'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2090-L2090)

### slurm_script_generator.pragmas.Switches.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MAX_SWITCHES[@MAX_TIME]'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2089-L2089)

### slurm_script_generator.pragmas.Switches.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 5
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2084-L2084)

### slurm_script_generator.pragmas.Switches.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2085-L2085)

### slurm_script_generator.pragmas.Switches.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2091-L2091)

### slurm_script_generator.pragmas.Switches.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Switches.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Switches.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Switches.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Switches.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Switches.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Switches.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Switches.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Switches.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Thread_spec

*class*

```python
class Thread_spec(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --thread-spec pragma.
Sets the count of reserved threads for the job.
Usage: --thread-spec <THREADS>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1979-L1999)

### slurm_script_generator.pragmas.Thread_spec.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'thread_spec'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1994-L1994)

### slurm_script_generator.pragmas.Thread_spec.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--thread-spec'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1996-L1996)

### slurm_script_generator.pragmas.Thread_spec.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--thread-spec']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1995-L1995)

### slurm_script_generator.pragmas.Thread_spec.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'count of reserved threads'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1998-L1998)

### slurm_script_generator.pragmas.Thread_spec.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'THREADS'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1997-L1997)

### slurm_script_generator.pragmas.Thread_spec.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1992-L1992)

### slurm_script_generator.pragmas.Thread_spec.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1993-L1993)

### slurm_script_generator.pragmas.Thread_spec.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1999-L1999)

### slurm_script_generator.pragmas.Thread_spec.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Thread_spec.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Thread_spec.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Thread_spec.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Thread_spec.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Thread_spec.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Thread_spec.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Thread_spec.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Thread_spec.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Threads_per_core

*class*

```python
class Threads_per_core(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --threads-per-core pragma.
Specifies the number of threads per core to allocate.
Usage: --threads-per-core <COUNT>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1015-L1036)

### slurm_script_generator.pragmas.Threads_per_core.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'threads_per_core'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1030-L1030)

### slurm_script_generator.pragmas.Threads_per_core.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--threads-per-core'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1032-L1032)

### slurm_script_generator.pragmas.Threads_per_core.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '4'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1035-L1035)

### slurm_script_generator.pragmas.Threads_per_core.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--threads-per-core']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1031-L1031)

### slurm_script_generator.pragmas.Threads_per_core.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'number of threads per core to allocate'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1034-L1034)

### slurm_script_generator.pragmas.Threads_per_core.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'T'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1033-L1033)

### slurm_script_generator.pragmas.Threads_per_core.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1028-L1028)

### slurm_script_generator.pragmas.Threads_per_core.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'cpu_topology_and_binding'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1029-L1029)

### slurm_script_generator.pragmas.Threads_per_core.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1036-L1036)

### slurm_script_generator.pragmas.Threads_per_core.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Threads_per_core.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Threads_per_core.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Threads_per_core.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Threads_per_core.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Threads_per_core.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Threads_per_core.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Threads_per_core.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Time

*class*

```python
class Time(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --time pragma.
Sets the maximum walltime for the job in minutes or HH:MM:SS format.
Usage: --time <DURATION>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L370-L394)

### slurm_script_generator.pragmas.Time.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'time'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L385-L385)

### slurm_script_generator.pragmas.Time.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--time'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L387-L387)

### slurm_script_generator.pragmas.Time.example

*attribute* · *class attribute* · *instance attribute*

```python
example = '00:45:00'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L390-L390)

### slurm_script_generator.pragmas.Time.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['-t', '--time']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L386-L386)

### slurm_script_generator.pragmas.Time.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'time limit'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L389-L389)

### slurm_script_generator.pragmas.Time.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MINUTES'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L388-L388)

### slurm_script_generator.pragmas.Time.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L383-L383)

### slurm_script_generator.pragmas.Time.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'time_and_priority'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L384-L384)

### slurm_script_generator.pragmas.Time.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L391-L391)

### slurm_script_generator.pragmas.Time.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Time.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Time.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Time.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Time.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Time.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Time.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Time.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Time_min

*class*

```python
class Time_min(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --time-min pragma.
Specifies the minimum walltime for the job, if distinct from the maximum.
Usage: --time-min <DURATION>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L397-L420)

### slurm_script_generator.pragmas.Time_min.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'time_min'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L412-L412)

### slurm_script_generator.pragmas.Time_min.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--time-min'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L414-L414)

### slurm_script_generator.pragmas.Time_min.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--time-min']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L413-L413)

### slurm_script_generator.pragmas.Time_min.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'minimum time limit (if distinct)'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L416-L416)

### slurm_script_generator.pragmas.Time_min.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MINUTES'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L415-L415)

### slurm_script_generator.pragmas.Time_min.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 1
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L410-L410)

### slurm_script_generator.pragmas.Time_min.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'time_and_priority'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L411-L411)

### slurm_script_generator.pragmas.Time_min.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L417-L417)

### slurm_script_generator.pragmas.Time_min.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Time_min.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Time_min.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Time_min.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Time_min.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Time_min.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Time_min.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Time_min.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Time_min.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Tmp

*class*

```python
class Tmp(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --tmp pragma.
Sets the minimum amount of temporary disk required for the job.
Usage: --tmp <SIZE>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2025-L2045)

### slurm_script_generator.pragmas.Tmp.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'tmp'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2040-L2040)

### slurm_script_generator.pragmas.Tmp.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--tmp'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2042-L2042)

### slurm_script_generator.pragmas.Tmp.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--tmp']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2041-L2041)

### slurm_script_generator.pragmas.Tmp.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'minimum amount of temporary disk'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2044-L2044)

### slurm_script_generator.pragmas.Tmp.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'MB'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2043-L2043)

### slurm_script_generator.pragmas.Tmp.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2038-L2038)

### slurm_script_generator.pragmas.Tmp.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'advanced_hardware_misc'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2039-L2039)

### slurm_script_generator.pragmas.Tmp.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2045-L2045)

### slurm_script_generator.pragmas.Tmp.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Tmp.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Tmp.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Tmp.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Tmp.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Tmp.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Tmp.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Tmp.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Tmp.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Tres_bind

*class*

```python
class Tres_bind(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --tres-bind pragma.
Specifies task-to-TRES binding options for resource allocation.
Usage: --tres-bind <OPTIONS>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1486-L1506)

### slurm_script_generator.pragmas.Tres_bind.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'tres_bind'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1501-L1501)

### slurm_script_generator.pragmas.Tres_bind.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--tres-bind'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1503-L1503)

### slurm_script_generator.pragmas.Tres_bind.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--tres-bind']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1502-L1502)

### slurm_script_generator.pragmas.Tres_bind.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'task to tres binding options'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1505-L1505)

### slurm_script_generator.pragmas.Tres_bind.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = '...'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1504-L1504)

### slurm_script_generator.pragmas.Tres_bind.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 2
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1499-L1499)

### slurm_script_generator.pragmas.Tres_bind.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'generic_resources_and_licenses'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1500-L1500)

### slurm_script_generator.pragmas.Tres_bind.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1506-L1506)

### slurm_script_generator.pragmas.Tres_bind.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Tres_bind.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Tres_bind.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Tres_bind.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Tres_bind.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Tres_bind.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Tres_bind.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Tres_bind.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Tres_bind.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Tres_per_task

*class*

```python
class Tres_per_task(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --tres-per-task pragma.
Sets the list of TRES (Trackable Resources) required per task.
Usage: --tres-per-task <LIST>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1509-L1529)

### slurm_script_generator.pragmas.Tres_per_task.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'tres_per_task'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1524-L1524)

### slurm_script_generator.pragmas.Tres_per_task.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--tres-per-task'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1526-L1526)

### slurm_script_generator.pragmas.Tres_per_task.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--tres-per-task']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1525-L1525)

### slurm_script_generator.pragmas.Tres_per_task.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'list of tres required per task'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1528-L1528)

### slurm_script_generator.pragmas.Tres_per_task.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'LIST'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1527-L1527)

### slurm_script_generator.pragmas.Tres_per_task.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 3
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1522-L1522)

### slurm_script_generator.pragmas.Tres_per_task.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'generic_resources_and_licenses'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1523-L1523)

### slurm_script_generator.pragmas.Tres_per_task.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L1529-L1529)

### slurm_script_generator.pragmas.Tres_per_task.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Tres_per_task.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Tres_per_task.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Tres_per_task.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Tres_per_task.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Tres_per_task.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Tres_per_task.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Tres_per_task.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Tres_per_task.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.UnknownPragma

*class*

```python
class UnknownPragma(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

An #SBATCH option this library has no class for.

Scripts written by hand (or by a newer SLURM release) may contain options
that are not modelled here. Rather than dropping or rejecting them,
:meth:`SlurmScript.from_script` keeps them in this pragma so that reading a
script and writing it back out preserves them verbatim.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2340-L2376)

### slurm_script_generator.pragmas.UnknownPragma.arg_varname

*attribute* · *instance attribute*

```python
arg_varname = flag
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2364-L2364)

### slurm_script_generator.pragmas.UnknownPragma.dest

*attribute* · *instance attribute*

```python
dest = flag
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2362-L2362)

### slurm_script_generator.pragmas.UnknownPragma.flag

*attribute* · *instance attribute*

```python
flag = flag
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2359-L2359)

### slurm_script_generator.pragmas.UnknownPragma.flags

*attribute* · *instance attribute*

```python
flags = [flag]
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2363-L2363)

### slurm_script_generator.pragmas.UnknownPragma.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 0
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2349-L2349)

### slurm_script_generator.pragmas.UnknownPragma.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'other_options'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2350-L2350)

### slurm_script_generator.pragmas.UnknownPragma.value

*attribute* · *instance attribute*

```python
value = value
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L2365-L2365)

### slurm_script_generator.pragmas.UnknownPragma.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.UnknownPragma.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.UnknownPragma.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.UnknownPragma.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.UnknownPragma.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.UnknownPragma.help

*attribute* · *class attribute* · *instance attribute*

```python
help: str = ''
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L75-L75)

### slurm_script_generator.pragmas.UnknownPragma.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.UnknownPragma.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.UnknownPragma.type

*attribute* · *class attribute* · *instance attribute*

```python
type: Callable[[str], Any] = str
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L77-L77)

### slurm_script_generator.pragmas.UnknownPragma.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.UnknownPragma.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Use_min_nodes

*class*

```python
class Use_min_nodes(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --use-min-nodes pragma.
If a range of node counts is given, prefers the smaller count for allocation.
Usage: --use-min-nodes

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L944-L964)

### slurm_script_generator.pragmas.Use_min_nodes.action

*attribute* · *class attribute* · *instance attribute*

```python
action = 'store_true'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L963-L963)

### slurm_script_generator.pragmas.Use_min_nodes.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'use_min_nodes'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L959-L959)

### slurm_script_generator.pragmas.Use_min_nodes.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--use-min-nodes'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L961-L961)

### slurm_script_generator.pragmas.Use_min_nodes.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--use-min-nodes']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L960-L960)

### slurm_script_generator.pragmas.Use_min_nodes.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'if a range of node counts is given, prefer the smaller count'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L962-L962)

### slurm_script_generator.pragmas.Use_min_nodes.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 7
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L957-L957)

### slurm_script_generator.pragmas.Use_min_nodes.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'core_node_and_task_allocation'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L958-L958)

### slurm_script_generator.pragmas.Use_min_nodes.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L964-L964)

### slurm_script_generator.pragmas.Use_min_nodes.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Use_min_nodes.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Use_min_nodes.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Use_min_nodes.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Use_min_nodes.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L74-L74)

### slurm_script_generator.pragmas.Use_min_nodes.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Use_min_nodes.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Use_min_nodes.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Use_min_nodes.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.Wckey

*class*

```python
class Wckey(Pragma)
```

Bases: `slurm_script_generator.pragmas.Pragma`

Represents the SLURM #SBATCH --wckey pragma.
Runs the job under a specified workload key (wckey) for accounting or tracking purposes.
Usage: --wckey <WCKEY>

Parameters
----------

Returns
-------

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L282-L302)

### slurm_script_generator.pragmas.Wckey.arg_varname

*attribute* · *class attribute* · *instance attribute*

```python
arg_varname = 'wckey'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L297-L297)

### slurm_script_generator.pragmas.Wckey.dest

*attribute* · *class attribute* · *instance attribute*

```python
dest = '--wckey'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L299-L299)

### slurm_script_generator.pragmas.Wckey.flags

*attribute* · *class attribute* · *instance attribute*

```python
flags = ['--wckey']
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L298-L298)

### slurm_script_generator.pragmas.Wckey.help

*attribute* · *class attribute* · *instance attribute*

```python
help = 'wckey to run job under'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L301-L301)

### slurm_script_generator.pragmas.Wckey.metavar

*attribute* · *class attribute* · *instance attribute*

```python
metavar = 'WCKEY'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L300-L300)

### slurm_script_generator.pragmas.Wckey.pragma_id

*attribute* · *class attribute* · *instance attribute*

```python
pragma_id = 6
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L295-L295)

### slurm_script_generator.pragmas.Wckey.pragma_type

*attribute* · *class attribute* · *instance attribute*

```python
pragma_type = 'job_config'
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L296-L296)

### slurm_script_generator.pragmas.Wckey.type

*attribute* · *class attribute* · *instance attribute*

```python
type = str
```

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L302-L302)

### slurm_script_generator.pragmas.Wckey.action

*attribute* · *class attribute* · *instance attribute*

```python
action: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L81-L81)

### slurm_script_generator.pragmas.Wckey.choices

*attribute* · *class attribute* · *instance attribute*

```python
choices: List[str] | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L80-L80)

### slurm_script_generator.pragmas.Wckey.const

*attribute* · *class attribute* · *instance attribute*

```python
const: int | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L79-L79)

### slurm_script_generator.pragmas.Wckey.default

*attribute* · *class attribute* · *instance attribute*

```python
default: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L82-L82)

### slurm_script_generator.pragmas.Wckey.example

*attribute* · *class attribute* · *instance attribute*

```python
example: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L76-L76)

### slurm_script_generator.pragmas.Wckey.nargs

*attribute* · *class attribute* · *instance attribute*

```python
nargs: str | None = None
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L78-L78)

### slurm_script_generator.pragmas.Wckey.value

*attribute* · *instance attribute*

```python
value = to_bool(value) if self.is_flag else value
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L98-L98)

### slurm_script_generator.pragmas.Wckey.is_flag

*property*

```python
is_flag: bool
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

Whether this pragma is a valueless switch such as ``--hold``.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L103-L105)

### slurm_script_generator.pragmas.Wckey.to_dict

*method*

```python
def to_dict() -> dict[str, Any]
```

Inherited from: `slurm_script_generator.pragmas.Pragma`

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L116-L118)

## slurm_script_generator.pragmas.to_bool

*function*

```python
def to_bool(value: Any) -> bool
```

Interpret ``value`` as the boolean of a valueless pragma such as ``--hold``.

``None`` means the flag was present without a value and is therefore True.

**Parameters**

- `value` (`Any`) — The value to interpret.

**Returns**

- (`bool`) — The boolean the value stands for.

**Raises**

- `ValueError` — If a string value is not recognized as a boolean.

[View source](https://github.com/max-models/slurm-script-generator/blob/devel/src/slurm_script_generator/pragmas.py#L29-L51)
