Skip to main content

Simple context manager for wrapping file compression and uncompression operations.

Project description

Compander
=========

Simple context manager to wrap compression and uncompression of gzip and bzip2 files.

Example
-------

```
from compander import Compander

with Compander() as c: # Default is bz2
c.compress('uncompressed_file','compressed_file.bz2')

with Compander('bz2') as c:
c.uncompress('compressed_file.bz2','uncompressed_file')

with Compander('gz') as c:
c.compress('uncompressed_file','compressed_file.gz')

with Compander('gz') as c:
c.uncompress('compressed_file.gz','uncompressed_file')
```

Testing
-------

* python setup.py test

Installation
------------

* python setup.py install

Development
-----------

* pip install -r requirements.txt
* python setup.py test
* python setup.py develop

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for compander, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size compander-0.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page