GitXplorerGitXplorer
k

aioshutil

public
37 stars
4 forks
2 issues

Commits

List of commits on branch master.
Verified
b5c773f72561ba28f11cbed9301799aa4a297cdf

test on Python 3.13-dev (#13)

kkumaraditya303 committed 6 months ago
Unverified
5b8fb0f054be9c13ceb7090e1dbdd415fb41a5e5

fixup tests

kkumaraditya303 committed 8 months ago
Unverified
5e3df03c1773ce9313bbf92f4263b77272b9340c

Bump to Python 3.12

kkumaraditya303 committed 8 months ago
Verified
4b3e12e1f86728cd460bf29709d41cdb2a5a4a02

Update README.md

kkumaraditya303 committed a year ago
Verified
f3776d20bb624e4cbc086ebdc07eb16a397c116a

Switched to `math.isclose` to compare file timestamps (#11)

DDontPanicO committed 2 years ago
Verified
b70f4a0b13c0308abff4bf733602489f9ae8fa72

Fix type annotations for wrapped functions (#5)

mmjpieters committed 2 years ago

README

The README file for this repository.

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