Home
last modified time | relevance | path

Searched refs:netrc (Results 1 – 25 of 74) sorted by relevance

123

/external/python/cpython3/Doc/library/
Dnetrc.rst2 :mod:`netrc` --- netrc file processing
5 .. module:: netrc
6 :synopsis: Loading of .netrc files.
11 **Source code:** :source:`Lib/netrc.py`
15 The :class:`~netrc.netrc` class parses and encapsulates the netrc file format used by
19 .. class:: netrc([file])
21 A :class:`~netrc.netrc` instance or subclass instance encapsulates data from a netrc
23 no argument is given, the file :file:`.netrc` in the user's home directory --
29 the :file:`.netrc` file will raise a :exc:`NetrcParseError` if the file
33 programs that use :file:`.netrc`.
[all …]
/external/python/cpython2/Doc/library/
Dnetrc.rst2 :mod:`netrc` --- netrc file processing
5 .. module:: netrc
6 :synopsis: Loading of .netrc files.
13 **Source code:** :source:`Lib/netrc.py`
17 The :class:`~netrc.netrc` class parses and encapsulates the netrc file format used by
21 .. class:: netrc([file])
23 A :class:`~netrc.netrc` instance or subclass instance encapsulates data from a netrc
25 no argument is given, the file :file:`.netrc` in the user's home directory will
29 the :file:`.netrc` file will raise a :exc:`NetrcParseError` if the file
33 programs that use :file:`.netrc`.
[all …]
/external/curl/docs/cmdline-opts/
Dnetrc-file.d3 Long: netrc-file
4 Help: Specify FILE for netrc
7 Mutexed: netrc
9 Example: --netrc-file netrc $URL
10 See-also: netrc user config
13 This option is similar to --netrc, except that you provide the path (absolute
14 or relative) to the netrc file that curl should use. You can only specify one
15 netrc file per invocation.
17 It will abide by --netrc-optional if specified.
Dnetrc-optional.d3 Long: netrc-optional
4 Help: Use either .netrc or URL
5 Mutexed: netrc
6 See-also: netrc-file
8 Example: --netrc-optional $URL
12 Similar to --netrc, but this option makes the .netrc usage **optional**
13 and not mandatory as the --netrc option does.
Dnetrc.d3 Long: netrc
5 Help: Must read .netrc for user name and password
7 Example: --netrc $URL
9 See-also: netrc-file config user
10 Mutexed: netrc-file netrc-optional
13 Makes curl scan the *.netrc* (*_netrc* on Windows) file in the user's home
/external/python/cpython3/Lib/test/
Dtest_netrc.py1 import netrc, os, unittest, sys, tempfile, textwrap
17 return netrc.netrc(temp_filename)
122 nrc = netrc.netrc()
126 self.assertRaises(netrc.NetrcParseError, netrc.netrc)
132 self.assertRaises(FileNotFoundError, netrc.netrc)
135 self.assertRaises(FileNotFoundError, netrc.netrc,
157 nrc = netrc.netrc()
/external/curl/tests/data/
Dtest3817 netrc
38 # using the netrc is mandatory.
41 netrc-optional lets URL creds override netrc
45 --netrc-optional --netrc-file log/netrc%TESTNUMBER ftp://mary:drfrank@%HOSTIP:%FTPPORT/
47 <file name="log/netrc%TESTNUMBER" >
Dtest6805 netrc
23 netrc with quoted password but missing end quote
26 --netrc --netrc-file log/netrc%TESTNUMBER http://user1@http.example/
28 <file name="log/netrc%TESTNUMBER" >
Dtest6845 netrc
30 netrc with no login
33 --netrc-optional --netrc-file log/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
35 <file name="log/netrc%TESTNUMBER" >
Dtest6855 netrc
30 netrc with no login - provided user
33 --netrc-optional --netrc-file log/netrc%TESTNUMBER http://user@%HOSTIP:%HTTPPORT/
35 <file name="log/netrc%TESTNUMBER" >
Dtest4946 netrc
25 skip 'macdef' when parsing netrc
28 --netrc --netrc-file log/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
30 <file name="log/netrc%TESTNUMBER" >
Dtest6835 netrc
30 netrc with multiple logins - pick second
33 --netrc-optional --netrc-file log/netrc%TESTNUMBER http://user2@%HOSTIP:%HTTPPORT/
35 <file name="log/netrc%TESTNUMBER" >
Dtest6825 netrc
30 netrc with multiple logins - pick first
33 --netrc-optional --netrc-file log/netrc%TESTNUMBER http://user1@%HOSTIP:%HTTPPORT/
35 <file name="log/netrc%TESTNUMBER" >
Dtest1347 netrc
37 FTP (optional .netrc; programmatic user/passwd) dir list PASV
40 # -u overrides netrc which overrides the URL
42 --netrc-optional --netrc-file log/netrc%TESTNUMBER -u romulus:rhemus ftp://mary:mark@%HOSTIP:%FTPPO…
44 <file name="log/netrc%TESTNUMBER" >
Dtest6795 netrc
34 netrc with quoted password
37 --netrc-optional --netrc-file log/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
39 <file name="log/netrc%TESTNUMBER" >
Dtest3807 netrc
37 pick netrc password based on user name in URL
41 --netrc --netrc-file log/netrc%TESTNUMBER ftp://mary@%HOSTIP:%FTPPORT/
43 <file name="log/netrc%TESTNUMBER" >
Dtest1317 netrc
38 FTP (optional .netrc; user/no pass) dir list PASV
41 --netrc-optional --netrc-file log/netrc%TESTNUMBER ftp://user2@%HOSTIP:%FTPPORT/
43 <file name="log/netrc%TESTNUMBER" >
Dtest1327 netrc
37 FTP (optional .netrc; user/passwd supplied) dir list PASV
40 --netrc-optional --netrc-file log/netrc%TESTNUMBER ftp://mary:mark@%HOSTIP:%FTPPORT/
42 <file name="log/netrc%TESTNUMBER" >
Dtest20397 netrc
37 FTP (optional .netrc with 'default' override; no user/pass) dir list PASV
40 --netrc-optional --netrc-file log/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/
42 <file name="log/netrc%TESTNUMBER" >
Dtest1307 netrc
37 FTP (optional .netrc; no user/pass) dir list PASV
40 --netrc-optional --netrc-file log/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/
42 <file name="log/netrc%TESTNUMBER" >
Dtest2579 netrc
71 HTTP Location: following with --netrc-optional
74 …ite.com/want/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT --netrc-optional --netrc-file log/netrc%TE…
79 # netrc auth for two out of three sites:
80 <file name="log/netrc%TESTNUMBER">
Dtest1337 netrc
37 FTP compulsory .netrc; ignore passwd in URL
40 -n --netrc-file log/netrc%TESTNUMBER ftp://mary:mark@%HOSTIP:%FTPPORT/
42 <file name="log/netrc%TESTNUMBER" >
Dtest13045 netrc
19 netrc parsing unit tests
21 <file name="log/netrc%TESTNUMBER">
Dtest4955 netrc
35 user+password in URL with optional netrc
40 http://foo%40bar:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER --netrc-optional
/external/python/cpython2/Lib/test/
Dtest_netrc.py1 import netrc, os, unittest, sys, textwrap
17 return netrc.netrc(temp_filename)
124 nrc = netrc.netrc()
128 self.assertRaises(netrc.NetrcParseError, netrc.netrc)

123