<spanid="cpl-utils-credential-manager-module"></span><h2>cpl.utils.credential_manager module<aclass="headerlink"href="#module-cpl.utils.credential_manager"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl.utils.credential_manager.</span></code><codeclass="sig-name descname"><spanclass="pre">CredentialManager</span></code><aclass="headerlink"href="#cpl.utils.credential_manager.CredentialManager"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">build_string</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">credentials</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.utils.credential_manager.CredentialManager.build_string"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">decrypt</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.credential_manager.CredentialManager.decrypt"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">encrypt</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.credential_manager.CredentialManager.encrypt"title="Permalink to this definition">¶</a></dt>
<dd><p>Encode with base64
:param string:
:return:</p>
</dd></dl>
</dd></dl>
</div>
<divclass="section"id="module-cpl.utils.pip">
<spanid="cpl-utils-pip-module"></span><h2>cpl.utils.pip module<aclass="headerlink"href="#module-cpl.utils.pip"title="Permalink to this headline">¶</a></h2>
<dlclass="py class">
<dtid="cpl.utils.pip.Pip">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl.utils.pip.</span></code><codeclass="sig-name descname"><spanclass="pre">Pip</span></code><aclass="headerlink"href="#cpl.utils.pip.Pip"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><codeclass="sig-name descname"><spanclass="pre">get_executable</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.pip.Pip.get_executable"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py method">
<dtid="cpl.utils.pip.Pip.get_outdated">
<emclass="property"><spanclass="pre">classmethod</span></em><codeclass="sig-name descname"><spanclass="pre">get_outdated</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">bytes</span><aclass="headerlink"href="#cpl.utils.pip.Pip.get_outdated"title="Permalink to this definition">¶</a></dt>
<dd><p>Gets table of outdated packages
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.pip.Pip.get_package">
<emclass="property"><spanclass="pre">classmethod</span></em><codeclass="sig-name descname"><spanclass="pre">get_package</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">package</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl.utils.pip.Pip.get_package"title="Permalink to this definition">¶</a></dt>
<dd><p>Gets given package py local pip list
:param package:
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.pip.Pip.install">
<emclass="property"><spanclass="pre">classmethod</span></em><codeclass="sig-name descname"><spanclass="pre">install</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">package</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="o"><spanclass="pre">*</span></span><spanclass="n"><spanclass="pre">args</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">source</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">stdout</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">stderr</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.utils.pip.Pip.install"title="Permalink to this definition">¶</a></dt>
<dd><p>Installs given package
:param package:
:param args:
:param source:
:param stdout:
:param stderr:
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.pip.Pip.reset_executable">
<emclass="property"><spanclass="pre">classmethod</span></em><codeclass="sig-name descname"><spanclass="pre">reset_executable</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.utils.pip.Pip.reset_executable"title="Permalink to this definition">¶</a></dt>
<dd><p>Resets the executable to system standard
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.pip.Pip.set_executable">
<emclass="property"><spanclass="pre">classmethod</span></em><codeclass="sig-name descname"><spanclass="pre">set_executable</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">executable</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.utils.pip.Pip.set_executable"title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the executable
:param executable:
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.pip.Pip.uninstall">
<emclass="property"><spanclass="pre">classmethod</span></em><codeclass="sig-name descname"><spanclass="pre">uninstall</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">package</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">stdout</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">stderr</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl.utils.pip.Pip.uninstall"title="Permalink to this definition">¶</a></dt>
<dd><p>Uninstalls given package
:param package:
:param stdout:
:param stderr:
:return:</p>
</dd></dl>
</dd></dl>
</div>
<divclass="section"id="module-cpl.utils.string">
<spanid="cpl-utils-string-module"></span><h2>cpl.utils.string module<aclass="headerlink"href="#module-cpl.utils.string"title="Permalink to this headline">¶</a></h2>
<dlclass="py class">
<dtid="cpl.utils.string.String">
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl.utils.string.</span></code><codeclass="sig-name descname"><spanclass="pre">String</span></code><aclass="headerlink"href="#cpl.utils.string.String"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">convert_to_camel_case</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">chars</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.string.String.convert_to_camel_case"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">convert_to_snake_case</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">chars</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.string.String.convert_to_snake_case"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts string to snake case
:param chars:
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.string.String.first_to_lower">
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">first_to_lower</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">chars</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.string.String.first_to_lower"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts first char to lower
:param chars:
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.string.String.first_to_upper">
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">first_to_upper</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">chars</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.string.String.first_to_upper"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts first char to upper
:param chars:
:return:</p>
</dd></dl>
<dlclass="py method">
<dtid="cpl.utils.string.String.random_string">
<emclass="property"><spanclass="pre">static</span></em><codeclass="sig-name descname"><spanclass="pre">random_string</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">chars</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">length</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#cpl.utils.string.String.random_string"title="Permalink to this definition">¶</a></dt>
<dd><p>Creates random string by given chars and length</p>