{ "info": { "author": "Iotic Labs Ltd", "author_email": "vilnis.termanis@iotic-labs.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: C", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Overview\n========\n\nThis is an `LZ4 `__-frame compression library for Python\nv3.2+ (and 2.7+), bound to Yann Collet's `LZ4 C\nimplementation `__.\n\nInstalling / packaging\n======================\n\n.. code:: shell\n\n # To get from PyPI\n pip3 install py-lz4framed\n\n # To only build extension modules inline (e.g. in repository)\n python3 setup.py build_ext -i\n\n # To build & install globally\n python3 setup.py install\n\n**Notes**\n\n- The above as well as all other python3-using commands should also run\n with v2.7+\n- This module is also available via `Anaconda\n (conda-forge) `__\n (with binaries for Linux, OSX and Windows)\n- PyPI releases are signed with the `Iotic Labs Software release\n signing key `__\n\nUsage\n=====\n\nSingle-function operation:\n\n.. code:: python\n\n import lz4framed\n\n compressed = lz4framed.compress(b'binary data')\n\n uncompressed = lz4framed.decompress(compressed)\n\nTo iteratively compress (to a file or e.g. BytesIO instance):\n\n.. code:: python\n\n with open('myFile', 'wb') as f:\n # Context automatically finalises frame on completion, unless an exception occurs\n with Compressor(f) as c:\n try:\n while (...):\n c.update(moreData)\n except Lz4FramedNoDataError:\n pass\n\nTo decompress from a file-like object:\n\n.. code:: python\n\n with open('myFile', 'rb') as f:\n try:\n for chunk in Decompressor(f):\n decoded.append(chunk)\n except Lz4FramedNoDataError:\n # Compress frame data incomplete - error case\n ...\n\nSee also `lz4framed/\\_\\_main\\_\\_.py `__ for\nexample usage.\n\nDocumentation\n=============\n\n.. code:: python\n\n import lz4framed\n print(lz4framed.__version__, lz4framed.LZ4_VERSION, lz4framed.LZ4F_VERSION)\n help(lz4framed)\n\nCommand-line utility\n====================\n\n.. code:: shell\n\n python3 -mlz4framed\n USAGE: lz4framed (compress|decompress) (INFILE|-) [OUTFILE]\n\n (De)compresses an lz4 frame. Input is read from INFILE unless set to '-', in\n which case stdin is used. If OUTFILE is not specified, output goes to stdout.\n\nTests\n=====\n\nStatic\n------\n\nThis library has been checked using\n`flake8 `__ and\n`pylint `__, using a modified configuration - see\n*pylint.rc* and *flake8.cfg*.\n\nUnit\n----\n\n.. code:: shell\n\n python3 -m unittest discover -v .\n\nWhy?\n====\n\nThe only existing lz4-frame interoperable implementation I was aware of\nat the time of writing\n(`lz4tools `__) had the following\nlimitations:\n\n- Incomplete implementation in terms of e.g. reference & memory leaks\n on failure\n- Lack of unit tests\n- Not thread safe\n- Does not release GIL during low level (de)compression operations\n- Did not address the requirements for an external project\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Iotic-Labs/py-lz4framed", "keywords": "lz4framed", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "py-lz4framed", "package_url": "https://pypi.org/project/py-lz4framed/", "platform": "", "project_url": "https://pypi.org/project/py-lz4framed/", "project_urls": { "Homepage": "https://github.com/Iotic-Labs/py-lz4framed" }, "release_url": "https://pypi.org/project/py-lz4framed/0.13.0/", "requires_dist": null, "requires_python": "", "summary": "LZ4Frame library for Python (via C bindings)", "version": "0.13.0" }, "last_serial": 5124419, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "1a2873976f582b8acfeb1aa53cbb3a28", "sha256": "be316f56d0b45a27d204f2c49684a5719befbfcbca351e117d02211c20e2995b" }, "downloads": -1, "filename": "py-lz4framed-0.10.0.tar.gz", "has_sig": true, "md5_digest": "1a2873976f582b8acfeb1aa53cbb3a28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 88611, "upload_time": "2017-09-05T15:07:18", "url": "https://files.pythonhosted.org/packages/c7/5d/e235ad7de02c56c01f5aee67d4498d1bf184e1a6971a77e36303596ebb84/py-lz4framed-0.10.0.tar.gz" } ], "0.11.0": [ { "comment_text": "", "digests": { "md5": "802adb8398f0cd6a5f92103e7e52c68e", "sha256": "4507ab475a3965b9cb75b5ebe2f86afcbf6472d036417e4d0a0bdd205418e494" }, "downloads": -1, "filename": "py-lz4framed-0.11.0.tar.gz", "has_sig": true, "md5_digest": "802adb8398f0cd6a5f92103e7e52c68e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 92725, "upload_time": "2018-02-03T21:24:49", "url": "https://files.pythonhosted.org/packages/34/ed/222c4e4ab211611cad669a44318fe3ac51dea991fa6b3a331559e723e5f0/py-lz4framed-0.11.0.tar.gz" } ], "0.12.0": [ { "comment_text": "", "digests": { "md5": "aa01594e48f41d4aff7e1dcd9a1a4013", "sha256": "7de02790fc3c5399a0893ccfe95bab5050f77bf583f375f6a1265de17fefb750" }, "downloads": -1, "filename": "py-lz4framed-0.12.0.tar.gz", "has_sig": true, "md5_digest": "aa01594e48f41d4aff7e1dcd9a1a4013", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106484, "upload_time": "2018-07-02T17:20:29", "url": "https://files.pythonhosted.org/packages/97/cb/602045f94acb8b9fa329d4db1ab03d06c20142266489a11c594319edb72d/py-lz4framed-0.12.0.tar.gz" } ], "0.13.0": [ { "comment_text": "", "digests": { "md5": "bf29770674fa8a9994b9ec431b867286", "sha256": "338cce7e8d0553f6df65921fdd85a04feed8f01a9aeee91f530b1bf8c6edba65" }, "downloads": -1, "filename": "py-lz4framed-0.13.0.tar.gz", "has_sig": true, "md5_digest": "bf29770674fa8a9994b9ec431b867286", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 104941, "upload_time": "2018-10-22T21:51:01", "url": "https://files.pythonhosted.org/packages/23/06/77fcb0ae69e4431584d67478166c5f9019bf175ba36ffe12250db5757552/py-lz4framed-0.13.0.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "d23eab46cabeb7dc8154083d13ae3f5d", "sha256": "4cac23ac87c2bdc7dea00ea0c39f6751bbeb01cb5337038062e97d5b900c79d8" }, "downloads": -1, "filename": "py-lz4framed-0.9.6.tar.gz", "has_sig": true, "md5_digest": "d23eab46cabeb7dc8154083d13ae3f5d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82402, "upload_time": "2017-03-05T19:33:08", "url": "https://files.pythonhosted.org/packages/28/d5/cebbb129fab5a9ca16086e884a8a26f3d75a3b9ed4d2f4b350cb90468eee/py-lz4framed-0.9.6.tar.gz" } ], "0.9.7": [ { "comment_text": "", "digests": { "md5": "a186016278e6c99e120c7082154ce51a", "sha256": "f65832a42a0e5c937e6efbe9ebadbaa066292d3b99b9fcbc72391fcabbcbc754" }, "downloads": -1, "filename": "py-lz4framed-0.9.7.tar.gz", "has_sig": true, "md5_digest": "a186016278e6c99e120c7082154ce51a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82812, "upload_time": "2017-07-17T19:29:46", "url": "https://files.pythonhosted.org/packages/1b/a6/a158c916a3bba9a451bb4b220697ffd7899b223a60114b2cbd89ce4f8404/py-lz4framed-0.9.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf29770674fa8a9994b9ec431b867286", "sha256": "338cce7e8d0553f6df65921fdd85a04feed8f01a9aeee91f530b1bf8c6edba65" }, "downloads": -1, "filename": "py-lz4framed-0.13.0.tar.gz", "has_sig": true, "md5_digest": "bf29770674fa8a9994b9ec431b867286", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 104941, "upload_time": "2018-10-22T21:51:01", "url": "https://files.pythonhosted.org/packages/23/06/77fcb0ae69e4431584d67478166c5f9019bf175ba36ffe12250db5757552/py-lz4framed-0.13.0.tar.gz" } ] }