Skip to main content

Universal lossless compressor — bulletproof, streaming, CLI + API

Project description

Simler v50.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-5.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

simler-5.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for simler-5.1.0.tar.gz
Algorithm Hash digest
SHA256 47c298ccf707ec08da88e2269e62581463aa53cfb127f6a01e558545206e8cdf
MD5 525cc54ce0d24c8208aac78be8def432
BLAKE2b-256 4c110bd3d51a28535947021b8d0ff781a7115f2a68679053357dccb17d1179e8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for simler-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c02b3dd3745166aa92115ad98068fa507a29867882c4122b2e99adf5e69bc9a
MD5 007ff134e391f0556e978b6d7722c8fe
BLAKE2b-256 260fe15eae2ff27b4a09eb8cc6846b8add1452dc14f88f6d90f1e584e1d60b94

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