{ "info": { "author": "Xianshun Chen", "author_email": "xs0040@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: General", "Topic :: Utilities" ], "description": "pycompressor\r\n============\r\n\r\nPackage provides python implementation of string compressor\r\n\r\n.. image:: https://travis-ci.org/chen0040/pycompressor.svg?branch=master\r\n :target: https://travis-ci.org/chen0040/pycompressor\r\n\r\n.. image:: https://coveralls.io/repos/github/chen0040/pycompressor/badge.svg?branch=master\r\n :target: https://coveralls.io/github/chen0040/pycompressor?branch=master\r\n\r\n.. image:: https://scrutinizer-ci.com/g/chen0040/pycompressor/badges/quality-score.png?b=master\r\n :target: https://scrutinizer-ci.com/g/chen0040/pycompressor/?branch=master\r\n\r\n\r\nInstall\r\n=======\r\n\r\nRun the following command to install pycompressor using pip\r\n\r\n.. code-block:: bash\r\n\r\n $ pip install pycompressor\r\n\r\n\r\nUsage:\r\n======\r\n\r\n.. code-block:: python\r\n\r\n\r\n from pycompressor.huffman import HuffmanCompressor\r\n huffman = HuffmanCompressor()\r\n original = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.'\r\n print('before compression: ' + original)\r\n print('length: ' + str(len(original)))\r\n compressed = huffman.compress_to_string(original)\r\n print('after compression: ' + compressed)\r\n print('length: ' + str(len(compressed)))\r\n decompressed = huffman.decompress_from_string(compressed)\r\n print('after decompression: ' + decompressed)\r\n print('length: ' + str(len(decompressed)))", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/chen0040/pycompressor", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pycompressor", "package_url": "https://pypi.org/project/pycompressor/", "platform": "any", "project_url": "https://pypi.org/project/pycompressor/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/chen0040/pycompressor" }, "release_url": "https://pypi.org/project/pycompressor/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Python implementation of a string compressor", "version": "0.0.2" }, "last_serial": 2923894, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b5acfa9ba571d396933496d107b47f18", "sha256": "7c5a751e9768afedd70832cd87247aad9cde58e2f8a1c389575a8bd52924f77c" }, "downloads": -1, "filename": "pycompressor-0.0.1.zip", "has_sig": false, "md5_digest": "b5acfa9ba571d396933496d107b47f18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9364, "upload_time": "2017-06-04T05:16:39", "url": "https://files.pythonhosted.org/packages/17/4e/33775a000ee4a997a71be3708ac59857f983de5c7768100fcc7c5fb19d90/pycompressor-0.0.1.zip" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "5e52db9c9da938b77e70b9e2cd8d3f11", "sha256": "0e935bcc740d142a351e36775b0d79f014ab0f98d2e836dfac92fc0b164d775d" }, "downloads": -1, "filename": "pycompressor-0.0.2.zip", "has_sig": false, "md5_digest": "5e52db9c9da938b77e70b9e2cd8d3f11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9272, "upload_time": "2017-06-04T05:18:45", "url": "https://files.pythonhosted.org/packages/67/74/0d5409e229e0c359a614bef6d7350c5d165b28e5539d0f83df5e3143a327/pycompressor-0.0.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e52db9c9da938b77e70b9e2cd8d3f11", "sha256": "0e935bcc740d142a351e36775b0d79f014ab0f98d2e836dfac92fc0b164d775d" }, "downloads": -1, "filename": "pycompressor-0.0.2.zip", "has_sig": false, "md5_digest": "5e52db9c9da938b77e70b9e2cd8d3f11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9272, "upload_time": "2017-06-04T05:18:45", "url": "https://files.pythonhosted.org/packages/67/74/0d5409e229e0c359a614bef6d7350c5d165b28e5539d0f83df5e3143a327/pycompressor-0.0.2.zip" } ] }