--- id: aioshutil version: "1.6" license: BSD License license_treatment: permissive maintenance: aging --- # aioshutil — Asynchronous shutil module. License: permissive · Maintenance: aging · Downloads: 385.9K/mo ## What it is and what it does aioshutil wraps the standard library's shutil module to provide async-compatible versions of its functions. The standard shutil module performs blocking I/O operations that freeze an asyncio event loop when called directly; aioshutil offloads these operations to a thread pool, allowing the event loop to remain responsive. It mirrors shutil's API closely—functions like rmtree, copytree, move, and copy are available as async coroutines—and includes the same exception types for consistency. The package is useful in asyncio applications that need to perform file system operations without stalling concurrent tasks. It supports modern Python versions and runs on both CPython and PyPy. With only typing-extensions as a runtime dependency, it has minimal overhead and integrates straightforwardly into existing async codebases. Use it for: - Removing or copying large directory trees in an async web server without blocking request handling. - Performing batch file operations (move, archive) in a concurrent task scheduler without stalling other tasks. - Implementing async cleanup routines in long-running services that must remain responsive to events. - Building async CLI tools that need to manipulate files without freezing the event loop during I/O. - Handling file operations in async test suites where blocking calls would timeout or deadlock. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides async-friendly versions of shutil functions that run blocking file operations in a thread pool, preventing event loop blocking in asyncio applications. Yes, if you need shutil-like operations in an asyncio application. The API is familiar, install friction is minimal, and there are no known vulnerabilities. However, note that the package is aging (last update 297 days ago) and has modest adoption. It remains a solid choice for straightforward async file operations, but verify that its thread-pool approach meets your performance requirements. ## Install pip install aioshutil uv add aioshutil poetry add aioshutil ## Installing aioshutil Before you install: Low install friction with a single lightweight dependency (typing-extensions). Maintenance status is aging—last commit was 2025-10-21 and the package has not been updated in 297 days, though the repository remains active and not archived. License in practice: BSD License (permissive) places no significant restrictions on use, modification, or distribution in most contexts. Quickstart: pip install aioshutil from aioshutil import rmtree import asyncio async def main(): await rmtree("/tmp/mydir") asyncio.run(main()) Requires Python 3.8 or later; intended for use within an asyncio event loop. Verify before relying: - Whether thread pool size is configurable or tunable for high-concurrency scenarios. - Performance characteristics compared to native async file libraries in real-world workloads. - Whether all shutil functions are fully implemented or if some have limitations. ## Package facts - License: BSD License (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 385.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags async file operations, asyncio shutil, non-blocking file copy, async rmtree, asyncio file utilities, thread pool file operations, async directory operations, asyncio, file-operations [View on SkillFed](https://skillfed.io/packages/aioshutil) · [View on PyPI](https://pypi.org/project/aioshutil/)