ANN: esky 0.2.1

Ryan Kelly ryan at rfk.id.au
Sat Nov 7 08:20:23 EST 2009


I'm pleased to announce the latest release of esky, a tool for keeping
your frozen apps fresh:

  Downloads:        http://pypi.python.org/pypi/esky/
  Latest Version:   0.2.1
  License:          BSD

Esky is an auto-update framework for frozen python apps, built on top of
bbfreeze.  It provides a simple API through which apps can find, fetch
and install updates, and a bootstrapping mechanism that keeps the app
safe in the face of failed or partial updates.

A frozen app that wants to auto-update itself might run the following in
a background thread:

    if hasattr(sys,"frozen"):
        app = esky.Esky(sys.executable,"http://myapp.com/downloads/")
        new_version = app.find_update()
        if new_version is not None:
            app.install_update(new_version)

The new version of the application is linked into the app directory in
the safest possible manner:  using a carefully-ordered sequence of
atomic renames on POSIX, using MoveFileTransacted on Windows Vista or
later, and using the "rename-and-pray" method on older versions of
Windows.  Failed or partial updates are detected and cleaned up
automatically.


 Enjoy!


     Ryan



-- 
Ryan Kelly
http://www.rfk.id.au  |  This message is digitally signed. Please visit
ryan at rfk.id.au        |  http://www.rfk.id.au/ramblings/gpg/ for details

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/python-list/attachments/20091108/7df0cd4e/attachment.sig>


More information about the Python-list mailing list