| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Python library for the snappy compression library from Google. This library is distributed under the New BSD License (https://opensource.org/license/bsd-3-clause).
Install it from PyPI:
pip install python-snappy
# run python snappy tests nosetest test_snappy.py # support for cffi backend nosetest test_snappy_cffi.py
See cramjam for speed tests.
You can invoke Python Snappy to compress or decompress files or streams from the commandline after installation as follows
Compressing and decompressing a file:
$ python -m snappy -c uncompressed_file compressed_file.snappy $ python -m snappy -d compressed_file.snappy uncompressed_file
Compressing and decompressing a stream:
$ cat uncompressed_data | python -m snappy -c > compressed_data.snappy $ cat compressed_data.snappy | python -m snappy -d > uncompressed_data
You can get help by running
$ python -m snappy --help
| Back | FazBrowse Home | New Git URL |