Tinche / aiofiles

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

about code generator #99

Closed GoddessLuBoYan closed 2 years ago

GoddessLuBoYan commented 3 years ago

your idea is so good(use executor to run async task) however, anyone can not list all the functions. so, what if use a code generator to generate all the api

Tinche commented 3 years ago

Not sure what exactly you're suggesting, generating docs or the async wrappers differently?

GoddessLuBoYan commented 3 years ago

emmm, I mean, there's so many functions in module 'os', 'tempfile', etc. however, it's difficult to copy all the functions into your package. you see, now there's many issues that want to add built-in function support

so, if you can generate all the functions to async mode or, if you can public the normal async-wrap the package will be more univeral

Tinche commented 2 years ago

Thanks for the suggestion, I'll consider it.