title: Parse YAML with dots delimiter in keys
body: <p>We use YAML configuration for services scaling. Usually it goes like this:</p>
  <pre><code>service:
    scalingPolicy:
      capacity:
        min: 1
        max: 1 
  </code></pre>
  <p>So it's easy to open with basic PyYAML and parse as an dict to get <code>config['service']['scalingPolicy']['capacity']['min']</code> result as <code>1</code>. Problem is that some configs are built with dots delimiter e.g:</p>
  <pre><code>service.scalingPolicy.capacity:
    min: 1
    max: 1
  </code></pre>
  <p>Basic consumer of this configs is Java's Spring and somehow it's treated equally as the example above. But due to need to also parse these configs with Python - I get whole dot separated line as a <code>config['service.scalingPolicy.capacity']</code> key.</p>
  <p>The question is - how would I make python parse any kind of keys combinations (both <code>separated by dots</code> and separated by <code>tabulation and :</code>). I didn't find related parameters for Python YAML libs (I've checked standard PyYAML and <code>ruamel.yaml</code>) and handling any possible combination manually seems like a crazy idea. The only possible idea I have is to write my own parser but maybe there is something I'm missing so I won't have to reinvent the bicycle.</p>