[Tutor] How to deploy seamless script updates to your "clients"?

Abdur-Rahmaan Janhangeer arj.python at gmail.com
Mon May 29 11:47:21 EDT 2017


What does a webpage has to do with it?

(topic : web scraping)
well i meant you put your script in a webpage no need to put any html tags
if you wish.

then your program has two files. an updater and the script

the updater on startup scrape your web page and see if the text is same as
the script file

if yes : run script file

if not : override the script file with the text of the web page



Abdur-Rahmaan Janhangeer,
Mauritius
abdurrahmaanjanhangeer.wordpress.com

On 25 May 2017 04:11, "Juan C." <juan0christian at gmail.com> wrote:

> I have some Python 3.6.0 scripts that my co-workers use for some small
> and medium tasks. Whenever I have time I fix some bugs and add some
> features to said scripts to make their lives (and mine :D) easier, but
> there's a problem: I need to send a new script via email/chat/whatever
> and they have to replace it wherever they use it, such a hassle.
>
> How would I go to put a "update module" inside my script? I was
> thinking about using Git, because those scripts are already in
> personal repositories so that I can keep track of changes. Will I have
> to setup any special permissions so that the scripts can pull requests
> from my private repositories?
>
> I was thinking of something like "check for update before start", if
> an update is found the script would replace itself with the newer
> version and restart, is that possible? For example, 'cool-tool.py'
> v0.2 starts and find that version v0.3 is out, so it downloads and
> replace 'cool-tool.py' code with newer code and restart as v0.3.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list