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
Metadata
Release files for aioshutil 1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioshutil-1.6.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioshutil-1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / aioshutil-1.6.tar.gz
| Download URL | aioshutil-1.6.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9eae342b9a4cacc2c2c5877877a2d2f7a2b66c62aa1ab57d7e95c8cfd4ede507
|
|
BLAKE2b-256 checksum How to use checksums |
d3bddcea5abb1792269e70cc75d5f9ae9adbdfba0f0d08a207eb788ec3b469b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / aioshutil-1.6-py3-none-any.whl
| Download URL | aioshutil-1.6-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0711de25ade421b70094b2a27c69bef6356127013744fec05f019f36732c1bd
|
|
BLAKE2b-256 checksum How to use checksums |
68927020e67ad83095ecc2ce751c24a63df332fb9a34ebfe14bc12a6b21b8f58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|