aiopath icon indicating copy to clipboard operation
aiopath copied to clipboard

Drop anyio dependency

Open miili opened this issue 6 months ago • 0 comments

Hi @alexdelorenzo,

thanks for this handy library. Delving into the code I cannot see the necessity for anyio dependency.

stdlib asyncio provides to_thread or loop.run_in_executor to push sync functions to threads. What is the motivation to using AnyIO?

Maybe aiofiles can be demoted to dev dependency, as it is only used by tests. To clean the installation procedure we could remove setup.py and requirements*.txt to use only pyproject.toml / poetry.

Would a PR be welcome?

Thanks and merry christmas!

M

miili avatar Dec 24 '23 11:12 miili