{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/13"}],"enrichment":{"capability":"Async-compatible reimplementation of Python's pathlib with awaitable I/O operations, compatible with asyncio and trio.","skillfed_tags":["async-io","pathlib-alternative"],"use_cases":["Async web scrapers that fetch multiple URLs concurrently and write responses to disk without blocking the event loop.","Building async file utilities or CLI tools that need to read/write many files concurrently.","Replacing pathlib in async codebases where you need to traverse directories with glob() without blocking.","Async data processing pipelines that read input files and write results concurrently."],"what_it_does":"aiopath is a direct reimplementation of Python's pathlib module designed to work with asyncio and trio, making all filesystem I/O operations awaitable. Instead of blocking the event loop during file operations, aiopath lets you perform concurrent disk and network I/O in async code. It mirrors pathlib's class hierarchy and API closely\u2014AsyncPath inherits from Path, and methods that perform I/O are async versions of their synchronous counterparts. Methods like glob() return async generators, and file operations like read_text() and write_bytes() are fully awaitable.\n\nThe package depends on aiofile, anyio, and typing-extensions. It's useful when you're writing async Python code and want to avoid mixing blocking and non-blocking I/O\u2014for example, in web scrapers that need to fetch multiple URLs concurrently and save responses to disk without stalling the event loop. The implementation wraps os.scandir() and DirEntry to make globbing completely asynchronous.","worth_installing":"Yes, if you are actively writing asyncio or trio code and need pathlib-like filesystem operations without blocking. The low install friction and zero known vulnerabilities are positive. However, the dormant maintenance status means no active support for bugs or Python version changes\u2014verify that Python 3.12+ support meets your needs and that the package's behavior is stable for your use case before relying on it in production."},"id":"aiopath","links":{"html":"https://skillfed.io/packages/aiopath","md":"https://skillfed.io/packages/aiopath.md","pypi":"https://pypi.org/project/aiopath/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-10-16","license_spdx":null,"license_treatment":"copyleft","name":"aiopath","python_support":"supports_current","summary":"\ud83d\udcc1 Async pathlib for Python"},"popularity":{"monthly_downloads":209724,"position":9509,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7.7"}
