python中的Web更新库? [英] Web update library in python?

查看:48
本文介绍了python中的Web更新库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想让我的用户能够从网上下载一个存储库,然后检查更新。我想到了一个可以做到这一点的机制

,但是因为有补丁和差异很容易

可用我想知道是否有一个python解决方案允许我

下载文件,并在本地应用补丁。在补丁中

有二进制文件和来源我不确定补丁是否可以处理它们

两者虽然。


所以这里是这种情况;


下载

1.用户输入URL和本地路径存放地点

2.更新下载文件

3.创建新存储库或修补现有存储库


检查更新

1.完成网络检查如果有更新的版本

2.文件下载,补丁被应用


可以提取普通的zip文件,但我会错过文件

可能在将来的版本中删除,但尚未在客户端上删除

。也可能需要保留本地更改,尽管它不是

a显示塞子,如果它不是。


我想要一个非常好的解决方案对于用户来说很容易,所以点和

点击一下工作。周围是否有工具/图书馆可以提供

我这个问题的基础?


提前致谢!

- Jorgen

Hi all,

I want to provide my users the ability to download a repository from
the web, and after that check for updates. I thought of a mechanism
that could do that, but since there is patch and diff readily
available I wondered if there is a python solution that allows me to
download a file, and let the patch be applied locally. In the patch
there are binaries and sources I am not sure if patch can handle them
both though.

So here are the situations;

Downloading
1. User enters URL and local path where to store
2. Updated downloads the file
3. Either creates a new repository or patches an existing one

Check for updates
1. A web check is done if there is a newer version
2. File is downloaded, patch is applied

Plain zip file extraction is possible, but I will miss out on files
that might be deleted in future versions, but not yet on the client
side. Also local changes might need to be preserved although it is not
a show stopper if it doesn''t.

I want to have a solution that is very easy for the user, so point and
click kind of work. Is there a tool / library around that can provide
me a base for this problem?

Thanks in advance!
- Jorgen

推荐答案

Jorgen Bodde写道:
Jorgen Bodde wrote:

大家好,


我想让我的用户能够从网上下载一个存储库,然后检查更新。我想到了一个可以做到这一点的机制

,但是因为有补丁和差异很容易

可用我想知道是否有一个python解决方案允许我

下载文件,并在本地应用补丁。在补丁中

有二进制文件和来源我不确定补丁是否可以处理它们

两者虽然。


所以这里是这种情况;


下载

1.用户输入URL和本地路径存放地点

2.更新下载文件

3.创建新存储库或修补现有存储库


检查更新

1.完成网络检查如果有更新的版本

2.文件下载,补丁被应用


可以提取普通的zip文件,但我会错过文件

可能在将来的版本中删除,但尚未在客户端上删除

。也可能需要保留本地更改,尽管它不是

a显示塞子,如果它不是。


我想要一个非常好的解决方案对于用户来说很容易,所以点和

点击一下工作。是否有一个工具/库可以提供

我这个问题的基础?
Hi all,

I want to provide my users the ability to download a repository from
the web, and after that check for updates. I thought of a mechanism
that could do that, but since there is patch and diff readily
available I wondered if there is a python solution that allows me to
download a file, and let the patch be applied locally. In the patch
there are binaries and sources I am not sure if patch can handle them
both though.

So here are the situations;

Downloading
1. User enters URL and local path where to store
2. Updated downloads the file
3. Either creates a new repository or patches an existing one

Check for updates
1. A web check is done if there is a newer version
2. File is downloaded, patch is applied

Plain zip file extraction is possible, but I will miss out on files
that might be deleted in future versions, but not yet on the client
side. Also local changes might need to be preserved although it is not
a show stopper if it doesn''t.

I want to have a solution that is very easy for the user, so point and
click kind of work. Is there a tool / library around that can provide
me a base for this problem?



Subversion。当然还有它的python-libs。


Diez

Subversion. With it''s python-libs of course.

Diez


2007-11-20,Jorgen Bodde< jo*************@gmail.com写的:
On 2007-11-20, Jorgen Bodde <jo*************@gmail.comwrote:

大家好,


我想让我的用户能够从网上下载一个存储库,然后检查更新。我想到了一个可以做到这一点的机制

,但是因为有补丁和差异很容易

可用我想知道是否有一个python解决方案允许我

下载文件,并在本地应用补丁。在补丁中

有二进制文件和来源我不确定补丁是否可以处理它们

两者。
Hi all,

I want to provide my users the ability to download a repository from
the web, and after that check for updates. I thought of a mechanism
that could do that, but since there is patch and diff readily
available I wondered if there is a python solution that allows me to
download a file, and let the patch be applied locally. In the patch
there are binaries and sources I am not sure if patch can handle them
both though.



