intake / intake/python-snappy

Example Mismatch

未关闭
#90 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
490
派生
104
PR 合并指标
30 天内没有已合并 PR

描述

Python example to compress a string with snappy can't be decompressed with the command line tool example to decompress a file with the same string in it. The command line tool should be expanded to support this use case, or at the very least a second programmatic example explaining how to create a file which can be read with the tool.

```
import snappy
import os
fout = open('compressed_file.snappy', 'w')
buf ='hello world'
buf = snappy.compress(buf)
fout.write(buf)
fout.close()
os.system("python -m snappy -d compressed_file.snappy uncompressed_file");
```

UncompressError: chunk truncated

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。