This adds support for zstd-compressed dumps.
As Python has no inbuilt support for zstd, I've used the pyzstd module, which is essentially identical in usage to the gzip module.
In order to not introduce any required dependencies, this also handles cases where the pyzstd module is not installed.
Note that I've only tested this for reading zstd-compressed dumps. You may want to add test cases, especially for writing.
This adds support for zstd-compressed dumps.
As Python has no inbuilt support for zstd, I've used the
pyzstd
module, which is essentially identical in usage to thegzip
module.In order to not introduce any required dependencies, this also handles cases where the
pyzstd
module is not installed.Note that I've only tested this for reading zstd-compressed dumps. You may want to add test cases, especially for writing.