UpstreamDataInc / goosebit

A simplistic, opinionated remote update server implementing hawkBit™'s DDI API.
https://goosebit.rtfd.io
Apache License 2.0
18 stars 5 forks source link

Use anyio based async file io operations #127

Closed jameshilliard closed 2 months ago

jameshilliard commented 2 months ago

Alternative to #126.

tsagadar commented 2 months ago

I think it is a good idea to limit dependencies - was not aware that fastapi uses anyio. anyio also has 4x as many monthly downloads than aiofiles. So definitely a solid choice. So I closed #126.

To complete PR I'd also suggest to fully move away from aiofiles and replace the temp file handling as well.

jameshilliard commented 2 months ago

To complete PR I'd also suggest to fully move away from aiofiles and replace the temp file handling as well.

I didn't find temp file handling support in anyio unfortunately.