How to hide personal data in Python script
<p>I need to push <code>Python</code> script to <code>Git</code> repo. Script contains variables with personal data like <code>USER_NAME = "some_name"</code> and <code>USER_PASS = "some_password"</code>. This data could be accessible for other users. I want to hide this data.</p>

<p>I found following approach: </p>

<ul>
<li>create separate <code>data.py</code> module with <code>USER_NAME = "some_name"</code> and <code>USER_PASS = "some_password"</code></li>
<li>import it once to generate compiled version- <code>data.pyc</code></li>
<li><p>change main script source: variables should be accessible like </p>

<p><code>import data</code></p>

<p><code>username = data.USER_NAME</code></p>

<p><code>password = data.USER_PASS</code>  </p></li>
<li>remove <code>data.py</code>and push <code>data.pyc</code> to repo</li>
</ul>

<p>This was promising, but actually data in <code>data.pyc</code> appears like <code>???some_namet???some_passwords???</code> and still could be recognized as username and password. </p>

<p>So what is the best practices to hide data in <code>Python</code> script?</p>