explosion / srsly

🦉 Modern high-performance serialization utilities for Python (JSON, MessagePack, Pickle)
MIT License
432 stars 31 forks source link

Add gzipped jsonl reader #82

Closed RXminuS closed 1 year ago

RXminuS commented 1 year ago

Add a simple modification to the jsonl reader that unzips a file. If the API instead of just allowing a path also allowed to pass in a file stream I could have handled it outside of this, but this seems the most straightforward solutions atm.

rmitsch commented 1 year ago

Hi @RXminuS, thanks for your contribution! This would be a useful feature. Before considering this for merging, we'd like this PR to also:

Be aware that your current code is not valid Python. Let me know if you'd like to continue working on this! :-)

rmitsch commented 1 year ago

Implemented in https://github.com/explosion/srsly/pull/84.