Fix #22 (https://github.com/marekjm/diaspy/issues/22)
[diaspy.git] / logger.py
CommitLineData
e7abf853
MM
1#!/usr/bin/env python3
2
3"""Module used for obtaining (pod, username, password) tuple.
4
5Used by me when I want to debug in public places and not want to show
6my password.
7"""
8
9import getpass
10
11
12def getdata():
13 """Asks for data.
14 """
15 pod = input('Pod: ')
16 username = input('Username at \'{0}\': '.format(pod))
17 password = getpass.getpass('Password for {0}@{1}: '.format(username, pod))
18 return (pod, username, password)