Repository URL to install this package:
|
Version:
2.10.3 ▾
|
a5 docutils.nodesdocument)}( rawsource children]h section)}(hhh](h title)}(h``ProxyCommand`` supporth](h literal)}(h``ProxyCommand``h]h TextProxyCommand
}(parenth _documenthsourceNlineNuba
attributes}(ids]classes]names]dupnames]backrefs]utagnamehh hubh support
}(h hh!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hh hh!hh"9/home/jforcier/Code/oss/paramiko/sites/docs/api/proxy.rsth#Kubsphinx.addnodesindex)}(hhh]h$}(h&]h(]h*]h,]h.]entries](singleparamiko.proxy (module)module-paramiko.proxyhNtauh0h=h hh!hh"[/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommandh#Kubh>)}(hhh]h$}(h&]h(]h*]h,]h.]entries](hJ&ProxyCommand (class in paramiko.proxy)paramiko.proxy.ProxyCommandhNtauh0h=h hh!hh"Nh#Nubh<desc)}(hhh](h<desc_signature)}(hProxyCommand(command_line)h](h<desc_annotation)}(hclass h]hclass
}(h hjh!hh"Nh#Nubah$}(h&]h(]h*]h,]h.] xml:spacepreserveuh0hhh hdh!hh"[/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommandh#Nubh<desc_addname)}(hparamiko.proxy.h]hparamiko.proxy.
}(h h}h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0h{h hdh!hh"hzh#Nubh< desc_name)}(hProxyCommandh]hProxyCommand
}(h hh!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0hh hdh!hh"hzh#Nubh<desc_parameterlist)}(hcommand_lineh]h<desc_parameter)}(hcommand_lineh]hcommand_line
}(h h£h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0h¡h hubah$}(h&]h(]h*]h,]h.]hxhyuh0hh hdh!hh"hzh#Nubeh$}(h&]h[ah(]h*]h[ah,]h.]firstmoduleparamiko.proxyclasshfullnamehuh0hbh h_h!hh"hzh#Nubh<desc_content)}(hhh](h paragraph)}(h8Wraps a subprocess running ProxyCommand-driven programs.h]h8Wraps a subprocess running ProxyCommand-driven programs.
}(h hÉh!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0hÇh"[/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommandh#Kh hÄh!hubhÈ)}(hX This class implements a the socket-like interface needed by the
`.Transport` and `.Packetizer` classes. Using this class instead of a
regular socket makes it possible to talk with a Popen'd command that will
proxy traffic between the client and a server hosted in another machine.h](h@This class implements a the socket-like interface needed by the
}(h hØh!hh"Nh#Nubh<pending_xref)}(h`.Transport`h]h)}(hhäh]h Transport
}(h hæh!hh"Nh#Nubah$}(h&]h(](xrefpypy-objeh*]h,]h.]uh0hh hâubah$}(h&]h(]h*]h,]h.]reftypeobj refdomainhñrefexplicit py:moduleh¿py:classhrefspecific reftarget Transportrefdoc api/proxyrefwarnuh0hàh"Nh#Nh hØubh and
}(h hØh!hh"Nh#Nubhá)}(h
`.Packetizer`h]h)}(hj h]h
Packetizer
}(h j h!hh"Nh#Nubah$}(h&]h(](hðpypy-objeh*]h,]h.]uh0hh j ubah$}(h&]h(]h*]h,]h.]reftypeobj refdomainj refexplicitj h¿j hj j
Packetizerj j j uh0hàh"Nh#Nh hØubh¼ classes. Using this class instead of a
regular socket makes it possible to talk with a Popen’d command that will
proxy traffic between the client and a server hosted in another machine.
}(h hØh!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÇh"h×h#Kh hÄh!hubhÈ)}(h8Instances of this class may be used as context managers.h]h8Instances of this class may be used as context managers.
}(h j4 h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0hÇh"h×h#Kh hÄh!hubh>)}(hhh]h$}(h&]h(]h*]h,]h.]entries](hJ/__init__() (paramiko.proxy.ProxyCommand method)$paramiko.proxy.ProxyCommand.__init__hNtauh0h=h hÄh!hh"Nh#Nubh^)}(hhh](hc)}(h#ProxyCommand.__init__(command_line)h](h)}(h__init__h]h__init__
}(h jW h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0hh jS h!hh"d/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommand.__init__h#Nubh)}(hcommand_lineh]h¢)}(hcommand_lineh]hcommand_line
}(h jj h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0h¡h jf ubah$}(h&]h(]h*]h,]h.]hxhyuh0hh jS h!hh"je h#Nubeh$}(h&]jN ah(]h*]jN ah,]h.]h½h¾paramiko.proxyhÀhhLProxyCommand.__init__uh0hbh jP h!hh"je h#NubhÃ)}(hhh](hÈ)}(h~Create a new CommandProxy instance. The instance created by this
class can be passed as an argument to the `.Transport` class.h](hkCreate a new CommandProxy instance. The instance created by this
class can be passed as an argument to the
}(h j h!hh"Nh#Nubhá)}(h`.Transport`h]h)}(hj h]h Transport
}(h j h!hh"Nh#Nubah$}(h&]h(](hðpypy-objeh*]h,]h.]uh0hh j ubah$}(h&]h(]h*]h,]h.]reftypeobj refdomainj refexplicitj j j hj j Transportj j j uh0hàh"Nh#Nh j ubh class.
}(h j h!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÇh"d/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommand.__init__h#Kh j h!hubh
field_list)}(hhh]h field)}(hhh](h
field_name)}(h
Parametersh]h
Parameters
}(h jÆ h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0jÄ h jÁ h"je h#K ubh
field_body)}(hhh]hÈ)}(hPcommand_line (str) -- the command that should be executed and used as the proxy.h](h<literal_strong)}(hcommand_lineh]hcommand_line
}(h jß h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]j uh0jÝ h jÙ ubh (
}(h jÙ h!hh"Nh#Nubhá)}(hhh]h<literal_emphasis)}(hstrh]hstr
}(h jö h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0jô h jñ ubah$}(h&]h(]h*]h,]h.] refdomainpyrefexplicitreftypeobj reftargetjø j uh0hàh jÙ ubh)
}(h jÙ h!hh"Nh#Nubh –
}(h jÙ h!hh"Nh#Nubh:the command that should be executed and used as the proxy.
}(h jÙ h!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÇh jÖ ubah$}(h&]h(]h*]h,]h.]uh0jÔ h jÁ ubeh$}(h&]h(]h*]h,]h.]uh0j¿ h j¼ ubah$}(h&]h(]h*]h,]h.]uh0jº h j h!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÂh jP h!hh"je h#Nubeh$}(h&]h(]h*]h,]h.]domainj objtypemethoddesctypejB noindexuh0h]h!hh hÄh"Nh#Nubh>)}(hhh]h$}(h&]h(]h*]h,]h.]entries](hJ+recv() (paramiko.proxy.ProxyCommand method) paramiko.proxy.ProxyCommand.recvhNtauh0h=h hÄh!hh"Nh#Nubh^)}(hhh](hc)}(hProxyCommand.recv(size)h](h)}(hrecvh]hrecv
}(h jZ h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0hh jV h!hh"`/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommand.recvh#Nubh)}(hsizeh]h¢)}(hsizeh]hsize
}(h jm h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0h¡h ji ubah$}(h&]h(]h*]h,]h.]hxhyuh0hh jV h!hh"jh h#Nubeh$}(h&]jQ ah(]h*]jQ ah,]h.]h½h¾paramiko.proxyhÀhhLProxyCommand.recvuh0hbh jS h!hh"jh h#NubhÃ)}(hhh](hÈ)}(h4Read from the standard output of the forked program.h]h4Read from the standard output of the forked program.
}(h j h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0hÇh"`/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommand.recvh#Kh j h!hubj» )}(hhh](jÀ )}(hhh](jÅ )}(h
Parametersh]h
Parameters
}(h j¡ h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0jÄ h j h"jh h#K ubjÕ )}(hhh]hÈ)}(h+size (int) -- how many chars should be readh](jÞ )}(hsizeh]hsize
}(h j¶ h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]j uh0jÝ h j² ubh (
}(h j² h!hh"Nh#Nubhá)}(hhh]jõ )}(hinth]hint
}(h jË h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0jô h jÈ ubah$}(h&]h(]h*]h,]h.] refdomainpyrefexplicitreftypej reftargetjÍ j uh0hàh j² ubh)
}(h j² h!hh"Nh#Nubh –
}(h j² h!hh"Nh#Nubhhow many chars should be read
}(h j² h!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÇh j¯ ubah$}(h&]h(]h*]h,]h.]uh0jÔ h j ubeh$}(h&]h(]h*]h,]h.]uh0j¿ h j ubjÀ )}(hhh](jÅ )}(hReturnsh]hReturns
}(h j h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0jÄ h j h"jh h#K ubjÕ )}(hhh]hÈ)}(h=the string of bytes read, which may be shorter than requestedh]h=the string of bytes read, which may be shorter than requested
}(h j h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0hÇh j ubah$}(h&]h(]h*]h,]h.]uh0jÔ h j ubeh$}(h&]h(]h*]h,]h.]uh0j¿ h j ubeh$}(h&]h(]h*]h,]h.]uh0jº h j h!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÂh jS h!hh"jh h#Nubeh$}(h&]h(]h*]h,]h.]j@ jà jA methodjC jB jD uh0h]h!hh hÄh"Nh#Nubh>)}(hhh]h$}(h&]h(]h*]h,]h.]entries](hJ+send() (paramiko.proxy.ProxyCommand method) paramiko.proxy.ProxyCommand.sendhNtauh0h=h hÄh!hh"Nh#Nubh^)}(hhh](hc)}(hProxyCommand.send(content)h](h)}(hsendh]hsend
}(h jX h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0hh jT h!hh"`/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommand.sendh#Nubh)}(hcontenth]h¢)}(hcontenth]hcontent
}(h jk h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]hxhyuh0h¡h jg ubah$}(h&]h(]h*]h,]h.]hxhyuh0hh jT h!hh"jf h#Nubeh$}(h&]jO ah(]h*]jO ah,]h.]h½h¾paramiko.proxyhÀhhLProxyCommand.senduh0hbh jQ h!hh"jf h#NubhÃ)}(hhh](hÈ)}(h[Write the content received from the SSH client to the standard
input of the forked command.h]h[Write the content received from the SSH client to the standard
input of the forked command.
}(h j h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0hÇh"`/home/jforcier/Code/oss/paramiko/paramiko/proxy.py:docstring of paramiko.proxy.ProxyCommand.sendh#Kh j h!hubj» )}(hhh]jÀ )}(hhh](jÅ )}(h
Parametersh]h
Parameters
}(h j h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0jÄ h j h"jf h#K ubjÕ )}(hhh]hÈ)}(h8content (str) -- string to be sent to the forked commandh](jÞ )}(hcontenth]hcontent
}(h j´ h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]j uh0jÝ h j° ubh (
}(h j° h!hh"Nh#Nubhá)}(hhh]jõ )}(hstrh]hstr
}(h jÉ h!hh"Nh#Nubah$}(h&]h(]h*]h,]h.]uh0jô h jÆ ubah$}(h&]h(]h*]h,]h.] refdomainpyrefexplicitreftypej reftargetjË j uh0hàh j° ubh)
}(h j° h!hh"Nh#Nubh –
}(h j° h!hh"Nh#Nubh'string to be sent to the forked command
}(h j° h!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÇh j ubah$}(h&]h(]h*]h,]h.]uh0jÔ h j ubeh$}(h&]h(]h*]h,]h.]uh0j¿ h j ubah$}(h&]h(]h*]h,]h.]uh0jº h j h!hh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÂh jQ h!hh"jf h#Nubeh$}(h&]h(]h*]h,]h.]j@ jÞ jA methodjC j jD uh0h]h!hh hÄh"Nh#Nubeh$}(h&]h(]h*]h,]h.]uh0hÂh h_h!hh"hzh#Nubeh$}(h&]h(]h*]h,]h.]j@ pyjA classjC j jD uh0h]h!hh hh"Nh#Nubeh$}(h&](module-paramiko.proxyproxycommand-supporteh(]h*]proxycommand supportah,]h.]uh0h h hh!hh"h;h#Kubah$}(h&]h(]h*]h,]h.]sourceh;uh0hcurrent_sourceNcurrent_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampNsource_linkN
source_urlN
toc_backlinksentryfootnote_backlinksK
sectnum_xformKstrip_commentsNstrip_elements_with_classesN
strip_classesNreport_levelK
halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjM error_encodingUTF-8error_encoding_error_handlerbackslashreplace
language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefix%
dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh;_destinationN
_config_files]file_insertion_enabledraw_enabledKline_length_limitM'pep_referencesNpep_base_url https://www.python.org/dev/peps/pep_file_url_templatepep-%04drfc_referencesNrfc_base_urlhttps://tools.ietf.org/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlongsmart_quotessmartquotes_localesNcharacter_level_inline_markupdoctitle_xform
docinfo_xformKsectsubtitle_xformembed_stylesheetcloak_email_addressesenvNgettext_compactubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j' j$ h[h[jN jN jQ jQ jO jO u nametypes}(j' h[jN jQ jO uh&}(j$ hj# h target)}(hhh]h$}(h&]j# ah(]h*]h,]h.]ismoduh0j h hh!hh"hNh#Kubh[hdjN jS jQ jV jO jT u
footnote_refs}
citation_refs}
autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK
id_countercollectionsCounter}
Rparse_messages]transform_messages]transformerNinclude_log]
decorationNh!hub.