| 1 | ftputil 2.4.2 is now available from |
|---|
| 2 | http://ftputil.sschwarzer.net/download . |
|---|
| 3 | |
|---|
| 4 | Changes since version 2.4.1 |
|---|
| 5 | --------------------------- |
|---|
| 6 | |
|---|
| 7 | - Some FTP servers seem to have problems using *any* directory |
|---|
| 8 | argument which contains slashes. The new default for FTP commands |
|---|
| 9 | now is to change into the directory before actually invoking the |
|---|
| 10 | command on a relative path (report and fix suggestion by Nicola |
|---|
| 11 | Murino). |
|---|
| 12 | |
|---|
| 13 | - Calling the method ``FTPHost.stat_cache.resize`` with an argument 0 |
|---|
| 14 | caused an exception. This has been fixed; a zero cache size now |
|---|
| 15 | of course doesn't cache anything but doesn't lead to a traceback |
|---|
| 16 | either. |
|---|
| 17 | |
|---|
| 18 | - The installation script ``setup.py`` didn't work with the ``--home`` |
|---|
| 19 | option because it still tried to install the documentation in a |
|---|
| 20 | system directory (report by Albrecht M�chulte). |
|---|
| 21 | |
|---|
| 22 | As a side effect, when using the *global* installation, the |
|---|
| 23 | documentation is no longer installed in the ftputil package |
|---|
| 24 | directory but in a subdirectory ``doc`` of a directory determined by |
|---|
| 25 | Distutils. For example, on my system (Ubuntu 9.04) the documentation |
|---|
| 26 | files are put into ``/usr/local/doc``. |
|---|
| 27 | |
|---|
| 28 | Upgrading is recommended. |
|---|
| 29 | |
|---|
| 30 | What is ftputil? |
|---|
| 31 | ---------------- |
|---|
| 32 | |
|---|
| 33 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 34 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 35 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 36 | The library supports many functions similar to those in the os, |
|---|
| 37 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 38 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 39 | in different timezones. |
|---|
| 40 | |
|---|
| 41 | Read the documentation at |
|---|
| 42 | http://ftputil.sschwarzer.net/documentation . |
|---|
| 43 | |
|---|
| 44 | License |
|---|
| 45 | ------- |
|---|
| 46 | |
|---|
| 47 | ftputil is Open Source software, released under the revised BSD |
|---|
| 48 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 49 | |
|---|
| 50 | Stefan |
|---|
| 51 | |
|---|
| 52 | ---------------------------------------------------------------------- |
|---|
| 53 | ftputil 2.4.1 is now available from |
|---|
| 54 | http://ftputil.sschwarzer.net/download . |
|---|
| 55 | |
|---|
| 56 | Changes since version 2.4 |
|---|
| 57 | ------------------------- |
|---|
| 58 | |
|---|
| 59 | Several bugs were fixed: |
|---|
| 60 | |
|---|
| 61 | - On Windows, some accesses to the stat cache caused it to become |
|---|
| 62 | inconsistent, which could also trigger exceptions (report and patch |
|---|
| 63 | by Peter Stirling). |
|---|
| 64 | |
|---|
| 65 | - In ftputil 2.4, the use of ``super`` in the exception base class |
|---|
| 66 | caused ftputil to fail on Python <2.5 (reported by Nicola Murino). |
|---|
| 67 | ftputil is supposed to run with Python 2.3+. |
|---|
| 68 | |
|---|
| 69 | - The conversion of 12-hour clock times to 24-hour clock in the MS |
|---|
| 70 | format parser was wrong for 12 AM and 12 PM. |
|---|
| 71 | |
|---|
| 72 | Upgrading is strongly recommended. |
|---|
| 73 | |
|---|
| 74 | What is ftputil? |
|---|
| 75 | ---------------- |
|---|
| 76 | |
|---|
| 77 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 78 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 79 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 80 | The library supports many functions similar to those in the os, |
|---|
| 81 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 82 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 83 | in different timezones. |
|---|
| 84 | |
|---|
| 85 | Read the documentation at |
|---|
| 86 | http://ftputil.sschwarzer.net/documentation . |
|---|
| 87 | |
|---|
| 88 | License |
|---|
| 89 | ------- |
|---|
| 90 | |
|---|
| 91 | ftputil is Open Source software, released under the revised BSD |
|---|
| 92 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 93 | |
|---|
| 94 | Stefan |
|---|
| 95 | |
|---|
| 96 | ---------------------------------------------------------------------- |
|---|
| 97 | ftputil 2.4 is now available from |
|---|
| 98 | http://ftputil.sschwarzer.net/download . |
|---|
| 99 | |
|---|
| 100 | Changes since version 2.3 |
|---|
| 101 | ------------------------- |
|---|
| 102 | |
|---|
| 103 | The ``FTPHost`` class got a new method ``chmod``, similar to |
|---|
| 104 | ``os.chmod``, to act on remote files. Thanks go to Tom Parker for |
|---|
| 105 | the review. |
|---|
| 106 | |
|---|
| 107 | There's a new exception ``CommandNotImplementedError``, derived from |
|---|
| 108 | ``PermanentError``, to denote commands not implemented by the FTP |
|---|
| 109 | server or disabled by its administrator. |
|---|
| 110 | |
|---|
| 111 | Using the ``xreadlines`` method of FTP file objects causes a warning |
|---|
| 112 | through Python's warnings framework. |
|---|
| 113 | |
|---|
| 114 | Upgrading is recommended. |
|---|
| 115 | |
|---|
| 116 | Incompatibility notice |
|---|
| 117 | ---------------------- |
|---|
| 118 | |
|---|
| 119 | The ``xreadlines`` method will be removed in ftputil *2.5* as well as |
|---|
| 120 | the direct access of exception classes via the ftputil module (e. g. |
|---|
| 121 | ``ftputil.PermanentError``). However, the deprecated access causes no |
|---|
| 122 | warning because that would be rather difficult to implement. |
|---|
| 123 | |
|---|
| 124 | The distribution contains a small tool find_deprecated_code.py to scan |
|---|
| 125 | a directory tree for the deprecated uses. Invoke the program with the |
|---|
| 126 | ``--help`` option to see a description. |
|---|
| 127 | |
|---|
| 128 | What is ftputil? |
|---|
| 129 | ---------------- |
|---|
| 130 | |
|---|
| 131 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 132 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 133 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 134 | The library supports many functions similar to those in the os, |
|---|
| 135 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 136 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 137 | in different timezones. |
|---|
| 138 | |
|---|
| 139 | Read the documentation at |
|---|
| 140 | http://ftputil.sschwarzer.net/documentation . |
|---|
| 141 | |
|---|
| 142 | License |
|---|
| 143 | ------- |
|---|
| 144 | |
|---|
| 145 | ftputil is Open Source software, released under the revised BSD |
|---|
| 146 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 147 | |
|---|
| 148 | Stefan |
|---|
| 149 | |
|---|
| 150 | ---------------------------------------------------------------------- |
|---|
| 151 | ftputil 2.3 is now available from |
|---|
| 152 | http://ftputil.sschwarzer.net/download . |
|---|
| 153 | |
|---|
| 154 | Changes since version 2.2.4 |
|---|
| 155 | --------------------------- |
|---|
| 156 | |
|---|
| 157 | ftputil has got support for the ``with`` statement which was introduced |
|---|
| 158 | by Python 2.5. You can now construct host and remote file objects in |
|---|
| 159 | ``with`` statements and have them closed automatically (contributed |
|---|
| 160 | by Roger Demetrescu). See the documentation for examples. |
|---|
| 161 | |
|---|
| 162 | What is ftputil? |
|---|
| 163 | ---------------- |
|---|
| 164 | |
|---|
| 165 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 166 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 167 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 168 | The library supports many functions similar to those in the os, |
|---|
| 169 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 170 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 171 | in different timezones. |
|---|
| 172 | |
|---|
| 173 | Read the documentation at |
|---|
| 174 | http://ftputil.sschwarzer.net/documentation . |
|---|
| 175 | |
|---|
| 176 | License |
|---|
| 177 | ------- |
|---|
| 178 | |
|---|
| 179 | ftputil is Open Source software, released under the revised BSD |
|---|
| 180 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 181 | |
|---|
| 182 | Stefan |
|---|
| 183 | |
|---|
| 184 | ---------------------------------------------------------------------- |
|---|
| 185 | ftputil 2.2.4 is now available from |
|---|
| 186 | http://ftputil.sschwarzer.net/download . |
|---|
| 187 | |
|---|
| 188 | Changes since version 2.2.3 |
|---|
| 189 | --------------------------- |
|---|
| 190 | |
|---|
| 191 | This release fixes a bug in the ``makedirs`` call (report and fix by |
|---|
| 192 | Richard Holden). Upgrading is recommended. |
|---|
| 193 | |
|---|
| 194 | What is ftputil? |
|---|
| 195 | ---------------- |
|---|
| 196 | |
|---|
| 197 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 198 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 199 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 200 | The library supports many functions similar to those in the os, |
|---|
| 201 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 202 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 203 | in different timezones. |
|---|
| 204 | |
|---|
| 205 | Read the documentation at |
|---|
| 206 | http://ftputil.sschwarzer.net/documentation . |
|---|
| 207 | |
|---|
| 208 | License |
|---|
| 209 | ------- |
|---|
| 210 | |
|---|
| 211 | ftputil is Open Source software, released under the revised BSD |
|---|
| 212 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 213 | |
|---|
| 214 | Stefan |
|---|
| 215 | |
|---|
| 216 | ---------------------------------------------------------------------- |
|---|
| 217 | ftputil 2.2.3 is now available from |
|---|
| 218 | http://ftputil.sschwarzer.net/download . |
|---|
| 219 | |
|---|
| 220 | Changes since version 2.2.2 |
|---|
| 221 | --------------------------- |
|---|
| 222 | |
|---|
| 223 | This release fixes a bug in the ``makedirs`` call (report and fix by |
|---|
| 224 | Julian, whose last name I don't know ;-) ). Upgrading is recommended. |
|---|
| 225 | |
|---|
| 226 | What is ftputil? |
|---|
| 227 | ---------------- |
|---|
| 228 | |
|---|
| 229 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 230 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 231 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 232 | The library supports many functions similar to those in the os, |
|---|
| 233 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 234 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 235 | in different timezones. |
|---|
| 236 | |
|---|
| 237 | Read the documentation at |
|---|
| 238 | http://ftputil.sschwarzer.net/documentation . |
|---|
| 239 | |
|---|
| 240 | License |
|---|
| 241 | ------- |
|---|
| 242 | |
|---|
| 243 | ftputil is Open Source software, released under the revised BSD |
|---|
| 244 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 245 | |
|---|
| 246 | Stefan |
|---|
| 247 | |
|---|
| 248 | ---------------------------------------------------------------------- |
|---|
| 249 | ftputil 2.2.2 is now available from |
|---|
| 250 | http://ftputil.sschwarzer.net/download . |
|---|
| 251 | |
|---|
| 252 | Changes since version 2.2.1 |
|---|
| 253 | --------------------------- |
|---|
| 254 | |
|---|
| 255 | This bugfix release handles whitespace in path names more reliably |
|---|
| 256 | (thanks to Johannes Str�rg). Upgrading is recommended. |
|---|
| 257 | |
|---|
| 258 | What is ftputil? |
|---|
| 259 | ---------------- |
|---|
| 260 | |
|---|
| 261 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 262 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 263 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 264 | The library supports many functions similar to those in the os, |
|---|
| 265 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 266 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 267 | in different timezones. |
|---|
| 268 | |
|---|
| 269 | Read the documentation at |
|---|
| 270 | http://ftputil.sschwarzer.net/documentation . |
|---|
| 271 | |
|---|
| 272 | License |
|---|
| 273 | ------- |
|---|
| 274 | |
|---|
| 275 | ftputil is Open Source software, released under the revised BSD |
|---|
| 276 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 277 | |
|---|
| 278 | Stefan |
|---|
| 279 | |
|---|
| 280 | ---------------------------------------------------------------------- |
|---|
| 281 | ftputil 2.2.1 is now available from |
|---|
| 282 | http://ftputil.sschwarzer.net/download . |
|---|
| 283 | |
|---|
| 284 | Changes since version 2.2 |
|---|
| 285 | ------------------------- |
|---|
| 286 | |
|---|
| 287 | This bugfix release checks (and ignores) status code 451 when FTPFiles |
|---|
| 288 | are closed (thanks go to Alexander Holyapin). Upgrading is recommended. |
|---|
| 289 | |
|---|
| 290 | What is ftputil? |
|---|
| 291 | ---------------- |
|---|
| 292 | |
|---|
| 293 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 294 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 295 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 296 | The library supports many functions similar to those in the os, |
|---|
| 297 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 298 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 299 | in different timezones. |
|---|
| 300 | |
|---|
| 301 | Read the documentation at |
|---|
| 302 | http://ftputil.sschwarzer.net/trac/wiki/Documentation . |
|---|
| 303 | |
|---|
| 304 | License |
|---|
| 305 | ------- |
|---|
| 306 | |
|---|
| 307 | ftputil is Open Source software, released under the revised BSD |
|---|
| 308 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 309 | |
|---|
| 310 | Stefan |
|---|
| 311 | |
|---|
| 312 | ---------------------------------------------------------------------- |
|---|
| 313 | ftputil 2.2 is now available from |
|---|
| 314 | http://ftputil.sschwarzer.net/download . |
|---|
| 315 | |
|---|
| 316 | Changes since version 2.1 |
|---|
| 317 | ------------------------- |
|---|
| 318 | |
|---|
| 319 | - Results of stat calls (also indirect calls, i. e. listdir, |
|---|
| 320 | isdir/isfile/islink, exists, getmtime etc.) are now cached and |
|---|
| 321 | reused. This results in remarkable speedups for many use cases. |
|---|
| 322 | Thanks to Evan Prodromou for his permission to add his lrucache |
|---|
| 323 | module under ftputil's license. |
|---|
| 324 | |
|---|
| 325 | - The current directory is also locally cached, resulting in further |
|---|
| 326 | speedups. |
|---|
| 327 | |
|---|
| 328 | - It's now possible to write and plug in custom parsers for directory |
|---|
| 329 | formats which ftputil doesn't support natively. |
|---|
| 330 | |
|---|
| 331 | - File-like objects generated via ``FTPHost.file`` now support the |
|---|
| 332 | iterator protocol (for line in some_file: ...). |
|---|
| 333 | |
|---|
| 334 | - The documentation has been updated accordingly. Read it under |
|---|
| 335 | http://ftputil.sschwarzer.net/trac/wiki/Documentation . |
|---|
| 336 | |
|---|
| 337 | Possible incompatibilities: |
|---|
| 338 | |
|---|
| 339 | - This release requires at least Python 2.3. (Previous releases |
|---|
| 340 | worked with Python versions from 2.1 up.) |
|---|
| 341 | |
|---|
| 342 | - The method ``FTPHost.set_directory_format`` has been removed, |
|---|
| 343 | since the directory format (Unix or MS) is set automatically. (The |
|---|
| 344 | new method ``set_parser`` is a different animal since it takes |
|---|
| 345 | a parser object to parse "foreign" formats, not a string.) |
|---|
| 346 | |
|---|
| 347 | What is ftputil? |
|---|
| 348 | ---------------- |
|---|
| 349 | |
|---|
| 350 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 351 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 352 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 353 | The library supports many functions similar to those in the os, |
|---|
| 354 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 355 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 356 | in different timezones. |
|---|
| 357 | |
|---|
| 358 | License |
|---|
| 359 | ------- |
|---|
| 360 | |
|---|
| 361 | ftputil 2.2 is Open Source software, released under the revised BSD |
|---|
| 362 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 363 | |
|---|
| 364 | Stefan |
|---|
| 365 | |
|---|
| 366 | ---------------------------------------------------------------------- |
|---|
| 367 | The second beta version of ftputil 2.2 is available. You can download |
|---|
| 368 | it from http://ftputil.sschwarzer.net/download . |
|---|
| 369 | |
|---|
| 370 | With respect to the first beta release, it's now possible to write |
|---|
| 371 | and plug in custom parsers for FTP directory formats that ftputil |
|---|
| 372 | doesn't know natively. The documentation has been updated accordingly. |
|---|
| 373 | |
|---|
| 374 | The documentation for this release is online at |
|---|
| 375 | http://ftputil.sschwarzer.net/trac/wiki/Documentation#Documentationforftputil2.2b2 , |
|---|
| 376 | so you can read about the extensions in more detail. |
|---|
| 377 | |
|---|
| 378 | Please download and test the release. Do you miss something which |
|---|
| 379 | should be in this release? Are there any bugs? |
|---|
| 380 | |
|---|
| 381 | Stefan |
|---|
| 382 | |
|---|
| 383 | ---------------------------------------------------------------------- |
|---|
| 384 | The first beta version of ftputil 2.2 is available. You can download |
|---|
| 385 | it from http://ftputil.sschwarzer.net/download . |
|---|
| 386 | |
|---|
| 387 | With respect to the previous alpha release, the cache now uses the |
|---|
| 388 | lrucache module by Evan Prodromou which is bundled with the ftputil |
|---|
| 389 | distribution. (Evan also gave his permission to include the module |
|---|
| 390 | under ftputil's modified BSD license instead of the Academic License.) |
|---|
| 391 | The documentation for the cache and its control have been added to |
|---|
| 392 | ftputil.txt / ftputil.html . |
|---|
| 393 | |
|---|
| 394 | File objects generated with FTPHost.file now support the iterator |
|---|
| 395 | protocol (for line in some_file: ...). |
|---|
| 396 | |
|---|
| 397 | Please download and test the release. Do you miss something which |
|---|
| 398 | should be in this release? Are there any bugs? |
|---|
| 399 | |
|---|
| 400 | Stefan |
|---|
| 401 | |
|---|
| 402 | ---------------------------------------------------------------------- |
|---|
| 403 | Welcome to the first alpha release of ftputil 2.2, ftputil 2.2a1. |
|---|
| 404 | Please download it from http://ftputil.sschwarzer.net/download . |
|---|
| 405 | |
|---|
| 406 | This version adds caching of stat results to ftputil. This also |
|---|
| 407 | affects indirect calls via FTPHost.path, e. g. methods isfile, |
|---|
| 408 | exists, getmtime, getsize. The test script at |
|---|
| 409 | http://ftputil.sschwarzer.net/trac/browser/tags/release2_2a1/sandbox/list_dir_test.py |
|---|
| 410 | runs about 20 times as fast as before adding caching! :-) |
|---|
| 411 | |
|---|
| 412 | As the "alpha" part implies, this release is not production-ready, |
|---|
| 413 | it's even kind of experimental: The caching works but there's no |
|---|
| 414 | cache entry expiration yet. (I plan to implement an LRU expiration |
|---|
| 415 | strategy or something similar.) Apart from that, the release is |
|---|
| 416 | tested as any production release. I suggest using the --prefix |
|---|
| 417 | option for installing alpha releases. |
|---|
| 418 | |
|---|
| 419 | That said, it would be helpful if you tested this release and |
|---|
| 420 | report your findings. When testing the code, please make sure |
|---|
| 421 | that your code uses the ftputil version you intend (alpha vs. |
|---|
| 422 | production version), e. g. by setting the PYTHONPATH environment |
|---|
| 423 | variable. I'm very interested in the speedups - and any problems |
|---|
| 424 | you encounter. |
|---|
| 425 | |
|---|
| 426 | Stefan |
|---|
| 427 | |
|---|
| 428 | ---------------------------------------------------------------------- |
|---|
| 429 | ftputil 2.1.1 is now available from |
|---|
| 430 | http://ftputil.sschwarzer.net/download . |
|---|
| 431 | |
|---|
| 432 | This release fixes a bug which happened when a client opened |
|---|
| 433 | a large file on the server as a file-like object and read |
|---|
| 434 | only a part of it. For details, see |
|---|
| 435 | http://ftputil.sschwarzer.net/trac/ticket/17 . |
|---|
| 436 | |
|---|
| 437 | Stefan |
|---|
| 438 | |
|---|
| 439 | ---------------------------------------------------------------------- |
|---|
| 440 | Changes since version 2.0 |
|---|
| 441 | ------------------------- |
|---|
| 442 | |
|---|
| 443 | - Added new methods to the FTPHost class, namely makedirs, walk, |
|---|
| 444 | rmtree. |
|---|
| 445 | |
|---|
| 446 | - The FTP server directory format ("Unix" vs. "Windows") is now set |
|---|
| 447 | automatically (thanks to Andrew Ittner for testing it). |
|---|
| 448 | |
|---|
| 449 | - Border cases like inaccessible login directories and whitespace in |
|---|
| 450 | directory names, are now handled more gracefully (based on input |
|---|
| 451 | from Valeriy Pogrebitskiy, Tommy Sundstr�nd H. Y. Chu). |
|---|
| 452 | |
|---|
| 453 | - The documentation was updated. |
|---|
| 454 | |
|---|
| 455 | - A Russian translation of the documentation (currently slightly |
|---|
| 456 | behind) was contributed by Anton Stepanov. It's also on the website |
|---|
| 457 | at http://ftputil.sschwarzer.net/trac/wiki/RussianDocumentation . |
|---|
| 458 | |
|---|
| 459 | - New website, http://ftputil.sschwarzer.net/ with wiki, issue tracker |
|---|
| 460 | and Subversion repository (thanks to Trac!) |
|---|
| 461 | |
|---|
| 462 | Please enter not only bugs but also enhancement request into |
|---|
| 463 | the issue tracker! |
|---|
| 464 | |
|---|
| 465 | Possible incompatibilities: |
|---|
| 466 | |
|---|
| 467 | - The exception hierarchy was changed slightly, which might break |
|---|
| 468 | client code. See http://ftputil.sschwarzer.net/trac/changeset/489 |
|---|
| 469 | for the change details and the possibly necessary code changes. |
|---|
| 470 | |
|---|
| 471 | - FTPHost.rmdir no longer removes non-empty directories. Use the new |
|---|
| 472 | method FTPHost.rmtree for this. |
|---|
| 473 | |
|---|
| 474 | What is ftputil? |
|---|
| 475 | ---------------- |
|---|
| 476 | |
|---|
| 477 | ftputil is a high-level FTP client library for the Python programming |
|---|
| 478 | language. ftputil implements a virtual file system for accessing FTP |
|---|
| 479 | servers, that is, it can generate file-like objects for remote files. |
|---|
| 480 | The library supports many functions similar to those in the os, |
|---|
| 481 | os.path and shutil modules. ftputil has convenience functions for |
|---|
| 482 | conditional uploads and downloads, and handles FTP clients and servers |
|---|
| 483 | in different timezones. |
|---|
| 484 | |
|---|
| 485 | License |
|---|
| 486 | ------- |
|---|
| 487 | |
|---|
| 488 | ftputil 2.1 is Open Source software, released under the revised BSD |
|---|
| 489 | license (see http://www.opensource.org/licenses/bsd-license.php ). |
|---|
| 490 | |
|---|
| 491 | Stefan |
|---|
| 492 | |
|---|
| 493 | ---------------------------------------------------------------------- |
|---|
| 494 | ftputil 2.0.3 is now available at |
|---|
| 495 | http://www.sschwarzer.net/python/python_software.html#ftputil . |
|---|
| 496 | |
|---|
| 497 | This release fixes (for most cases) some problems when logging into an |
|---|
| 498 | FTP server with an inaccessible login directory, i. e. `getcwd()` |
|---|
| 499 | returns "/some/login/dir" but `chdir("/some/login/dir")` fails. |
|---|
| 500 | |
|---|
| 501 | Thanks go to Valeriy Pogrebitskiy for investigating and reporting |
|---|
| 502 | these problems. |
|---|
| 503 | |
|---|
| 504 | Stefan |
|---|
| 505 | |
|---|
| 506 | ---------------------------------------------------------------------- |
|---|
| 507 | Here's ftputil 2.0 ! |
|---|
| 508 | |
|---|
| 509 | ftputil is a high-level alternative to Python's ftplib module. With |
|---|
| 510 | ftputil, you can access directories and files on remote FTP servers |
|---|
| 511 | almost as if they were in your local file system. This includes using |
|---|
| 512 | file-like objects representing remote files. |
|---|
| 513 | |
|---|
| 514 | For future releases see |
|---|
| 515 | http://www.sschwarzer.net/python/python_software.html |
|---|
| 516 | or subscribe to the mailing list at |
|---|
| 517 | http://codespeak.net/mailman/listinfo/ftputil |
|---|
| 518 | |
|---|
| 519 | What's new? |
|---|
| 520 | ----------- |
|---|
| 521 | |
|---|
| 522 | From version 1.1 to 2.0, the following has changed: |
|---|
| 523 | |
|---|
| 524 | - ftputil has been re-organized and is now a Python package (the |
|---|
| 525 | import statement is still the same) |
|---|
| 526 | |
|---|
| 527 | - installation via Python distutils |
|---|
| 528 | |
|---|
| 529 | - stat, upload_if_newer, download_if_newer etc. work correctly if the |
|---|
| 530 | server is in another time zone than the client running ftputil (with |
|---|
| 531 | help from Andrew Ittner); see section "Time zone correction" in the |
|---|
| 532 | documentation |
|---|
| 533 | |
|---|
| 534 | - it's possible to set the directory listing format "manually" (though |
|---|
| 535 | in most cases it's recognized automatically); see section "Stat'ing |
|---|
| 536 | files and directories" |
|---|
| 537 | |
|---|
| 538 | - added a workaround regarding whitespace in directory names (thanks |
|---|
| 539 | to Tommy Sundstr�nd H. Y. Chu) |
|---|
| 540 | |
|---|
| 541 | - extended documentation and converted it to HTML format (now |
|---|
| 542 | generated from reStructured Text) |
|---|
| 543 | |
|---|
| 544 | - several bugfixes |
|---|
| 545 | |
|---|
| 546 | - there's now a mailing list at http://codespeak.net/mailman/listinfo/ftputil |
|---|
| 547 | (thanks to Holger Krekel) |
|---|
| 548 | |
|---|
| 549 | Documentation |
|---|
| 550 | ------------- |
|---|
| 551 | |
|---|
| 552 | The documentation for ftputil can be found in the file ftputil.txt |
|---|
| 553 | (reStructured Text format) or ftputil.html (recommended, generated |
|---|
| 554 | from ftputil.txt). |
|---|
| 555 | |
|---|
| 556 | License |
|---|
| 557 | ------- |
|---|
| 558 | |
|---|
| 559 | ftputil is Open Source Software. It is distributed under a BSD-style |
|---|
| 560 | license (see the top of ftputil.py). |
|---|
| 561 | |
|---|
| 562 | Stefan |
|---|
| 563 | |
|---|
| 564 | ---------------------------------------------------------------------- |
|---|
| 565 | ftputil 1.1 is released. You can find it at |
|---|
| 566 | http://www.ndh.net/home/sschwarzer/python/python_software.html . |
|---|
| 567 | |
|---|
| 568 | ftputil provides a higher-level interface for FTP sessions than the |
|---|
| 569 | ftplib module. FTP servers can be accessed via an interface similar to |
|---|
| 570 | os and os.path. Remote files are accessible as file-like objects. |
|---|
| 571 | |
|---|
| 572 | New since version 1.0: |
|---|
| 573 | |
|---|
| 574 | - ftputil now runs under Python 2.1+ (not only 2.2+). |
|---|
| 575 | - documentation |
|---|
| 576 | - conditional upload/download (depending on local and remote file |
|---|
| 577 | timestamps) |
|---|
| 578 | - FTPHost.stat follows links |
|---|
| 579 | - a session factory other than the default, ftplib.FTP, can be given |
|---|
| 580 | in the FTPHost constructor; this allows to use classes derived from |
|---|
| 581 | ftplib.FTP (like ftpslib.FTP_TLS from the M2Crypto package) |
|---|
| 582 | - several bugfixes (mostly regarding byte count in text mode |
|---|
| 583 | transfers) |
|---|
| 584 | - unit test |
|---|
| 585 | |
|---|
| 586 | Stefan |
|---|
| 587 | ---------------------------------------------------------------------- |
|---|
| 588 | Hello Pythoneers :) |
|---|
| 589 | |
|---|
| 590 | I would like to announce ftputil.py, a module which provides a |
|---|
| 591 | more friendly interface for FTP sessions than the ftplib module. |
|---|
| 592 | |
|---|
| 593 | The FTPHost objects generated from it allow many operations similar |
|---|
| 594 | to those of os and os.path. Examples: |
|---|
| 595 | |
|---|
| 596 | # download some files from the login directory |
|---|
| 597 | import ftputil |
|---|
| 598 | host = ftputil.FTPHost('ftp.domain.com', 'user', 'secret') |
|---|
| 599 | names = host.listdir(host.curdir) |
|---|
| 600 | for name in names: |
|---|
| 601 | if host.path.isreg(name): |
|---|
| 602 | host.download(name, name, 'b') # remote, local, binary mode |
|---|
| 603 | |
|---|
| 604 | # make a new directory and copy a remote file into it |
|---|
| 605 | host.mkdir('newdir') |
|---|
| 606 | source = host.file('index.html', 'r') # file-like object |
|---|
| 607 | target = host.file('newdir/index.html', 'w') # file-like object |
|---|
| 608 | host.copyfileobj(source, target) # mimics shutil.copyfileobj |
|---|
| 609 | source.close() |
|---|
| 610 | target.close() |
|---|
| 611 | |
|---|
| 612 | Even host.path.walk works. :-) But slow. ;-) |
|---|
| 613 | |
|---|
| 614 | ftputil.py can be downloaded from |
|---|
| 615 | http://www.ndh.net/home/sschwarzer/download/ftputil.py |
|---|
| 616 | |
|---|
| 617 | I would like to get your suggestions and comments. :-) |
|---|
| 618 | |
|---|
| 619 | Stefan |
|---|
| 620 | |
|---|
| 621 | |
|---|
| 622 | P.S.: Thanks to Pedro Rodriguez for his helpful answer to my question |
|---|
| 623 | in comp.lang.python :-) |
|---|
| 624 | ---------------------------------------------------------------------- |
|---|