{ "info": { "author": "Sanhe Hu", "author_email": "husanhe@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: System :: Archiving :: Compression" ], "description": ".. image:: https://travis-ci.org/MacHu-GWU/compress-project.svg?branch=master\n :target: https://travis-ci.org/MacHu-GWU/compress-project?branch=master\n\n.. image:: https://codecov.io/gh/MacHu-GWU/compress-project/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/MacHu-GWU/compress-project\n\n.. image:: https://img.shields.io/pypi/v/compress.svg\n :target: https://pypi.python.org/pypi/compress\n\n.. image:: https://img.shields.io/pypi/l/compress.svg\n :target: https://pypi.python.org/pypi/compress\n\n.. image:: https://img.shields.io/pypi/pyversions/compress.svg\n :target: https://pypi.python.org/pypi/compress\n\n.. image:: https://img.shields.io/badge/Star_Me_on_GitHub!--None.svg?style=social\n :target: https://github.com/MacHu-GWU/compress-project\n\n\nWelcome to ``compress`` Documentation\n==============================================================================\n\nThere's lots of mature data compression algorithm you can choose from, ``compress`` provides **normalized API** to use them and **switch between them**.\n\nIt supports:\n\n- `zlib `_.\n- `bz2 `_.\n- `lzma `_, high compression ratio but slow (it's part of standard library after Python3.4, you can use `backports.lzma `_ for versions before that.)\n- `pylzma `_, another implementation, faster in decompression than ``lzma``.\n- `snappy `_, from Google, lower compression ratio but super fast!\n- `lz4 `_, lower ratio, super fast!\n\n.. note::\n\n some package are not installed along with ``compress``. Because **all of them needs C compiler**, you have to manually install them. If you have trouble installing C compiler for your OS, read `THIS TUTORIAL `_.\n\n\nUsage::\n\n >>> from compress import Compressor\n >>> c = Compressor()\n >>> c.use_zlib() # or use_bz2, use_lzma, use_lz4, use_snappy\n >>> c.compress(binary_data, zlib_level=9)\n >>> c.decompress(binary_data)\n\n`This website `_ provides comprehensive comparison and visualization. But how do you know **how it works on your own production environment?**.\n\n``compress`` comes with a tool to run benchmark test for **All test case, All algorithm, All parameters**, and you will get informative stats about ratio, compress/decompress speed in ``.tab`` and ``ascii table`` format. Then You are able to visualize it in the way you preferred.\n\nTo run benchmark test, just::\n\n make up\n make benchmark\n\nIf you use **Windows** (doesn't have ``make`` command), this is the `SOLUTION `_\n\nOf course, you can **extend with your own test case** (`How to extend test case `_).\n\n\nQuick Links\n------------------------------------------------------------------------------\n\n- .. image:: https://img.shields.io/badge/Link-Document-red.svg\n :target: https://compress.readthedocs.io/index.html\n\n- .. image:: https://img.shields.io/badge/Link-API_Reference_and_Source_Code-red.svg\n :target: https://compress.readthedocs.io/py-modindex.html\n\n- .. image:: https://img.shields.io/badge/Link-Install-red.svg\n :target: `install`_\n\n- .. image:: https://img.shields.io/badge/Link-GitHub-blue.svg\n :target: https://github.com/MacHu-GWU/compress-project\n\n- .. image:: https://img.shields.io/badge/Link-Submit_Issue_and_Feature_Request-blue.svg\n :target: https://github.com/MacHu-GWU/compress-project/issues\n\n- .. image:: https://img.shields.io/badge/Link-Download-blue.svg\n :target: https://pypi.python.org/pypi/compress#downloads\n\n\n.. _install:\n\nInstall\n------------------------------------------------------------------------------\n\n``compress`` is released on PyPI, so all you need is:\n\n.. code-block:: console\n\n $ pip install compress\n\nTo upgrade to latest version:\n\n.. code-block:: console\n\n $ pip install --upgrade compress\n\n.. note::\n\n to install lzma, snappy, lz4 for python, it may requires gcc comiler. If you are using Windows,\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/MacHu-GWU//tarball/2017-11-15", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MacHu-GWU/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "compress", "package_url": "https://pypi.org/project/compress/", "platform": "Windows", "project_url": "https://pypi.org/project/compress/", "project_urls": { "Download": "https://github.com/MacHu-GWU//tarball/2017-11-15", "Homepage": "https://github.com/MacHu-GWU/" }, "release_url": "https://pypi.org/project/compress/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "All in one data compression library.", "version": "0.0.2" }, "last_serial": 3334504, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5e6629e7275f2d3af3edcea425481655", "sha256": "029ca725807104c842d146259863838ab37850b43b74202ff26cc7334014d705" }, "downloads": -1, "filename": "compress-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "5e6629e7275f2d3af3edcea425481655", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4054, "upload_time": "2017-11-12T00:35:08", "url": "https://files.pythonhosted.org/packages/36/f2/ebb84b6c9a4aeeaf8d52dda0347bc960169a6b829003022c0e0af534cf2f/compress-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ab19171cf29316b563683050a165e89", "sha256": "204e929d69bae10bd106ffaa595091da32c1a552d2e4da7b55b9df183b2f91f4" }, "downloads": -1, "filename": "compress-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0ab19171cf29316b563683050a165e89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4935, "upload_time": "2017-11-12T00:35:09", "url": "https://files.pythonhosted.org/packages/c3/89/ee2b7cd546585cd7b5de3c4955a8568a9433caa0d3d3cb04f0c12e3bc613/compress-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "e9479d93278501afedae04cd5721e2b8", "sha256": "04bbfa76cc1f0e33ae5de76145a2933208e95cb7d5ccd2e60287afd169030943" }, "downloads": -1, "filename": "compress-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e9479d93278501afedae04cd5721e2b8", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 46649, "upload_time": "2017-11-15T09:20:41", "url": "https://files.pythonhosted.org/packages/b1/de/6b765ea415f156828e4033ee76c0825d9f14f5b07ad59567602f6750c504/compress-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be08655e97645aa663bd345d237f6598", "sha256": "95d68985b8c0e3e0bb794f60e7b6be5af048355aba0eaea4b613f651d4d4ed40" }, "downloads": -1, "filename": "compress-0.0.2.tar.gz", "has_sig": false, "md5_digest": "be08655e97645aa663bd345d237f6598", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25322, "upload_time": "2017-11-15T09:20:42", "url": "https://files.pythonhosted.org/packages/c4/63/74d1ab91e52f34c31c142cb0098d34107671434d2453af83ad0940d2466d/compress-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e9479d93278501afedae04cd5721e2b8", "sha256": "04bbfa76cc1f0e33ae5de76145a2933208e95cb7d5ccd2e60287afd169030943" }, "downloads": -1, "filename": "compress-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "e9479d93278501afedae04cd5721e2b8", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 46649, "upload_time": "2017-11-15T09:20:41", "url": "https://files.pythonhosted.org/packages/b1/de/6b765ea415f156828e4033ee76c0825d9f14f5b07ad59567602f6750c504/compress-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be08655e97645aa663bd345d237f6598", "sha256": "95d68985b8c0e3e0bb794f60e7b6be5af048355aba0eaea4b613f651d4d4ed40" }, "downloads": -1, "filename": "compress-0.0.2.tar.gz", "has_sig": false, "md5_digest": "be08655e97645aa663bd345d237f6598", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25322, "upload_time": "2017-11-15T09:20:42", "url": "https://files.pythonhosted.org/packages/c4/63/74d1ab91e52f34c31c142cb0098d34107671434d2453af83ad0940d2466d/compress-0.0.2.tar.gz" } ] }