Skip to main content

Universal lossless compressor — auto-detects text/binary

Project description

Simler v4.5.0 — Universal Lossless Compressor

Simler is a fast, universal lossless compressor designed for text, images, audio, PDFs, and binaries. It supports multiple algorithms, integrity checks, streaming I/O, and can be used both from CLI and Python.

Key Features:

Algorithms: Huffman (word/phrase-aware), zlib, gzip, lzma

Integrity checks: sha256, crc32, or none

Streaming/chunked I/O for large files (memory-friendly)

CLI + Python API support

Phrase mode for better text compression

Multi-platform: works on desktops, servers, and edge devices

Suitable for storage savings, DB/AI pipelines, and large dataset handling


How to Use

Command Line

Compress a file:

python simler.py input_file output_file -a auto -l 6 --phrase --integrity sha256

Options:

input_file – file to compress

output_file – compressed output (.sim recommended)

-a / --algo – algorithm: auto, huffman, zlib, gzip, lzma

-l / --level – compression level 1–9

--phrase – enable Huffman phrase mode (text only)

--integrity – checksum: sha256, crc32, or none

Decompress a file:

python simler.py input_file.sim output_file --decompress

Automatically detects algorithm from metadata

Verifies integrity if SHA256 or CRC32 is used


Python API

from simler import Simler

Initialize compressor

sim = Simler(algo="auto", level=6, integrity="sha256")

Compress a file

sim.save_sim("data.txt", "data.sim", phrase_mode=True)

Decompress a file

data = sim.load_sim("data.sim")

Compression ratio

ratio = sim.get_compression_ratio("data.txt", "data.sim") print(f"Compression ratio: {ratio:.2f}%")

API Parameters:

algo – compression algorithm

level – compression level (zlib/gzip/lzma)

phrase_mode – Huffman phrase mode for text

integrity – checksum type

Notes:

Huffman mode works best on UTF-8 text and may need sufficient RAM for dictionary building

Binary/non-text files default to zlib/lzma/gzip for reliability

Supports large file compression with minimal memory overhead

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

simler-4.5.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simler-4.5.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file simler-4.5.0.tar.gz.

File metadata

  • Download URL: simler-4.5.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for simler-4.5.0.tar.gz
Algorithm Hash digest
SHA256 6156277f5e091e9f565b7e31ec412b1e834fc2cda742f25baa66adc36c79402b
MD5 8bbd378c2d49fd6dc979eac3b3e2f108
BLAKE2b-256 bb5ff4a037ebc1174f6a6e5e42af52f9c960f04ea3d6c09b7b9cd4ae54e6c7eb

See more details on using hashes here.

File details

Details for the file simler-4.5.0-py3-none-any.whl.

File metadata

  • Download URL: simler-4.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for simler-4.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea0e78d8f1f1a6ad2dccfffcc691cb246f9b53150dd1c217f29e80d960df691
MD5 1cd523049e60b6d7bc97df2c13670805
BLAKE2b-256 c8454d55771f35dc8c0a6fcf2d972f6f52ff1ae3f10410b913432b808453cd64

See more details on using hashes here.

Supported by

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