GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - intake/python-snappy: Python bindings for the snappy google library

BranchesTags
Open more actions menu

Latest commit

 

History

210 Commits
210 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/snappy
src/snappy
 
 
.gitignore
.gitignore
 
 
AUTHORS
AUTHORS
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.rst
README.rst
 
 
build_snappy.sh
build_snappy.sh
 
 
setup.py
setup.py
 
 
test_formats.py
test_formats.py
 
 
test_snappy.py
test_snappy.py
 
 

Repository files navigation

python-snappy

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).

Dependencies

  • cramjam
  • Supports Python >=3.8

Install

Install it from PyPI:

pip install python-snappy

Run tests

# run python snappy tests
nosetest test_snappy.py

# support for cffi backend
nosetest test_snappy_cffi.py

Benchmarks

See cramjam for speed tests.

Commandline usage

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
Snappy - compression library from Google (c)
https://google.github.io/snappy

About

Python bindings for the snappy google library

Resources

Readme
License
Activity
Custom properties

Stars

491 stars

Watchers

12 watching

Forks

103 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.