ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
ANN: esky 0.2.1
by Ryan Kelly other posts by this author
Nov 7 2009 5:23AM messages near this date
Re: Serious Privileges Problem: Please Help | Re: ANN: esky 0.2.1
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@[...].au        |  http://www.rfk.id.au/ramblings/gpg/ for details
Thread:
Ryan Kelly
Aahz
Aahz
Aahz
Ryan Kelly
Ryan Kelly

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved