aiofiles icon indicating copy to clipboard operation
aiofiles copied to clipboard

*importlib.resources* support

Open aaronclong opened this issue 2 years ago • 2 comments

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.

aaronclong avatar Feb 21 '23 20:02 aaronclong

Sure, if someone contributed it ;)

Tinche avatar Feb 22 '23 22:02 Tinche

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

aaronclong avatar Feb 24 '23 20:02 aaronclong