title: What is best practice to create a small database in python?
body: <p>If I want to create a small database in Python, what would be the best practice to do it?</p>
  
  <p>For instance, if I want to store output from Cisco's command "sh ip route" in a database, </p>
  
  <pre><code>O       1.1.1.1 [110/2] via 10.0.0.1, 00:00:23, FastEthernet0/0
  </code></pre>
  
  <p>stores these values:</p>
  
  <p>1.1.1.1 —> next hop, outgoing interface, source (like O, C, S)</p>
  
  <ol>
  <li>Using postgreSQL, mySQL</li>
  <li>A nested dictionary something like this {'1.1.1.1':{<em>next hop</em>: {<em>outgoing interface</em>: <em>source</em>}}</li>
  <li>a dictionary with a list as a value
  {'1.1.1.1':[<em>next hop, outgoing interface, source</em>]}</li>
  <li>Any other option?</li>
  </ol>
  
  <p>I feel that SQL would be the best solution but if not SQL, what is another option?</p>