Skip to main content

Text compression tool

Project description

CI Status Documentation Status coverage


Pycompressor is a tool for compressing text files into smaller ones, as well as extracting compressed files back into the original content.

It can be used as a program or imported as a package module, and use the functions defined on it.

For example, in order to compress one file:

$ pycompress -c /usr/share/dict/words -d /tmp/compressed.zf

The original file, in this example has a size of ~4.8M, and the tool left the resulting file at /tmp/compressed.zf, with a size of ~2.7M.

In order to extract it:

$ pycompress -x /tmp/compressed.zf -d /tmp/original

You can specify the name of the resulting file with the -d flag. If you don’t indicate a name for the resulting file, the default will be <original-file>.comp.

For the full options, run:

$ pycompress -h


pip install trenzalore

Will install the package and leave an application named pycompress for using the command line utility.


To install the package in development mode, run:

make dev

And run the tests with:

make test

Tests have dependencies that can be installed by running make testdeps.

Before submitting a pull request, run the checklist to make sure all dependencies are met (code style/linting, tests, pass, etc.). This is automated with:

make checklist

This will run the checks for the code style (make lint), as well as the tests (make test).

In order to check that the project runs with the supported Python versions, run:

make tox

Project details

Download files

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

Source Distribution

trenzalore-0.2.0.tar.gz (9.1 kB view hashes)

Uploaded source

Built Distribution

trenzalore-0.2.0-py3-none-any.whl (11.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page