<spanid="evennia-commands-default-batchprocess"></span><h1>evennia.commands.default.batchprocess<aclass="headerlink"href="#module-evennia.commands.default.batchprocess"title="Permalink to this headline">¶</a></h1>
<p>Batch processors</p>
<p>These commands implements the ‘batch-command’ and ‘batch-code’
processors, using the functionality in evennia.utils.batchprocessors.
They allow for offline world-building.</p>
<p>Batch-command is the simpler system. This reads a file (<ahref="#id1"><spanclass="problematic"id="id2">*</span></a>.ev)
containing a list of in-game commands and executes them in sequence as
if they had been entered in the game (including permission checks
etc).</p>
<p>Batch-code is a full-fledged python code interpreter that reads blocks
of python code (<ahref="#id3"><spanclass="problematic"id="id4">*</span></a>.py) and executes them in sequence. This allows for
much more power than Batch-command, but requires knowing Python and
the Evennia API. It is also a severe security risk and should
therefore always be limited to superusers only.</p>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.commands.default.batchprocess.</code><codeclass="sig-name descname">CmdBatchCommands</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/commands/default/batchprocess.html#CmdBatchCommands"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'batchcommands'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = ['batchcommand', 'batchcmd']</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">switch_options</code><emclass="property"> = ('interactive',)</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands.switch_options"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:perm(batchcommands) or perm(Developer)'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'building'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/commands/default/batchprocess.html#CmdBatchCommands.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:perm(batchcommands) or perm(Developer)'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCommands.lock_storage"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.commands.default.batchprocess.</code><codeclass="sig-name descname">CmdBatchCode</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/commands/default/batchprocess.html#CmdBatchCode"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'batchcode'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aliases</code><emclass="property"> = ['batchcodes']</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">switch_options</code><emclass="property"> = ('interactive', 'debug')</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode.switch_options"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">locks</code><emclass="property"> = 'cmd:superuser()'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode.locks"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'building'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/commands/default/batchprocess.html#CmdBatchCode.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode.func"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:superuser()'</em><aclass="headerlink"href="#evennia.commands.default.batchprocess.CmdBatchCode.lock_storage"title="Permalink to this definition">¶</a></dt>