79711899

Date: 2025-07-23 12:51:08
Score: 1
Natty:
Report link

I finally re-wrote a StreamingResponse class which takes the file paths to be read and generate the .tar.gz file while sending chunks to the network.

This way, I had to read deeply the tarfile.TarFile and tarfile._Stream and rewrite it.

The whole code is available at this gist: https://gist.github.com/etienne-monier/a608f7174ea808e3f8ac4e714156f3b8

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: emonier