Category "python-zipfile"

Use numpy.load on file within zipfile

I have a zipfile which contains many npy files (file1.npy, file2.npy, file3.npy, ...). I would like to load them individually without extracting the zipfile on

How to get meta-data of files inside compressed folder

I am trying to build a script written in Python which explore an archive (in this case a zip), and recursively gets all meta-data of files. I usually use the f

Zipfile not compressing some SVG files in Python

I've been making an script to transform Latex code to SVG images in epubs. The idea is to extract an epub in a temp directory, to find the code and to create SV

Python remove entry from zipfile

I'm currently writing an open source library for a container format, which involves modifying zip archives. Therefore I utilized pythons build-in zipfile module

MemoryError zipfile in memory

I'm getting MemoryError (out of memory) when zipping files in memory with Python. I'm using cStringIO.StringIO as an in memory buffer stream. Follow the code be

Converting zipfile extracting code from ruby to python

I am converting a code from ruby to python that extracts the contents of a zipfile. I am new to python and not sure how to exactly convert the below code. ruby

How to take a zipfile as a File object in django?

I have a folder named 'src' of which I create a zip file named zf. I want to pass zf as a FileField object to newobj.fd. import zipfile from django.core.files i

How to take a zipfile as a File object in django?

I have a folder named 'src' of which I create a zip file named zf. I want to pass zf as a FileField object to newobj.fd. import zipfile from django.core.files i

archiving symlinks with python zipfile

I have a script that creates zip files of dirs containing symlinks. I was surprised to find that the zipfiles have zipped the targets of the links as opposed to

Mailgun only sends partial zip file in Python script when using zipfile zlib python and mailgun

EDIT: I tried to implement gzip but couldn't get it to work with the zipfile library. The documentation seems to indicate zlib is the only library compatibl