开发者

Python 3.x and SFTP

开发者 https://www.devze.com 2023-01-12 11:29 出处:网络
I know that the Paramiko api exists for Python 2.x.Is there an emerging method for interacting with a remote server using SFTP functions from within a Python 3.1 script?Extensive searching of the para

I know that the Paramiko api exists for Python 2.x. Is there an emerging method for interacting with a remote server using SFTP functions from within a Python 3.1 script? Extensive searching of the paramiko site uncovered no evidence of 3.x support. If not, I will either use Python-2.x with Paramiko for my remote access, or maybe just use subprocess.popen() or sim开发者_C百科ilar with Python 3.


I had a similar issue with not being able to install paramiko for some reason (don't remember now), and implemented a wrapper for putty's SFTP implmentation, it's in python 2.x, but you may be able to get some reference value from it.

http://psftplib.googlecode.com/svn/trunk/psftplib.py

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号