Re: In need of a virtual filesystem / archive

2006-02-21 Thread Enigma Curry
Thanks for all the suggestions! I realized a few minutes after I posted that a database would work.. I just wasn't in that "mode" of thinking when I posted. PyTables also looks very interesting, especially because apparently I can read a file in the archive like a normal python file, ie one line

Re: In need of a virtual filesystem / archive

2006-02-21 Thread Ivan Vilata i Balaguer
En/na Enigma Curry ha escrit:: > I need to store a large number of files in an archive. From Python, I > need to be able to create an archive, put files into it, modify files > that are already in it, and delete files already in it. >[...] > Is there any archive format that can allow Python to mod

Re: In need of a virtual filesystem / archive

2006-02-21 Thread Rene Pijlman
Enigma Curry: >I need to store a large number of files in an archive. From Python, I >need to be able to create an archive, put files into it, modify files >that are already in it, and delete files already in it. Use the file system. That's what it's for. -- René Pijlman -- http://mail.python.o

Re: In need of a virtual filesystem / archive

2006-02-21 Thread bonono
Steven D'Aprano wrote: > I suspect you can pick any two of the following three: > > 1. single file > 2. space used for deleted files is reclaimed > 3. fast performance > > Using a proper database will give you 2 and 3, but at > the cost of a lot of overhead, and typically a > relational database i

Re: In need of a virtual filesystem / archive

2006-02-21 Thread Steven D'Aprano
Enigma Curry wrote: > I need to store a large number of files in an archive. From Python, I > need to be able to create an archive, put files into it, modify files > that are already in it, and delete files already in it. > > The easy solution would be to use a zip file or a tar file. Python has

Re: In need of a virtual filesystem / archive

2006-02-20 Thread Paul Rubin
"Enigma Curry" <[EMAIL PROTECTED]> writes: > Is there any archive format that can allow Python to modify a file in > the archive *in place*? That is to say if my archive is 2GB large and I > have a small text file in the archive I want to be able to modify that > small text file (or delete it) with

Re: In need of a virtual filesystem / archive

2006-02-20 Thread bonono
may be store them in sqlite ? On linux, fuse can also be an interesting option, gmailfs is written in python. Enigma Curry wrote: > I need to store a large number of files in an archive. From Python, I > need to be able to create an archive, put files into it, modify files > that are already in i

In need of a virtual filesystem / archive

2006-02-20 Thread Enigma Curry
I need to store a large number of files in an archive. From Python, I need to be able to create an archive, put files into it, modify files that are already in it, and delete files already in it. The easy solution would be to use a zip file or a tar file. Python has good standard modules for acces