huffman-project
A python package to compress data based on character frequency
This repository contains files for huffman package and test files for it in tests/ directory.
Installation instructions
Clone the repo:
pip3 install huffman-project
Installation instructions (dev)
Clone the repo:
git clone git@github.com:M4verickFr/huffman-project.git
Then install the dependencies and install the package:
pip3 install -r requirements.txt
pip3 install -e .
Usage
Import huffman package.
from huffman import Huffman
Then use methods compress or comrpessFile.
h = Huffman()
h.compress("Bonjour!!")
h.compressFile(pathFile)
For examples of use, see the test folder.
Unit Test Case
You can run Unit Test Case with
python3 -m unittest tests/HuffmanTestCase.py
python3 -m unittest tests/TreeTestCase.py
All tests must be passed
License
This project is under the Apache 2.0 License.
Metadata
Release files for huffman-project 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| huffman-project-0.2.2.tar.gz | 4.8 kB | Without provenance | Details for huffman-project-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| huffman_project-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for huffman_project-0.2.2-py3-none-any.whl |
Total release size: 19.1 kB
Release files / huffman-project-0.2.2.tar.gz
| Download URL | huffman-project-0.2.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3730edc2d72bc53bb76dee6eff93f7afbdf05e23b36678d04ddbc8ab7968a097
|
|
BLAKE2b-256 checksum How to use checksums |
6c62eb5593a12beb4fe5a633cf8614e0173056b5a9cce0dd4cadb25f7cd42f41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Release files / huffman_project-0.2.2-py3-none-any.whl
| Download URL | huffman_project-0.2.2-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8cc25d06d8f5a31e080e6a8c4add433ca3ab1eb7ab592425f3c2d89c053774a
|
|
BLAKE2b-256 checksum How to use checksums |
1a2fc908b417bd1b528487d45bff2b881d9eb366f9db278d97ef5d5620bfbe96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
|
Security for huffman-project 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.