This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author liad100
Recipients eric.smith, liad100, rushter
Date 2018-08-14.14:09:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534255752.47.0.56676864532.issue34393@psf.upfronthosting.co.za>
In-reply-to
Content
I'm sure I will find a work-around.
I posted it for other who will face the same issue as me.
There are many who uses cloud storage but not many work with PB size files. This will likely to change in the near future as more and more company start to process huge amount of data.

I'm not sure what you mean by designing an API. I think you sale it up for no need. It simply add of optional parameter which will trigger compression of gzip. That's it. Nothing sophisticated. 

Something like:

json.dumps(data, outfile, sort_keys=True,compression='gzip')

compression - Optional. A string representing the compression to use in the output. Allowed values are ‘gzip’.
History
Date User Action Args
2018-08-14 14:09:12liad100setrecipients: + liad100, eric.smith, rushter
2018-08-14 14:09:12liad100setmessageid: <1534255752.47.0.56676864532.issue34393@psf.upfronthosting.co.za>
2018-08-14 14:09:12liad100linkissue34393 messages
2018-08-14 14:09:12liad100create