Closed rlrs closed 7 months ago
Whoops, looks like the linters failed. Can you please fix the error and push?
Never mind, fixed it myself. Thanks for taking care of this!
Hi 👋
This PR only adds support for reading. @rlrs can you open another PR to fix writing?
In [1]: from smart_open import open
In [2]: with open('~/Downloads/test.zst', 'w') as fp:
...: fp.write('abc')
...:
---------------------------------------------------------------------------
UnsupportedOperation Traceback (most recent call last)
Cell In[2], line 2
1 with open('~/Downloads/test.zst', 'w') as fp:
----> 2 fp.write('abc')
UnsupportedOperation: not writable
Can you have a look at https://github.com/piskvorky/smart_open/pull/812 @ddelange?
If it looks good, we'll make another bugfix release.
Adds zstandard compression support, as requested in #799.
I made it an optional feature, because it looks like every other feature that has dependencies is also an optional feature. Obviously this means that the tests only work if the feature is installed.