PY Zip

G

GISDude

Hi all.

I am trying to find a module that has a Zip utility that I can use in
Python. I would like to be able to call the module and ZIP up a
directory. I thought there was such a module, but I have not been able
to find it.

I need this to be able to be used in Python Win. Is there a ZIP utilty
already stored with a basic PYTHON download?

Thanks all.
 
Z

Zara

Hi all.

I am trying to find a module that has a Zip utility that I can use in
Python. I would like to be able to call the module and ZIP up a
directory. I thought there was such a module, but I have not been able
to find it.

I need this to be able to be used in Python Win. Is there a ZIP utilty
already stored with a basic PYTHON download?

Thanks all.


It is included with basic Python installation. Look at Pyton Manulas,
Library Reference, 12. Data Compression and Archiving.

Best regards,

Zara
 
R

risomt

Hi all.

I am trying to find a module that has a Zip utility that I can use in
Python. I would like to be able to call the module and ZIP up a
directory. I thought there was such a module, but I have not been able
to find it.

I need this to be able to be used in Python Win. Is there a ZIP utilty
already stored with a basic PYTHON download?

Thanks all.

the module is named "zipfile" (http://docs.python.org/lib/module-
zipfile.html)

http://docs.python.org/lib/zipfile-objects.html#zipfile-objects has
more indepth information on all functions

I can't say i've ever used it, but it seems pretty straightforward and
mostly reminiscent of the basic read/write file modules.
 
G

Gary Herron

GISDude said:
Hi all.

I am trying to find a module that has a Zip utility that I can use in
Python. I would like to be able to call the module and ZIP up a
directory. I thought there was such a module, but I have not been able
to find it.

I need this to be able to be used in Python Win. Is there a ZIP utilty
already stored with a basic PYTHON download?

Thanks all.
The module you want is called zipfile, and its part of the standard library.

See: http://docs.python.org/lib/module-zipfile.html for documentation.

Gary Herron
 
R

risomt

Hi all.

I am trying to find a module that has a Zip utility that I can use in
Python. I would like to be able to call the module and ZIP up a
directory. I thought there was such a module, but I have not been able
to find it.

I need this to be able to be used in Python Win. Is there a ZIP utilty
already stored with a basic PYTHON download?

Thanks all.

the module is named "zipfile" (http://docs.python.org/lib/module-
zipfile.html)

http://docs.python.org/lib/zipfile-objects.html#zipfile-objects has
more indepth information on all functions

I can't say i've ever used it, but it seems pretty straightforward and
mostly reminiscent of the basic read/write file modules.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top