Allows you to manage zip folders as data
Project description
zipmanager
pip install zipmanager
What does this package do ?
It allows you to create and handle zip folders as data without needing to save them.
Usage
from zipmanager import ZipFolder
file_data = b'some data'
zip_folder = ZipFolder({'file_name.file_extension': file_data})
# file extension not required
# ZipFolder will hold all the files given in the dictionary
file_data = zip_folder['file_name.file_extension']
# will return the file data
Main functions
from zipmanager import ZipFolder
file_data = b'some_data'
zip_folder = ZipFolder({'file_name.file_extension': file_data})
# list of functions:
zip_folder.add_files({'new_file': 'new_data'}) # add files to zip. read more at docstring.
zip_folder.delete_file('new_file') # removes file from zip
zip_folder.get('file_name') # returns None if file was not found
# or
zip_folder['file_name']
zip_folder.save() # saves zip in given location (empty is './temp.zip')
Features
info on more of the features is available on the wiki
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zipmanager-0.7.1.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zipmanager-0.7.1.tar.gz.
File metadata
- Download URL: zipmanager-0.7.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eca496b98edbdf1140a4a71bed5b991fe8cebfae8f127a4d91d5fce661e0691c
|
|
| MD5 |
b43292d88f656e08627763ebea09ed04
|
|
| BLAKE2b-256 |
7ffa3ec414eafde2bd1048d7959a06c323190b34603feae5e8f4c2097789bb7f
|
File details
Details for the file zipmanager-0.7.1-py3-none-any.whl.
File metadata
- Download URL: zipmanager-0.7.1-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dfa20f981f537f31c4fac143d749a4ebd4858859ebdfae15a04453e20eeeb74
|
|
| MD5 |
06968a7de83afae8aa25f9e3611e2671
|
|
| BLAKE2b-256 |
fda7cfc8ec739e8cba4506cce95fee09b31b1d52b36c4769ada962bbdd516cdb
|