Selfupdater is a small script, wrapping the main bussiness Python-writing application and allows to get the new version of application from different sources. After uploading of application, Selfupdater reloads the main application. It works with pure python script and from zip-archived script.
Selfupdater is run under Python 3.6 only.
Here's one of the simplest applications you can make:
def f_main():
#main bussiness logic
.
.
.
if __name__ == '__main__':
"""
first argument - main bussines function,
update_path - list of paths for updates (local Linux-compatible paths or urls),
interval - timeout for next update check in seconds
"""
import _updater as up
up.run_reloader(
f_main,
update_path=[
'/ms71/temp/upd.zip',
'http://update.url/upd.zip',
],
interval=5
)