title: Create a dict form a difficult string format python
body: <p>Given:</p>
  
  <pre><code>str_var = 'host = "s"port = "d"service_name = "a"pass = "b"user = "c"'
  </code></pre>
  
  <blockquote>
    <p>Rules to consider : between '""' will always be a simple string with no lenght limitations, the format will always be as described, not other modifications will appear.</p>
  </blockquote>
  
  <p>Is there a way to create a dict that has the value before '=' as a key and the key value to be the string that is after '=' ends at the second '"'?</p>
  
  <p>Example of result : </p>
  
  <pre><code>{'host': 's',
  'port' = 'd',
  'service_name ': 'a',
  'user': 'c'}
  </code></pre>