On 3/21/06, <b class="gmail_sendername">John Pote</b> &lt;<a href="mailto:johnpote@jptechnical.co.uk">johnpote@jptechnical.co.uk</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
API stability: FTPClient is stable, FTP and FTPFactory (server) is<br>unstable.</blockquote><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As it is the server that I am interested in the 'unstable' comment is<br>somewhat worrying. Any comments on this instability would be<br>appreciated. i.e. is it particular situations that cause problems or are<br>there general problems with the server that may occur doing simple
<br>things. <br></blockquote><div><br>First, note that it refers to *API* stability, not performance stability. The only thing &quot;unstable&quot; means in this context is that we reserve the right to change the interface of the FTP server in a way that could possibly break end-user code, although that's only if backwards compatibility is impossible. In practice, code written against an &quot;unstable&quot; Twisted interface doesn't often&nbsp; break outright upon upgrade; instead deprecated APIs will give you warnings when you continue to use them, and hopefully sufficiently describe the correct way to use the functionality.
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Also I do not want the uploaded file contents written directly to disk.<br>I want to pass it to another python app/object to decode it, format it
<br>and finally append it to a file on disk. Could the Twisted ftp server<br>allow such 'filtering'? The reason for doing this via ftp is the data<br>source client is a GPRS modem that has ftp built in (but not http). The
<br>alternative is to do my own thing directly via TCP. Comments invited.</blockquote><div><br>The FTP server framework definitely supports such things, although you have to go through a bit of boilerplate. You eventually end up implementing your own IConsumer to handle the data, which means you'll get chunks of data handed to you as it comes in and you can do what you want with it.
<br><br>Hope this helps. If you need any more detailed info feel free to post again.<br></div></div><br clear="all"><br>-- <br>Christopher Armstrong<br>International Man of Twistery<br><a href="http://radix.twistedmatrix.com/">
http://radix.twistedmatrix.com/</a><br><a href="http://twistedmatrix.com/">http://twistedmatrix.com/</a><br><a href="http://canonical.com/">http://canonical.com/</a><br>