Simple package to download & unzip archives within notebooks.
Zipmigo is intended to assist fledgling data analysts and scientists with the process of downloading a zip file via http and unzipping it into the working directory when working in a notebook environment, saving them time and energy wading through
requests, and running shell commands to inspect the directory structure.
This package was born of the author's hatred for recursive folders within zip files, as well as her need to use the same commands over and over again to download & unpack zip archives. Over the course of a project, she found herself constantly reusing code snippets - a sign that one should wrap it up into a script. However, she was working in google colab, which was designed for collaborative notebook workflows. It seemed that distributing a package on PyPi was the easiest way to import a script into colab for her audience, and thus zipmigo was born.
Zipmigo is available for commandline installation from PyPi via
pip install zipmigo.
!pip install zipmigo
git clone https://github.com/kaszklar/zipmigo.git to your directory of choice.
cd zipmigo and install with
python setup.py install.
Download a zip file
Download a file to the current working directory. The status of the connection and the progress of the download will be printed out.
Print out the contents of the current working directory & subdirectories
Unpack zip file into current directory. If the archive has only directories in the root, those directories will be placed in the current working directory.
Refactor for namespace
Adjust download control flow
Some error handling and type assertions
Correct readme instructions
Initial Release 🎉
- Inspect zip archive prior to opening
- Extract a single file from the archive
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size zipmigo-1.1.0-py3-none-any.whl (6.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size zipmigo-1.1.0.tar.gz (3.6 kB)||File type Source||Python version None||Upload date||Hashes View|