Asynchronous shutil module.
Project description
aioshutil: Asynchronous shutil module.
Introduction
aioshutil is a Python library which provides asynchronous version of function of shutil module. shutil module is blocking and using it in asyncio applications will block the event loop and slow down the application, aioshutil provides asynchronous friendly versions of the functions of the shutil module as it performs blocking io in a thread pool.
Installation
$ pip install aioshutil
Usage
The API of aioshutil module is same as shutil module except that it is asynchronous.
from aioshutil import rmtree
await rmtree("/tmp")
aioshutil provides the following functions:
copyfileobjcopyfilecopymodecopystatcopycopy2copytreemovermtreemake_archiveget_archive_formatsregister_archive_formatunregister_archive_formatget_unpack_formatsregister_unpack_formatunregister_unpack_formatunpack_archiveignore_patternschownwhichget_terminal_size
aioshutil provides the following exceptions for consistency with shutil module:
ErrorSpecialFileErrorSameFileError
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 aioshutil-1.6.tar.gz.
File metadata
- Download URL: aioshutil-1.6.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eae342b9a4cacc2c2c5877877a2d2f7a2b66c62aa1ab57d7e95c8cfd4ede507
|
|
| MD5 |
9727baa34d7fbcb27fc4503a728e6406
|
|
| BLAKE2b-256 |
d3bddcea5abb1792269e70cc75d5f9ae9adbdfba0f0d08a207eb788ec3b469b6
|
File details
Details for the file aioshutil-1.6-py3-none-any.whl.
File metadata
- Download URL: aioshutil-1.6-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0711de25ade421b70094b2a27c69bef6356127013744fec05f019f36732c1bd
|
|
| MD5 |
1604a506319ea897bf7884bdc2864704
|
|
| BLAKE2b-256 |
68927020e67ad83095ecc2ce751c24a63df332fb9a34ebfe14bc12a6b21b8f58
|