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.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aioshutil-1.2.tar.gz
Algorithm Hash digest
SHA256 ce3a69a1882cf930a650d23843bbcbea32559600ef1638f5ba0c0fa35fc345ac
MD5 e0d5e4861fcffa5dde04396e7908cafa
BLAKE2b-256 c7f9f16abdd5f8e708199ba628ad314bfb878623be28948995bcd030348e262f

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for aioshutil-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64877f8fd2e819077e3e41f169267f89a1a2047af00ba6e569c8a79bf464f435
MD5 9bde8384c45f376b713b9b7f50b9184d
BLAKE2b-256 a164f879e1a8b112ee42fb8b81a5a9d56a0260dabe78d0c6351be7ee3fcf72be

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