title: Load mysqlsh module in python
body: <p>I am writing the code in python to automate the innodb cluster provisioning. Based on this example
  <a href="https://dev.mysql.com/doc/dev/mysqlsh-api-python/8.0/group__mysql.html" rel="nofollow noreferrer">https://dev.mysql.com/doc/dev/mysqlsh-api-python/8.0/group__mysql.html</a></p>
  <pre><code>mysql-py&gt; from mysqlsh import mysql
   
  // Then you can use the module functions and properties
  // for example to create a session
  mysql-py&gt; mySession = mysql.get_classic_session('admin@localhost')
  </code></pre>
  <p>I was curious if there is a way to load mysqlsh module outside mysql shell.</p>
  <p>For example</p>
  <pre><code>[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
  Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
  &gt;&gt;&gt; from mysqlsh import mysql
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'mysqlsh'
  </code></pre>