Skip to main content

Allows you to manage zip folders as data

Project description

zipmanager

downloads changelog wiki

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


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.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zipmanager-0.7.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file zipmanager-0.7.0.tar.gz.

File metadata

  • Download URL: zipmanager-0.7.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for zipmanager-0.7.0.tar.gz
Algorithm Hash digest
SHA256 fc714d4c16c6d15b238e3e65bfac53e921904067ac4b0878c2ee7a0718b7b8d2
MD5 0877a66dc8740e0ba0bfa479b7410ecf
BLAKE2b-256 450b9e8546cbabc7c11d8708d36212ee7a857f2be3866a630dbca0fcaef82f06

See more details on using hashes here.

File details

Details for the file zipmanager-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: zipmanager-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for zipmanager-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd35f1d5940bc3d2500d53c2cfae9a227ede5196a19f5648ffdfd74edce7004a
MD5 3f3ae0c62f7308d7ae030ea7d11b6792
BLAKE2b-256 ec035bcc32fa7097ab5bcf4f22a565e9819cc22424d868ea196ca9883ceabaac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page