Skip to main content

Asynchronous shutil module.

Project description

aioshutil: Asynchronous shutil module.

Downloads

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioshutil-1.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

aioshutil-1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file aioshutil-1.3.tar.gz.

File metadata

  • Download URL: aioshutil-1.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for aioshutil-1.3.tar.gz
Algorithm Hash digest
SHA256 ddabe1748c8a71ec3c7d213a4d0cf58fb495c71419334a0575b1f8a3be8373e8
MD5 10a6743713e73abd46f06ef9a841f10e
BLAKE2b-256 49b8c1d4588d5c20a3e1d0f85f2cc0ad5d864c3a4d17d2120049e4a345cd07df

See more details on using hashes here.

Provenance

File details

Details for the file aioshutil-1.3-py3-none-any.whl.

File metadata

  • Download URL: aioshutil-1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for aioshutil-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a441c99ef5f9b77fdd429ea7d043b8a358aa9b0c87043868113f9790c9aea400
MD5 aaaed8c89c384c2399360948b88d9aa8
BLAKE2b-256 7b8d22dbf3d70c2094b0b6a97ee33af2922fe5d5e3ccc9c4cf88f8e11bff840d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page