Skip to main content

Fast batch image compression for Dropbox, folders and ZIP files using zipzap

Project description

zipzap

Fast batch image compression for local folders, ZIP archives, and Dropbox.

Prerequisite

Add your Dropbox access token to a .env file in your project root:

DROPBOX_ACCESS_TOKEN=your_dropbox_access_token_here

Install

pip install zipzap

CLI

zipzap

zipzap supports:

  • Dropbox folder compression
  • Local folder compression
  • Local ZIP compression

Python Usage

Local Folder

from zipzap.main import batch_compress_local_folder

# Compress all images in a local folder
batch_compress_local_folder(r"C:\path\to\images")

Local ZIP

from zipzap.main import batch_compress_local_zip

# Compress images inside a ZIP and create <name>_compressed.zip
batch_compress_local_zip(r"C:\path\to\images.zip")

Dropbox

from zipzap.main import authenticate_dropbox, batch_compress_dropbox

# Compress a Dropbox folder (interactive folder picker)
dbx = authenticate_dropbox()
batch_compress_dropbox(dbx)

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

zipzap-0.1.0.post1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

zipzap-0.1.0.post1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file zipzap-0.1.0.post1.tar.gz.

File metadata

  • Download URL: zipzap-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for zipzap-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 1fb82cefe34ee1ff1ca800c0e43e504f6c1e37326d3e9de53e8f7477e1bd12c8
MD5 625ece37cb26eb855c62ffa0a2f3e858
BLAKE2b-256 dac8475cc337f76f66daac6099d1de409e7f3793ff2bbb8245ad98bb4f93805c

See more details on using hashes here.

File details

Details for the file zipzap-0.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: zipzap-0.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for zipzap-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0323fce0af45c06db1c04fb053b379b79fbccf342e1680e802df82ca5f7cb7f9
MD5 50ac76bae4ae16c09c4d728775ddb4c1
BLAKE2b-256 fe841c3c4599ca458195ca508fb8fe83a52f0209720c13251c98a6a9eeb58149

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