Re: [pylons-discuss] Serving large authenticated files

2021-07-14 Thread Steve Piercy
On 7/14/21 9:34 PM, Mikko Ohtamaa wrote: > Generally in this situation I offload the file to S3 or similar, and have > Pyramid generate a signed URL to redirect to.  Operationally much simpler. > > > A good point. I will check this out if this makes sense pricing wise. I am > not using EC2

Re: [pylons-discuss] Serving large authenticated files

2021-07-14 Thread Mikko Ohtamaa
Hi Theron and others, On Wed, 14 Jul 2021 at 17:57, Theron Luhn wrote: > Pyramid has FileResponse > https://docs.pylonsproject.org/projects/pyramid/en/latest/api/response.html#pyramid.response.FileResponse, > which does use wsgi.file_wrapper you linked to (if available). > This is perfect and

Re: [pylons-discuss] Serving large authenticated files

2021-07-14 Thread Michael Merickel
I have some scenarios where I need to do some processing (envelope decryption) on a file from s3 prior to download and then let the user download it and this is how I do it as well. 1. Download giant file from S3 to temporary file. 2. Process file to another temporary file. 3. Return a

Re: [pylons-discuss] Serving large authenticated files

2021-07-14 Thread Theron Luhn
Pyramid has FileResponse https://docs.pylonsproject.org/projects/pyramid/en/latest/api/response.html#pyramid.response.FileResponse , which does use wsgi.file_wrapper you linked to (if

[pylons-discuss] Serving large authenticated files

2021-07-14 Thread Mikko Ohtamaa
Hi, I need to serve large authenticated files (several gigabytes). I will do an API key check before the user can download a file. What is the most efficient way to serve these out from Pyramid? Assuming I do not want to block processes or threads - is it possible? - Zope 2 used to have a