Konstantin
Konstantin

Reputation: 3159

Python package that implements TFTP, FTP, SFTP servers

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?

Upvotes: 2

Views: 6052

Answers (1)

bosnjak
bosnjak

Reputation: 8624

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.

Upvotes: 5

Related Questions