Text compression tool
Project description
PyCompress
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 -d /tmp/compressed.zf /usr/share/dict/words
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 -d /tmp/original /tmp/compressed.zf
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
Installation
pip install trenzalore
Will install the package and leave an application named pycompress for using the command line utility.
Development
To install the package in development mode, run:
make dev
And run the tests with:
make test
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for trenzalore-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cdb4ced4ad1e95253f741ea2a4a2358544235d81e8b058a9bc6fac14aaf78af |
|
MD5 | b8d131964592e749eed8979b6d12237b |
|
BLAKE2b-256 | b85a71137dea01fced9c56c27b66ef484690b9b5725355a53b505db716be4ce5 |