Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebonnal/vocompr
VOCabulary-based COMPRession algorithm. Codec specialized in the compression of texts having a very small disctinct characters set.
https://github.com/ebonnal/vocompr
algorithm codec compression pypi-package python python3 vocabulary
Last synced: 5 days ago
JSON representation
VOCabulary-based COMPRession algorithm. Codec specialized in the compression of texts having a very small disctinct characters set.
- Host: GitHub
- URL: https://github.com/ebonnal/vocompr
- Owner: ebonnal
- License: apache-2.0
- Created: 2019-11-22T14:44:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T15:54:34.000Z (about 4 years ago)
- Last Synced: 2024-08-09T14:06:46.256Z (3 months ago)
- Topics: algorithm, codec, compression, pypi-package, python, python3, vocabulary
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VoCompr (status: POC)
[![Actions Status](https://github.com/enzobnl/vocompr/workflows/test/badge.svg)](https://github.com/enzobnl/pycout/actions) [![Actions Status](https://github.com/enzobnl/vocompr/workflows/PyPI/badge.svg)](https://github.com/enzobnl/pycout/actions)**VOCabulary-based COMPRession algorithm**
*Codec specialized in the compression of texts having a very small disctinct characters set.*
## Install
`pip install vocompr` (or `pip install git+https://github.com/enzobnl/vocompr.git`)
## Usage```python
from vocompr import vocompr, unvocomprwith open("path/vopress_input.txt", "r") as input_file:
input_str = input_file.read()with open("path/output.vocompr", "wb") as output_bytes_file:
output_bytes_file.write(vocompr(input_str))with open("path/output.vocompr", "rb") as input_bytes_file:
print("original text:", unvocompr(input_bytes_file.read()))
```## Author
Enzo Bonnal ([email protected])