Skip to content

Instantly share code, notes, and snippets.

@rickcnagy
Last active December 19, 2015 13:29
Show Gist options
  • Save rickcnagy/5962372 to your computer and use it in GitHub Desktop.
Save rickcnagy/5962372 to your computer and use it in GitHub Desktop.
Create password file on disk to access web services from
# ADD PASSWORDS.P TO .gitignore IF USING GITHUB!!
import cPickle
def main():
all_info = {'USERNAME': raw_input("username: "),
'PASSWORD': raw_input("password: ")}
cPickle.dump(all_info, open("passwords.p", "w"))
print "Setup complete."
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment