{ "info": { "author": "Arve Seljebu", "author_email": "arve.seljebu@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "ipynbcompress\n=============\n\n|build-status-image| |pypi-version| |wheel|\n\nOverview\n--------\n\nSo you have included an image with ``IPython.display.Image()`` and the\nfile size of your IPython Notebook got huge? No problem! This package\nwill resize images in your notebook and compress them as PNG or JPEG.\nImages are only resized if they are above the specified width. 2048px\nand PNG compression is the default, which should give relative high\nquality images and normal sized notebooks. JPEG compression is nice if\nyou serve the notebooks over the web (eg nbviewer) and prefer fast\nloading times.\n\nInstallation\n------------\n\nInstall using ``pip``...\n\n.. code:: bash\n\n pip install ipynbcompress\n\nExample\n-------\n\nFrom command line:\n\n.. code:: sh\n\n $ ipynb-compress notebook4.ipynb\n notebook4.ipynb: 10 megabytes decrease\n $ find . -name \"*ipynb\" -size +2M -exec ipynb-compress {} \\;\n ./lab 03.21/automated scan.ipynb: warning: no compression - 0 bytes gained\n ./lab 03.21/automated scan.ipynb: compression less than 100k bytes - keeping original\n ./lab 03.21/trouble.ipynb: 9 megabytes decrease\n ...\n\nIn python:\n\n.. code:: python\n\n >>> import os\n >>> from ipynbcompress import compress\n >>> filename = '/path/to/notebook.ipynb'\n >>> out = '/path/to/compressed.ipynb'\n >>> # original size\n ... os.stat(filename).st_size\n 11563736\n >>> # return bytes saved\n ... compress(filename, output_filename=out, img_width=800, img_format='jpeg')\n 11451545\n >>> compress(filename, output_filename=out, img_width=800, img_format='png')\n 11205762\n >>> # defaults to img_width = 2048px and png compression\n ... compress(filename, output_filename=out)\n 11411377\n >>> # overwrite existing notebook\n ... compress(filename)\n 11411377\n\nAPI reference\n-------------\n\nAPI reference is at http://ipynbcompress.rtfd.org.\n\nDevelopment\n-----------\n\nInstall dependencies and link development version of ipynbcompress to\npip:\n\n.. code:: bash\n\n git clone https://github.com/arve0/ipynbcompress\n cd ipynbcompress\n pip install -r requirements.txt # install dependencies and ipynbcompress-package\n\nTesting\n~~~~~~~\n\n.. code:: bash\n\n tox\n\nBuild documentation locally\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo build the documentation:\n\n.. code:: bash\n\n pip install -r docs/requirements.txt\n make docs\n\n.. |build-status-image| image:: https://secure.travis-ci.org/arve0/ipynbcompress.png?branch=master\n :target: http://travis-ci.org/arve0/ipynbcompress?branch=master\n.. |pypi-version| image:: https://pypip.in/version/ipynbcompress/badge.svg\n :target: https://pypi.python.org/pypi/ipynbcompress\n.. |wheel| image:: https://pypip.in/wheel/ipynbcompress/badge.svg\n :target: https://pypi.python.org/pypi/ipynbcompress", "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/arve0/ipynbcompress", "keywords": "ipynbcompress", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ipynbcompress", "package_url": "https://pypi.org/project/ipynbcompress/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ipynbcompress/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/arve0/ipynbcompress" }, "release_url": "https://pypi.org/project/ipynbcompress/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Compress images in IPython/Jupyter notebooks", "version": "0.3.0" }, "last_serial": 1530158, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "eb0df83c1931efafcbd7ced359e0111e", "sha256": "715ff77edcad7955ad3e551bc582be9305328d21f59ff884e431fc68b0ece59d" }, "downloads": -1, "filename": "ipynbcompress-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eb0df83c1931efafcbd7ced359e0111e", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 5022, "upload_time": "2015-04-23T10:50:21", "url": "https://files.pythonhosted.org/packages/77/6f/cd7698ce4092a01ac36f074d1bb0b8f99e41a9028e048efa104ba0e62d02/ipynbcompress-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7724b8226f0a3ca3f1c3842ff69178aa", "sha256": "76588e09e6afc4299b603330e9611b927869e34e2566f1520bf757fddb2214dc" }, "downloads": -1, "filename": "ipynbcompress-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7724b8226f0a3ca3f1c3842ff69178aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8380741, "upload_time": "2015-04-23T10:50:10", "url": "https://files.pythonhosted.org/packages/12/f2/3f0a8621c736a1c7b7bed85f5ee50d60690c5befebe7912ab31778961d9f/ipynbcompress-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "b3660f6ec0bf499fe2a9dc6f2971b0e4", "sha256": "c2a449d5779a7573619dfbf9b98fc52490e75b90ea935a6d2ae6cc2d46965d97" }, "downloads": -1, "filename": "ipynbcompress-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3660f6ec0bf499fe2a9dc6f2971b0e4", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 4956, "upload_time": "2015-04-23T12:39:36", "url": "https://files.pythonhosted.org/packages/26/54/46e149d095f2d727256b1c9bdd73bc35f9f7f0f69c19be4f5a89a7e7bb0f/ipynbcompress-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95dfc68ee3e6095259c68ac8b24de00f", "sha256": "f858d6321813d6e252e22bcf2d67fa30fe348eb997be0cc6a22339f9883258bd" }, "downloads": -1, "filename": "ipynbcompress-0.1.0.tar.gz", "has_sig": false, "md5_digest": "95dfc68ee3e6095259c68ac8b24de00f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8380876, "upload_time": "2015-04-23T12:39:28", "url": "https://files.pythonhosted.org/packages/b3/a7/462cb8d801000af0c183289b07dca6d2b374e3eeddeda2c70e70568ba17b/ipynbcompress-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c84dd51221ab54aae3890515171c0eba", "sha256": "a9c7b52a636ed20674be475267996693e475f507cdc9428017842cafb9c1c8d0" }, "downloads": -1, "filename": "ipynbcompress-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c84dd51221ab54aae3890515171c0eba", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 5407, "upload_time": "2015-04-23T12:55:30", "url": "https://files.pythonhosted.org/packages/a1/ef/e4600d2542cd0be5ea33eabc836a23c2e5f92e8a1fcf4b7195d08f486ece/ipynbcompress-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e9f9cfc70c55fecb93282bf52dfc53d7", "sha256": "af1069c2031c12573fd36599b439cf970e51c4cacb51478eb4bbd8fc40ea462c" }, "downloads": -1, "filename": "ipynbcompress-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e9f9cfc70c55fecb93282bf52dfc53d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8381125, "upload_time": "2015-04-23T12:55:25", "url": "https://files.pythonhosted.org/packages/c8/4a/0c497fb49d25dd8f34cca5a1ccb3d899799909d65162e260f6ee507b84ca/ipynbcompress-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3ebc89e2d5b2dbe2bd41a8690a60cb87", "sha256": "ee0e6e73d50678d87028b485c682d053a3e520a2ea757c35e4e2843bf8cd4a27" }, "downloads": -1, "filename": "ipynbcompress-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3ebc89e2d5b2dbe2bd41a8690a60cb87", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6253, "upload_time": "2015-04-23T14:21:46", "url": "https://files.pythonhosted.org/packages/a8/a0/75764a342a8e5b4d37e10f89130c75c4e4893312cc33465217eb2d39841c/ipynbcompress-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9a67db677e152347b2ef49161738b9a0", "sha256": "56995cf718e28d62bb4e78c9a90b12765ecc00ff2300a343b0bd7f76bcd48f5f" }, "downloads": -1, "filename": "ipynbcompress-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9a67db677e152347b2ef49161738b9a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8381466, "upload_time": "2015-04-23T14:21:40", "url": "https://files.pythonhosted.org/packages/4d/ae/e41966a22ed975701e894a3a95cd50ddde72c40f9e12bf38426a0588ff3f/ipynbcompress-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "cb5e9e4c5aa3dfc7fb43f1b9a42a5972", "sha256": "9039d7327a404873e31f2d45e720035a34903567aa4a5001b2d76ba45165b1e8" }, "downloads": -1, "filename": "ipynbcompress-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cb5e9e4c5aa3dfc7fb43f1b9a42a5972", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6317, "upload_time": "2015-04-23T16:03:35", "url": "https://files.pythonhosted.org/packages/45/3c/f5d1578a07a615d54c5bafe091c6f87ee48444bed59c5d49c7baf76506c9/ipynbcompress-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4944052352a20bc5a6d7e75ee03afa59", "sha256": "8dd6323122ba70020a83a222f6a7704b5a5e87fde572d61f2947ea2370b9b924" }, "downloads": -1, "filename": "ipynbcompress-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4944052352a20bc5a6d7e75ee03afa59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8381512, "upload_time": "2015-04-23T16:03:29", "url": "https://files.pythonhosted.org/packages/a6/94/4226be8be4cfc0ce9bb1b633e689cf9a384fed5164c61e04c61f16f72b02/ipynbcompress-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "8fa61059fd050a0d2d1998f1be400366", "sha256": "bfa52698fd179452e09a7d4c958f21385a15ce7df9fdd63e4df2d6a0174a280d" }, "downloads": -1, "filename": "ipynbcompress-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8fa61059fd050a0d2d1998f1be400366", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6569, "upload_time": "2015-05-02T06:04:56", "url": "https://files.pythonhosted.org/packages/01/51/3cd8b535fc48bb3ee79ba670f00bed5703c383a99f49e208613696cc25f7/ipynbcompress-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd62defd28fd7b747bf236d01db98765", "sha256": "95458cce8947039373a09497a5aed906e997f1d5280729d7cf947b6382de9acb" }, "downloads": -1, "filename": "ipynbcompress-0.3.0.tar.gz", "has_sig": false, "md5_digest": "fd62defd28fd7b747bf236d01db98765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8381835, "upload_time": "2015-05-02T06:04:42", "url": "https://files.pythonhosted.org/packages/e5/6d/4cdad057adfbf75c30703f64c40a84fbb5883198bddc2697f8c50eae3be1/ipynbcompress-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8fa61059fd050a0d2d1998f1be400366", "sha256": "bfa52698fd179452e09a7d4c958f21385a15ce7df9fdd63e4df2d6a0174a280d" }, "downloads": -1, "filename": "ipynbcompress-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8fa61059fd050a0d2d1998f1be400366", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6569, "upload_time": "2015-05-02T06:04:56", "url": "https://files.pythonhosted.org/packages/01/51/3cd8b535fc48bb3ee79ba670f00bed5703c383a99f49e208613696cc25f7/ipynbcompress-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd62defd28fd7b747bf236d01db98765", "sha256": "95458cce8947039373a09497a5aed906e997f1d5280729d7cf947b6382de9acb" }, "downloads": -1, "filename": "ipynbcompress-0.3.0.tar.gz", "has_sig": false, "md5_digest": "fd62defd28fd7b747bf236d01db98765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8381835, "upload_time": "2015-05-02T06:04:42", "url": "https://files.pythonhosted.org/packages/e5/6d/4cdad057adfbf75c30703f64c40a84fbb5883198bddc2697f8c50eae3be1/ipynbcompress-0.3.0.tar.gz" } ] }