| | 1 | ftputil 2.2 is now available from |
|---|
| | 2 | http://ftputil.sschwarzer.net/download . |
|---|
| | 3 | |
|---|
| | 4 | Changes since version 2.1 |
|---|
| | 5 | ------------------------- |
|---|
| | 6 | |
|---|
| | 7 | - Results of stat calls (also indirect calls, i. e. listdir, |
|---|
| | 8 | isdir/isfile/islink, exists, getmtime etc.) are now cached and |
|---|
| | 9 | reused. This results in remarkable speedups for many use cases. |
|---|
| | 10 | Thanks to Evan Prodromou for his permission to add his lrucache |
|---|
| | 11 | module under ftputil's license. |
|---|
| | 12 | |
|---|
| | 13 | - The current directory is also locally cached, resulting in further |
|---|
| | 14 | speedups. |
|---|
| | 15 | |
|---|
| | 16 | - It's now possible to write and plug in custom parsers for directory |
|---|
| | 17 | formats which ftputil doesn't support natively. |
|---|
| | 18 | |
|---|
| | 19 | - File-like objects generated via ``FTPHost.file`` now support the |
|---|
| | 20 | iterator protocol (for line in some_file: ...). |
|---|
| | 21 | |
|---|
| | 22 | - The documentation has been updated accordingly. Read it under |
|---|
| | 23 | http://ftputil.sschwarzer.net/trac/wiki/Documentation . |
|---|
| | 24 | |
|---|
| | 25 | Possible incompatibilities: |
|---|
| | 26 | |
|---|
| | 27 | - This release requires at least Python 2.3. (Previous releases |
|---|
| | 28 | worked with Python versions from 2.1 up.) |
|---|
| | 29 | |
|---|
| | 30 | - The method ``FTPHost.set_directory_format`` has been removed, |
|---|
| | 31 | since the directory format (Unix or MS) is set automatically. (The |
|---|
| | 32 | new method ``set_parser`` is a different animal since it takes |
|---|
| | 33 | a parser object to parse "foreign" formats, not a string.) |
|---|
| | 34 | |
|---|
| | 35 | What is ftputil? |
|---|
| | 36 | ---------------- |
|---|
| | 37 | |
|---|
| | 38 | ftputil is a high-level FTP client library for the Python programming |
|---|
| | 39 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| | 40 | servers, that is, it can generate file-like objects for remote files. |
|---|
| | 41 | The library supports many functions similar to those in the os, |
|---|
| | 42 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| | 43 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| | 44 | in different timezones. |
|---|
| | 45 | |
|---|
| | 46 | License |
|---|
| | 47 | ------- |
|---|
| | 48 | |
|---|
| | 49 | ftputil 2.2 is Open Source software, released under the revised BSD |
|---|
| | 50 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| | 51 | |
|---|
| | 52 | Stefan |
|---|
| | 53 | |
|---|
| | 54 | ---------------------------------------------------------------------- |
|---|