Sort of off topic, but my preferred way of using passwords is

pw = open("~/.some_password").read()

or, if you prefer

with open(os.path.expanduser(os.path.join("~", ".some_password")) as pw
    pw =

which is always safe to include in distributed code.

Although plain text passwords in files in your home folder aren't great
practice, it's not an uncommon practice.  I've also dealt with having
to re-write a git history to remove passwords, that's something you
want to avoid.

Cheers -Terry

You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to