Skip to main content

Async unzipping to prevent asyncio timeout errors and decrease the memory usage for bigger zip files

Project description

async-unzip

Asynchronous unzipping of big files with low memory usage in Python Helps with big zip files unpacking (memory usage + buffer_size could be changed). Also, prevents having Asyncio Timeout errors especially in case of many workers using same CPU cores.

Fully tested on Python 3.7 through 3.14.

From version 0.3.6 module doesn't require, but expects to have aiofile OR aiofiles to be installed for I/O operations. However, aiofile is recommended for linux, just don't forget to install libaio (libaio1) linux module (e.g., apt install -y libaio1 for debian)

from async_unzip.unzipper import unzip
import asyncio

asyncio.run(unzip('tests/test_files/fixture_beta.zip', path='some_dir'))

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

async_unzip-0.4.0.tar.gz (56.3 MB view details)

Uploaded Source

Built Distribution

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

async_unzip-0.4.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file async_unzip-0.4.0.tar.gz.

File metadata

  • Download URL: async_unzip-0.4.0.tar.gz
  • Upload date:
  • Size: 56.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for async_unzip-0.4.0.tar.gz
Algorithm Hash digest
SHA256 90971bc11540e57b8578019418c9c045ded43a2b2f19e8ce179fa61860600f18
MD5 ae2177b0e47efa4f0d9d1478bba6ede3
BLAKE2b-256 37ba378d7b8bdccfed93543da31a6f3eb6cbcc50f931c278a65f26a26fcb04b0

See more details on using hashes here.

File details

Details for the file async_unzip-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: async_unzip-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for async_unzip-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae6c0c337b15a30e2e34e16f30c19280f81f2369924391084512933596e0aea
MD5 24ac959e1200adb963d5dd62ca6d78b6
BLAKE2b-256 6d7478b48920df134ac2b0fdacd209a904efa1cfafe8cd7a162c2262617606de

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