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:
copyfileobj
copyfile
copymode
copystat
copy
copy2
copytree
move
rmtree
make_archive
get_archive_formats
register_archive_format
unregister_archive_format
get_unpack_formats
register_unpack_format
unregister_unpack_format
unpack_archive
ignore_patterns
chown
which
get_terminal_size
aioshutil
provides the following exceptions for consistency with shutil
module:
Error
SpecialFileError
ExecError
SameFileError
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
File details
Details for the file aioshutil-1.5.tar.gz
.
File metadata
- Download URL: aioshutil-1.5.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2756d6cd3bb03405dc7348ac11a0b60eb949ebd63cdd15f56e922410231c1201 |
|
MD5 | cd468cff0293c84e1cf48faceb3884f5 |
|
BLAKE2b-256 | 75e4ef86f1777a9bc0c51d50487b471644ae20941afe503591d3a4c86e456dac |
File details
Details for the file aioshutil-1.5-py3-none-any.whl
.
File metadata
- Download URL: aioshutil-1.5-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc2a6cdcf1a8615b62f856154fd81131031d03f2834912ebb06d8a2391253652 |
|
MD5 | f5b09eb08af808fcb78cf7df2442332c |
|
BLAKE2b-256 | 183deb3c7106c4672c19280515b759b674daafd2d570c952e5491faeca157ffd |