Question

I'm using tftpy to create TFTP server in my Python program and it works amazing. However, I need to have other flavors of servers: TFTP, FTP, SFTP. What package may I use that supports all of them?

Was it helpful?

Solution

Every protocol needs its own implementation, for example:

However, if you insist on a single package to rule them all, and don't mind getting your hands a bit dirty, PycURL is for you:

PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of 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 SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos4), file transfer resume, http proxy tunneling and more!

For code examples with PycURL, check here and here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top