ANN: pysendfile released

12 views
Skip to first unread message

Giampaolo Rodolà

unread,
Jan 12, 2012, 5:16:03 PM1/12/12
to pyft...@googlegroups.com
I released it just now:
http://code.google.com/p/pysendfile/

I think this is worth mentioning as starting from the next pyftpdlib version (we're almost there) we're going to make use of this as an (optional) third party dependency (see bug tracker issue: http://code.google.com/p/pyftpdlib/issues/detail?id=152).

Use of pysendfile will make uploads (RETR, hence from server to client) about 3x faster, which is very close to the transfer rates reached by proftpd and vsftpd servers (which are written in C).
As such, this goes to all those people avoiding python because "it's slow". ;-)

--- Giampaolo

Thomas Weholt

unread,
Jan 19, 2012, 9:32:06 AM1/19/12
to pyft...@googlegroups.com
How can I use this with pyftpdlib? Or can I? If so, can you give me an example?

Anyway, thanks!! :-)

Regards,
Thomas Weholt

> --
> You received this message because you are subscribed to the "Python FTP
> server library" project group:
> http://code.google.com/p/pyftpdlib/
> To post to this group, send email to pyft...@googlegroups.com
> To unsubscribe from this group, send email to
> pyftpdlib-...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/pyftpdlib

--
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org

Giampaolo Rodolà

unread,
Jan 19, 2012, 10:06:08 AM1/19/12
to pyft...@googlegroups.com

Hi Thomas.
As for now (until 0.7.0 will be released) you can use latest SVN revision:

$ svn checkout http://pyftpdlib.googlecode.com/svn/trunk/ pyftpdlib


To enable sendfile(2) usage you must install pysendfile module first:

$ easy_install pysendfile

pyftpdlib will detect its presence (import sendfile) and automatically
use it for uploads (RETR) if available.
Whether using sendfile(2) is governed by
pyftpdlib.ftpserver.FTPHandler.use_sendfile attribute (a bool).
The bool defaults to False if pysendfile module is not installed.

--- Giampaolo

Reply all
Reply to author
Forward
0 new messages