Tinche / aiofiles

File support for asyncio
Apache License 2.0
2.76k stars 150 forks source link

*importlib.resources* support #159

Open aaronclong opened 1 year ago

aaronclong commented 1 year ago

I am wondering if there is a possibility to add an importlib.resources asyncio version to this library.

This differs from standard files because it can load bundled/resource files especially in certain deployments. __file__ is relatively unstable and breaks in certain deployments. Hence why python added this new module to handle these cases for resource files and etc.

Tinche commented 1 year ago

Sure, if someone contributed it ;)

aaronclong commented 1 year ago

Fair haha. I have to get familiar with how this library is asyncing the raw io calls.