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
  • 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.6.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioshutil-1.6-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for aioshutil-1.6.tar.gz
Algorithm Hash digest
SHA256 9eae342b9a4cacc2c2c5877877a2d2f7a2b66c62aa1ab57d7e95c8cfd4ede507
MD5 9727baa34d7fbcb27fc4503a728e6406
BLAKE2b-256 d3bddcea5abb1792269e70cc75d5f9ae9adbdfba0f0d08a207eb788ec3b469b6

See more details on using hashes here.

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

Hashes for aioshutil-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e0711de25ade421b70094b2a27c69bef6356127013744fec05f019f36732c1bd
MD5 1604a506319ea897bf7884bdc2864704
BLAKE2b-256 68927020e67ad83095ecc2ce751c24a63df332fb9a34ebfe14bc12a6b21b8f58

See more details on using hashes here.

Supported by

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