<spanid="pyopenrpa-agent-agent"></span><h2>pyOpenRPA.Agent.__Agent__<aclass="headerlink"href="#module-pyOpenRPA.Agent.__Agent__"title="Ссылка на этот заголовок">¶</a></h2>
<li><p><strong>inGSettings</strong>– Agent global settings dict</p></li>
<li><p><strong>inSendOutputToOrchestratorLogsBool</strong>– True - catch cmd execution output and send it to the Orchestrator logs; Flase - else case; Default True</p></li>
<li><p><strong>inCMDEncodingStr</strong>– Set the encoding of the DOS window on the Agent server session. Windows is beautiful :) . Default is «cp1251» early was «cp866» - need test</p></li>
<li><p><strong>inCaptureBool</strong>– !ATTENTION! If you need to start absolutely encapsulated app - set this flag as False. If you set True - the app output will come to Agent</p></li>
<codeclass="sig-prename descclassname">pyOpenRPA.Agent.__Agent__.</code><codeclass="sig-name descname">OSFileBinaryDataBase64StrAppend</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inFilePathStr</span></em>, <emclass="sig-param"><spanclass="n">inFileDataBase64Str</span></em>, <emclass="sig-param"><spanclass="n">inGSettings</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/pyOpenRPA/Agent/__Agent__.html#OSFileBinaryDataBase64StrAppend"><spanclass="viewcode-link">[исходный код]</span></a><aclass="headerlink"href="#pyOpenRPA.Agent.__Agent__.OSFileBinaryDataBase64StrAppend"title="Ссылка на это определение">¶</a></dt>
<dd><p>Create binary file by the base64 string (safe for JSON transmition)</p>
<codeclass="sig-prename descclassname">pyOpenRPA.Agent.__Agent__.</code><codeclass="sig-name descname">OSFileBinaryDataBase64StrCreate</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inFilePathStr</span></em>, <emclass="sig-param"><spanclass="n">inFileDataBase64Str</span></em>, <emclass="sig-param"><spanclass="n">inGSettings</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/pyOpenRPA/Agent/__Agent__.html#OSFileBinaryDataBase64StrCreate"><spanclass="viewcode-link">[исходный код]</span></a><aclass="headerlink"href="#pyOpenRPA.Agent.__Agent__.OSFileBinaryDataBase64StrCreate"title="Ссылка на это определение">¶</a></dt>
<dd><p>Create binary file by the base64 string (safe for JSON transmition)</p>
<codeclass="sig-prename descclassname">pyOpenRPA.Agent.__Agent__.</code><codeclass="sig-name descname">OSFileBinaryDataBase64StrReceive</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inFilePathStr</span></em>, <emclass="sig-param"><spanclass="n">inGSettings</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/pyOpenRPA/Agent/__Agent__.html#OSFileBinaryDataBase64StrReceive"><spanclass="viewcode-link">[исходный код]</span></a><aclass="headerlink"href="#pyOpenRPA.Agent.__Agent__.OSFileBinaryDataBase64StrReceive"title="Ссылка на это определение">¶</a></dt>
<dd><p>Read binary file and encode in base64 to transmit (safe for JSON transmition)</p>
<dlclass="field-list simple">
<dtclass="field-odd">Параметры</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>inFilePathStr</strong>– File path to read</p></li>
<li><p><strong>inGSettings</strong>– global settings of the Agent (singleton)</p></li>
</ul>
</dd>
<dtclass="field-even">Результат</dt>
<ddclass="field-even"><p>File content in string base64 format (use base64.b64decode to decode data). Return None if file is not exist</p>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="pyOpenRPA.Agent.__Agent__.OSFileMTimeGet">
<codeclass="sig-prename descclassname">pyOpenRPA.Agent.__Agent__.</code><codeclass="sig-name descname">OSFileMTimeGet</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inFilePathStr</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ float<aclass="reference internal"href="../_modules/pyOpenRPA/Agent/__Agent__.html#OSFileMTimeGet"><spanclass="viewcode-link">[исходный код]</span></a><aclass="headerlink"href="#pyOpenRPA.Agent.__Agent__.OSFileMTimeGet"title="Ссылка на это определение">¶</a></dt>
<dd><p>Read file modification time timestamp format (float)</p>
<dlclass="field-list simple">
<dtclass="field-odd">Параметры</dt>
<ddclass="field-odd"><p><strong>inFilePathStr</strong>– File path to read</p>
</dd>
<dtclass="field-even">Результат</dt>
<ddclass="field-even"><p>timestamp (float) Return None if file is not exist</p>
<codeclass="sig-prename descclassname">pyOpenRPA.Agent.__Agent__.</code><codeclass="sig-name descname">OSFileTextDataStrReceive</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inFilePathStr</span></em>, <emclass="sig-param"><spanclass="n">inEncodingStr</span><spanclass="o">=</span><spanclass="default_value">'utf-8'</span></em>, <emclass="sig-param"><spanclass="n">inGSettings</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/pyOpenRPA/Agent/__Agent__.html#OSFileTextDataStrReceive"><spanclass="viewcode-link">[исходный код]</span></a><aclass="headerlink"href="#pyOpenRPA.Agent.__Agent__.OSFileTextDataStrReceive"title="Ссылка на это определение">¶</a></dt>
<dd><p>Read text file in the agent GUI session</p>
<codeclass="sig-prename descclassname">pyOpenRPA.Agent.__Agent__.</code><codeclass="sig-name descname">ProcessWOExeUpperUserListGet</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/pyOpenRPA/Agent/__Agent__.html#ProcessWOExeUpperUserListGet"><spanclass="viewcode-link">[исходный код]</span></a><aclass="headerlink"href="#pyOpenRPA.Agent.__Agent__.ProcessWOExeUpperUserListGet"title="Ссылка на это определение">¶</a></dt>
<dd><p>Return the process list only for the current user (where Agent is running) without .EXE in upper case. Can use in ActivityItem from Orchestrator to Agent</p>
<ahref="../Tools/02_Defs.html"class="btn btn-neutral float-right"title="2. Функции StopSafe"accesskey="n"rel="next">Следующая <spanclass="fa fa-arrow-circle-right"aria-hidden="true"></span></a>
<ahref="../Orchestrator/05_UAC.html"class="btn btn-neutral float-left"title="5. Права доступа пользователей UAC"accesskey="p"rel="prev"><spanclass="fa fa-arrow-circle-left"aria-hidden="true"></span> Предыдущая</a>