有difflib

there is difflib


我想要一个非常容易的解决方案用户,所以点和

点击一下工作。是否有一个工具/库可以提供

我这个问题的基础?
I want to have a solution that is very easy for the user, so point and
click kind of work. Is there a tool / library around that can provide
me a base for this problem?



但是,根据您的描述,您似乎正在努力实现许多现代SCM工具已经无法实现的功能。 -box,那你为什么要试图重新发明轮子?


例如,SVN用HTTP处理匿名下载工作副本,

分布式SCM工具(bzr,git,mercurial,仅举几例)允许您通过互联网复制

完整存储库,并合并/更新它们(以及

通过电子邮件发回补丁)。


这样的解决方案主要将你的问题减少到像'svn
这样的单行脚本
更新'。你可能希望在它周围添加一个漂亮的GUI前端(尽管你给它们提供了一个包含源代码的存储库(可能是比b
更高)点击),我真的不需要一个

点击式解决方案。)


Albert

However, from your description, it looks like you are trying to achieve what
many modern SCM tools do already out-of-the-box, so why are you trying to
re-invent the wheel?

For example, SVN handles anonymous download of working copies with HTTP,
distributed SCM tools (bzr, git, mercurial, to name a few) allow you to copy
complete repositories over the internet, and merge/update them (as well as
sending patches back by eg email).

Such a solution reduces your problem mostly to a one line script like ''svn
update''. You may want to add a nice GUI front-end around it (although given the
fact you are offering them a repository with sources (which, presumably is more
advanced than point-and-click), I don''t really see the need for a
point-and-click solution).

Albert


大家好,


感谢您的输入。对''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 。我相信它''egg''只是一个依赖下载程序和

安装程序的python脚本对吗?


至于颠覆,这是不可能的我想为人们提供一个没有能够拥有一个subversion服务器但只有一个普通网站的b
$ b来下载一个可以升级本地工作副本的文件。 SVN本地或服务器端需要

不是真的用户友好..


感谢您的输入!

- Jorgen


2007年11月20日上午10:48,Diez B. Roggisch< de *** @ nospam.web.dewrote:
Hi All,

Thanks for the input. Concering ''egg'' it''s not a web update for python
per-ce but it should be written in python to easily interface with
(wx)Python. As I believe it ''egg'' is only a dependency downloader and
installer for python scripts right?

As for subversion, this is not possible as I want to provide people
wihtout the ability to have a subversion server but only a plain web
site, to download a file that can upgrade a local work copy. Requiring
either SVN locally or server side is not really user friendly ..

Thanks for your input!
- Jorgen

On Nov 20, 2007 10:48 AM, Diez B. Roggisch <de***@nospam.web.dewrote:

Jorgen Bodde写道:
Jorgen Bodde wrote:

大家好,


我想为我的用户提供下载的能力来自

的存储库,然后检查更新。我想到了一个可以做到这一点的机制

,但是因为有补丁和差异很容易

可用我想知道是否有一个python解决方案允许我

下载文件,并在本地应用补丁。在补丁中

有二进制文件和来源我不确定补丁是否可以处理它们

两者虽然。


所以这里是这种情况;


下载

1.用户输入URL和本地路径存放地点

2.更新下载文件

3.创建新存储库或修补现有存储库


检查更新

1.完成网络检查如果有更新的版本

2.文件下载,补丁被应用


可以提取普通的zip文件,但我会错过文件

可能在将来的版本中删除,但尚未在客户端上删除

。也可能需要保留本地更改,尽管它不是

a显示塞子,如果它不是。


我想要一个非常好的解决方案对于用户来说很容易,所以点和

点击一下工作。是否有一个工具/库可以提供

我这个问题的基础?
Hi all,

I want to provide my users the ability to download a repository from
the web, and after that check for updates. I thought of a mechanism
that could do that, but since there is patch and diff readily
available I wondered if there is a python solution that allows me to
download a file, and let the patch be applied locally. In the patch
there are binaries and sources I am not sure if patch can handle them
both though.

So here are the situations;

Downloading
1. User enters URL and local path where to store
2. Updated downloads the file
3. Either creates a new repository or patches an existing one

Check for updates
1. A web check is done if there is a newer version
2. File is downloaded, patch is applied

Plain zip file extraction is possible, but I will miss out on files
that might be deleted in future versions, but not yet on the client
side. Also local changes might need to be preserved although it is not
a show stopper if it doesn''t.

I want to have a solution that is very easy for the user, so point and
click kind of work. Is there a tool / library around that can provide
me a base for this problem?



Subversion。当然还有它的python-libs。


Diez

-

http://mail.python.org/mailman/listinfo/python-list


这篇关于python中的Web更新库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