Hi there, I’m trying to do an endpoint that gets some files from a shared storage (in my case it is Minio), zips them and return the zip file.
To avoid loading all that data in memory or writing it to the FS I’m using generators to read chunks of data.
The service is done but I can’t find a way to use the sanic streaming with that generator since mixing async and generators doesn’t seem go work.
Is there any way I can stream a generator or will I have to either switch everything to async generators or write the zip to a file?
Thanks in advance