[ftputil] SECURE FTP
Stefan Schwarzer
sschwarzer@sschwarzer.net
Fri, 9 Apr 2004 17:49:07 +0200
Dear Valeriy
On Wed, 2004-04-07 14:43:21 -0400, Valeriy Pogrebitskiy wrote:
> I am primary Python developer within our group. Currently, I am
> working on recent request to switch some of the processes we are
> using from "regular" FTP to secure-ftp server. I have "ftp.py"
> module - which is a good wrapper module for generic Python
> "ftplib.py". But, it is not going to work over secure-ftp
> connection. So, I was searching if there are any other Python
> modules that allow working with secure ftp, and found your
> "ftputil.py". From its description, I know that this module is not
> going to help me either.
>
> But, may be some of you know if there is another module that allows
> secure ftp transactions. Please let me know.
A Google query for
"secure ftp" python
turns up several hits which might be interesting.
Specially, M2Crypto, http://sandbox.rulemaker.net/ngps/m2/ , might be
what you need. As it seems, M2Crypto contains a secure FTP class which
inherits from ftplib.FTP. See
http://sandbox.rulemaker.net/ngps/Dist/api/public/M2Crypto.ftpslib-module.html
Note that you can pass any session class into ftputil's FTPHost class
(see "session_factory" and the Tips/FAQ section in the documentation)
if that session class is compatible with the ftplib.FTP class of
Python's standard library. If the ftpslib.FTP_TLS class in M2Crypto
does only almost what you need, you could derive from it and use that
as the session factory in ftputil.
Hope that helps. :)
Stefan