alexdelorenzo / aiopath

📁 Asynchronous pathlib for Python
https://alexdelorenzo.dev
GNU Lesser General Public License v3.0
162 stars 6 forks source link

Drop anyio dependency #34

Open miili opened 10 months ago

miili commented 10 months ago

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