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
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
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 async_unzip-0.4.1.tar.gz.
File metadata
- Download URL: async_unzip-0.4.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47640f1c772c38a8277a3c8d33da0c754b70fa7f65c065ec43721887e168c973
|
|
| MD5 |
cd45d98d9c59bab5edd9303ef14d6e25
|
|
| BLAKE2b-256 |
c12f88a432317790400e7cf981045293d49af47e713642b05f22652ae6b9a3b3
|
File details
Details for the file async_unzip-0.4.1-py3-none-any.whl.
File metadata
- Download URL: async_unzip-0.4.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7d96080f9547736eec85baf85bb757fd95ddfe855661d402880b379765b6228
|
|
| MD5 |
67adb71173cc19340bd546bc3cebe55e
|
|
| BLAKE2b-256 |
c24510e2222b5476563ee92465580e336ef384852bd3f0c1898477d7de47cd51
|