If I get your point correctly, you want
- Web connection, so your python program updated on server, client get it before using it.
- Data store on local to avoid upload big file.
You can write a python program to check a server location to get your latest program if needed. You need a url / server file for program version / created date/time information to determine if you need to update or not.
After get latest python program, then start this python program to run locally.
With this said, What you need is to update your program to add below features:
- Access your server, to get latest version information
- Check against current version to see if you need to download latest program
- Download latest version and use that to run locally.
Does this solve your problem?