Documentation/Source/eric6.DebugClients.Python.getpass.html

changeset 5141
bc64243b7672
parent 5126
d28b92dabc2b
parent 5140
01484c0afbc6
child 5144
1ab536d25072
equal deleted inserted replaced
5126:d28b92dabc2b 5141:bc64243b7672
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.DebugClients.Python.getpass</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.DebugClients.Python.getpass</h1>
23 <p>
24 Module implementing utilities to get a password and/or the current user name.
25 </p><p>
26 getpass(prompt) - prompt for a password, with echo turned off
27 getuser() - get the user name from the environment or password database
28 </p><p>
29 This module is a replacement for the one found in the Python distribution. It
30 is to provide a debugger compatible variant of the a.m. functions.
31 </p>
32 <h3>Global Attributes</h3>
33 <table>
34 <tr><td>__all__</td></tr><tr><td>default_getpass</td></tr><tr><td>unix_getpass</td></tr><tr><td>win_getpass</td></tr>
35 </table>
36 <h3>Classes</h3>
37 <table>
38 <tr><td>None</td></tr>
39 </table>
40 <h3>Functions</h3>
41 <table>
42 <tr>
43 <td><a href="#getpass">getpass</a></td>
44 <td>Function to prompt for a password, with echo turned off.</td>
45 </tr><tr>
46 <td><a href="#getuser">getuser</a></td>
47 <td>Function to get the username from the environment or password database.</td>
48 </tr>
49 </table>
50 <hr /><hr />
51 <a NAME="getpass" ID="getpass"></a>
52 <h2>getpass</h2>
53 <b>getpass</b>(<i>prompt='Password: '</i>)
54 <p>
55 Function to prompt for a password, with echo turned off.
56 </p><dl>
57 <dt><i>prompt</i></dt>
58 <dd>
59 Prompt to be shown to the user (string)
60 </dd>
61 </dl><dl>
62 <dt>Returns:</dt>
63 <dd>
64 Password entered by the user (string)
65 </dd>
66 </dl>
67 <div align="right"><a href="#top">Up</a></div>
68 <hr /><hr />
69 <a NAME="getuser" ID="getuser"></a>
70 <h2>getuser</h2>
71 <b>getuser</b>(<i></i>)
72 <p>
73 Function to get the username from the environment or password database.
74 </p><p>
75 First try various environment variables, then the password
76 database. This works on Windows as long as USERNAME is set.
77 </p><dl>
78 <dt>Returns:</dt>
79 <dd>
80 username (string)
81 </dd>
82 </dl>
83 <div align="right"><a href="#top">Up</a></div>
84 <hr />
85 </body></html>

eric ide

mercurial