title: import my database connection with python
body: <p>is It possible to create a single py file with my database credentials for connecting to MySQL database Ex.</p>
  
  <pre><code>con = [ [ip='0.0.0.0'],[username = 'root'],
  [password='pswd'],[database='test']]
  </code></pre>
  
  <p>And then use this file on another file.</p>
  
  <p>like </p>
  
  <pre><code>import dbcon.py*
  
  dbcon.sort
  
  con = mdb.connect(info from py file goes here.)
  </code></pre>