title: Python string interpretation and parse
body: <p>I'm trying to learn how to interpret and parse a string in python. I want to make a "string command" (don't know if is the right expression). But to explain better I will take an example: I want a command like in SQL, where there is a string with keywords that will make a process do what is asking for. Like this: <code>cursor.execute("UPDATE Cars SET Price=? WHERE Id=?", (50000, 1))</code>. But I want to create a format for my project like this (it is not necessary to be with sql): <code>mydef("U={Cars[Price=50000], Id=1}")</code></p>
  
  <pre><code>Syntax table: &lt;command&gt;={&lt;table&gt;[&lt;value name&gt;=&lt;value (int/str/float/bool)&gt;], &lt;id&gt;=&lt;value to id&gt;}
  Where command is: U=update, C=create, S=select, I=insert, D=delete
  </code></pre>
  
  <p>Well, I really want to learn how can I do it in Python. If is possible.</p>