Skip to main content

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


Download files

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

Source Distribution

aioshutil-0.0.1a0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

aioshutil-0.0.1a0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file aioshutil-0.0.1a0.tar.gz.

File metadata

  • Download URL: aioshutil-0.0.1a0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.2

File hashes

Hashes for aioshutil-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 c8a4fe224b446e82a65ed6f3582dc1e9ea73a6de46c24a14d080f0758daabc30
MD5 71c18bb658ee3472b189221b7b759b4c
BLAKE2b-256 3e1bc9d2d02a4670f42a0a4aa347e768c2255295d2249b7e8c86987fec0ab2b6

See more details on using hashes here.

Provenance

File details

Details for the file aioshutil-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: aioshutil-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.2

File hashes

Hashes for aioshutil-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 47d6f16c60ad13bc7ec3fe13fbc151e763b64048f16512950f7e1128880e9634
MD5 70f2f8269766b1a0077e5b9aa056006b
BLAKE2b-256 79d0af5b825d69f900cb72aa98ab3bf442737d48f34d5cbf227a50fd74363ac4

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