Some WSGI servers pass you the raw file descriptor as wsgi.input, but this is 
not guaranteed (wsgiref does for instance). Instead you should return an 
iterator that can be read incrementally so that your WSGI server can chunk 
responses.



> On Aug 9, 2022, at 10:38, Mikko Ohtamaa <mi...@redinnovation.com> wrote:
> 
> Hi all,
> 
> I'd like to stream dynamically generated Parquet-files from Pyramid server. 
> Parquet library itself offers writing to any file-like object. I am aware of 
> app_iter and FileResponse interfaces in Pyramid. However, does Pyramid (or 
> any example or utility class) offer a Python file-like interface, where I 
> could just dynamically .write() stuff?
> 
> Br,
> Mikko
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discuss+unsubscr...@googlegroups.com 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUudomfEGYnqAUk57XgOvatDLtFGGk%2Be5tFzu0w81Ez4Lg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUudomfEGYnqAUk57XgOvatDLtFGGk%2Be5tFzu0w81Ez4Lg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/2DB1D478-20A5-4F02-96BE-8F0EA792AFBF%400x58.com.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to