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.6.1.tar.gz (11.8 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.6.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zipmanager-0.6.1.tar.gz
Algorithm Hash digest
SHA256 4b81f82c8e730fc5bc3716768526f2478f3d8f7b19799070026be1d6c93b14b8
MD5 03fb2eda319e945f6e4b7cef6cb5080e
BLAKE2b-256 c9e90e89c90a46908c54b96a09daf21540cb2d2c7ea51cc01dd9a652728f61bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zipmanager-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8df1f39bd76ffdefc1d110342a1c1cf949bc0754795c4b78b2b001b2d6bf168d
MD5 0a5c2c56fbc8ffe76cd1e75788c3943a
BLAKE2b-256 b91c09c424776a78b60334e4a1cfb5093ebea5810fe0fd0ccef6d53e62d29470

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