# zipfile for Python 2.4.3

**URL:** <https://forums.digi.com/t/zipfile-for-python-2-4-3/2940>\
**Category:** Python\
**Created:** [May 10, 2012, 2:10pm UTC](https://forums.digi.com/t/zipfile-for-python-2-4-3/2940 "2012-05-10T14:10:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kparkes](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@kparkes](https://forums.digi.com/u/kparkes)\
**Post date:** [May 10, 2012, 2:10pm UTC](https://forums.digi.com/t/zipfile-for-python-2-4-3/2940/1 "2012-05-10T14:10:43Z")

</div>

Hi,

Does anyone know if there’s a zipfile module available for Python 2.4.3? I want to compress/decompress files on the ConnectPort X4.

Thanks,

Kevin.

---

<div class="post-metadata">

**Author:** ![Campbell](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Campbell](https://forums.digi.com/u/Campbell)\
**Post date:** [May 10, 2012, 7:01pm UTC](https://forums.digi.com/t/zipfile-for-python-2-4-3/2940/2 "2012-05-10T19:01:11Z")

</div>

I see some instructions about this at this link:

[http://www.digi.com/wiki/developer/index.php/Digi\_Python\_Programmer’s\_Guide#Using\_digi\_build\_zip.py\_to\_Automatically\_Build\_a\_zip\_File](http://www.digi.com/wiki/developer/index.php/Digi_Python_Programmer's_Guide#Using_digi_build_zip.py_to_Automatically_Build_a_zip_File)

---

<div class="post-metadata">

**Author:** ![diegoe](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@diegoe](https://forums.digi.com/u/diegoe)\
**Post date:** [May 14, 2012, 1:06pm UTC](https://forums.digi.com/t/zipfile-for-python-2-4-3/2940/3 "2012-05-14T13:06:25Z")

</div>

Hello,

I don’t know if you are already using it, but the Digi ESP for Python includes a great amount of Python examples that work in the ConnectPort X4. One of them shows how to perform some ZIP operations in the device using the zipfile module:

![](http://img560.imageshack.us/img560/6487/exampleca.jpg)

You can download the Digi ESP for Python from here:

[http://www.digi.com/support/downloads/index?SzQKG5QNUzKcb8PKTyhULRbSCrU4r0+nBwIrnvcwhYgu6CYfNtKa7ugZZQvb6cXS](http://www.digi.com/support/downloads/index?SzQKG5QNUzKcb8PKTyhULRbSCrU4r0+nBwIrnvcwhYgu6CYfNtKa7ugZZQvb6cXS)

(You will need to register in Digi first)

Regards!

---

<div class="post-metadata">

**Author:** ![lynnl](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@lynnl](https://forums.digi.com/u/lynnl)\
**Post date:** [May 11, 2012, 4:38pm UTC](https://forums.digi.com/t/zipfile-for-python-2-4-3/2940/4 "2012-05-11T16:38:57Z")

</div>

There is also information here:  
[http://www.digi.com/wiki/developer/index.php/Using\_ZIP%2C\_GZIP\_or\_compression](http://www.digi.com/wiki/developer/index.php/Using_ZIP%2C_GZIP_or_compression)

It works quite well and is fully integrated with the X4 since the X4 actually runs Python code from ZIP files.

I know of several customers who use GZIP on the X4 to compress their data before uploading - for example one creates a huge CSV file and then FTP’s it home, so they want to ZIP the CSV file first since it gives them huge reduction.
