gpt4 book ai didi

实现TFTP、FTP、SFTP服务器的Python包

转载 作者:太空宇宙 更新时间:2023-11-04 01:18:14 24 4
gpt4 key购买 nike

我正在使用 tftpy在我的 Python 程序中创建 TFTP 服务器,效果惊人。但是,我需要其他类型的服务器:TFTP、FTP、SFTP。我可以使用什么包来支持所有这些?

最佳答案

每个协议(protocol)都需要自己的实现,例如:

但是,如果您坚持用一个包来统治它们,并且不介意弄脏您的手,PycURL适合你:

PycURL is a Python interface to libcurl. PycURL can be used to fetchobjects identified by a URL from a Python program, similar to theurllib Python module. PycURL is mature, very fast, and supports a lotof features.

libcurl is a free and easy-to-use client-side URL transfer library,supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT,LDAP, LDAPS, FILE, IMAP, SMTP, POP3 and RTSP. libcurl supports SSLcertificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form basedupload, proxies, cookies, user+password authentication (Basic, Digest,NTLM, Negotiate, Kerberos4), file transfer resume, http proxytunneling and more!

有关 PycURL 的代码示例,请查看 herehere .

关于实现TFTP、FTP、SFTP服务器的Python包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23005565/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com