simler


Namesimler JSON
Version 5.0.0 PyPI version JSON
download
home_pagehttps://github.com/useragentatly/Simler-v4.5.0
SummaryUniversal lossless compressor — auto-detects text/binary
upload_time2025-10-28 07:13:40
maintainerNone
docs_urlNone
authoruseragentatly
requires_python>=3.8
licenseNone
keywords compression huffman gzip lzma zlib text binary streaming auto
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/useragentatly/Simler-v4.5.0",
    "name": "simler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "compression huffman gzip lzma zlib text binary streaming auto",
    "author": "useragentatly",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/2c/aa/5788321da6f0fffa7de37ff12b0dd6e65aa88d895c7b393b6299f9c6e623/simler-5.0.0.tar.gz",
    "platform": null,
    "description": "Simler v50.0 \u2014 Universal Lossless Compressor\n\nSimler is a fast, universal lossless compressor designed for text, images, audio, PDFs, and binaries.\nIt supports multiple algorithms, integrity checks, streaming I/O, and can be used both from CLI and Python.\n\nKey Features:\n\nAlgorithms: Huffman (word/phrase-aware), zlib, gzip, lzma\n\nIntegrity checks: sha256, crc32, or none\n\nStreaming/chunked I/O for large files (memory-friendly)\n\nCLI + Python API support\n\nPhrase mode for better text compression\n\nMulti-platform: works on desktops, servers, and edge devices\n\nSuitable for storage savings, DB/AI pipelines, and large dataset handling\n\n\n\n---\n\nHow to Use\n\nCommand Line\n\nCompress a file:\n\npython simler.py input_file output_file -a auto -l 6 --phrase --integrity sha256\n\nOptions:\n\ninput_file \u2013 file to compress\n\noutput_file \u2013 compressed output (.sim recommended)\n\n-a / --algo \u2013 algorithm: auto, huffman, zlib, gzip, lzma\n\n-l / --level \u2013 compression level 1\u20139\n\n--phrase \u2013 enable Huffman phrase mode (text only)\n\n--integrity \u2013 checksum: sha256, crc32, or none\n\n\nDecompress a file:\n\npython simler.py input_file.sim output_file --decompress\n\nAutomatically detects algorithm from metadata\n\nVerifies integrity if SHA256 or CRC32 is used\n\n\n\n---\n\nPython API\n\nfrom simler import Simler\n\n# Initialize compressor\nsim = Simler(algo=\"auto\", level=6, integrity=\"sha256\")\n\n# Compress a file\nsim.save_sim(\"data.txt\", \"data.sim\", phrase_mode=True)\n\n# Decompress a file\ndata = sim.load_sim(\"data.sim\")\n\n# Compression ratio\nratio = sim.get_compression_ratio(\"data.txt\", \"data.sim\")\nprint(f\"Compression ratio: {ratio:.2f}%\")\n\nAPI Parameters:\n\nalgo \u2013 compression algorithm\n\nlevel \u2013 compression level (zlib/gzip/lzma)\n\nphrase_mode \u2013 Huffman phrase mode for text\n\nintegrity \u2013 checksum type\n\n\nNotes:\n\nHuffman mode works best on UTF-8 text and may need sufficient RAM for dictionary building\n\nBinary/non-text files default to zlib/lzma/gzip for reliability\n\nSupports large file compression with minimal memory overhead\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Universal lossless compressor \u2014 auto-detects text/binary",
    "version": "5.0.0",
    "project_urls": {
        "Homepage": "https://github.com/useragentatly/Simler-v4.5.0"
    },
    "split_keywords": [
        "compression",
        "huffman",
        "gzip",
        "lzma",
        "zlib",
        "text",
        "binary",
        "streaming",
        "auto"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "63a8e1b9c5a5f32df6697f452d70f7bb752a71dd77e7634b4ed81f9fe36cbe88",
                "md5": "f105d40740ac516a90c1348cbbc5907f",
                "sha256": "cf4d8dd64d045dd7bbf2466b37827f547b5679d01fedeecb7c63721f75dde830"
            },
            "downloads": -1,
            "filename": "simler-5.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f105d40740ac516a90c1348cbbc5907f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6570,
            "upload_time": "2025-10-28T07:13:39",
            "upload_time_iso_8601": "2025-10-28T07:13:39.924612Z",
            "url": "https://files.pythonhosted.org/packages/63/a8/e1b9c5a5f32df6697f452d70f7bb752a71dd77e7634b4ed81f9fe36cbe88/simler-5.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2caa5788321da6f0fffa7de37ff12b0dd6e65aa88d895c7b393b6299f9c6e623",
                "md5": "a780f9cd4bdfc402d472eac08234424a",
                "sha256": "4ce4fed8e5f590c93f40e4b0d1d486dd8b6c522a8d8372f3b63c8ba9c4895dee"
            },
            "downloads": -1,
            "filename": "simler-5.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a780f9cd4bdfc402d472eac08234424a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6069,
            "upload_time": "2025-10-28T07:13:40",
            "upload_time_iso_8601": "2025-10-28T07:13:40.867446Z",
            "url": "https://files.pythonhosted.org/packages/2c/aa/5788321da6f0fffa7de37ff12b0dd6e65aa88d895c7b393b6299f9c6e623/simler-5.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-28 07:13:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "useragentatly",
    "github_project": "Simler-v4.5.0",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "simler"
}
        
Elapsed time: 0.98852s