{ "info": { "author": "Giovanni Torres Parra", "author_email": "giovannitorresparra@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python :: 2", "Topic :: Software Development :: Pre-processors" ], "description": "=======\nliquify\n=======\nthe Python 2 minifier behind liquen_\nalmost totally based on minipy_ by Gareth Rees \n\nIntroduction\n------------\n**liquify** is a minifier for Python 2 focused on maintaining usability of the minified code as an imported module (which means it preserves functions and variables that could have been of use for external code calling the minified code). For example::\n\n $ cat fib.py\n cache = {0: 0, 1: 1, 2: 1, 3: 2}\n def fibonacci(n):\n \"\"\"Return the nth Fibonacci number.\"\"\"\n if n not in cache:\n a = n // 2\n r = n % 2\n m = (r * 2) - 1\n cache[n] = fibonacci(a + 1) ** 2 + m * fibonacci(a + r - 1) ** 2\n return cache[n]\n\n $ liquify --module --docstrings fib.py\n cache={0:0,1:1,2:1,3:2}\n def fibonnacci(a):\n if a not in b:d=a//2;e=a%2;f=e*2-1;b[a]=fibonnacci(d+1)**2+f*c(d+e-1)**2\n return b[a]\n\n\nCommand line\n------------\n::\n\n Usage: liquify [options] [-o OUTPUT] FILE\n\n Options:\n --version show program's version number and exit\n -h, --help show this help message and exit\n -o OUTPUT, --output=OUTPUT\n output file (default: stdout)\n -D, --docstrings remove docstrings and other statements with no side\n effects (implies --noselftest)\n -R, --rename aggressively rename non-preserved variables\n -i INDENT, --indent=INDENT\n number of spaces per indentation level\n -p PRESERVE, --preserve=PRESERVE\n preserve words from renaming (separate by commas)\n -m, --module preserve top level object names (for use as imported\n\n --nojoinlines put each statement on its own line\n --noselftest skip the self-test\n --debug dump the parse tree\n\n\nLicense\n-------\nliquify is free software: you can redistribute it and/or modify it under\nthe terms of the GNU General Public License as published by the Free\nSoftware Foundation, either version 3 of the License, or (at your\noption) any later version.\n\nThis program is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the `GNU\nGeneral Public License`_ for more details.\n\n\n.. _minipy: https://github.com/gareth-rees/minipy\n.. _liquen: http://liquen.herokuapp.com/\n.. _GNU General Public License: http://www.gnu.org/copyleft/gpl.html", "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/fiatjaf/liquify", "keywords": null, "license": "GNU General Public License (GPL) Version 3", "maintainer": null, "maintainer_email": null, "name": "liquify", "package_url": "https://pypi.org/project/liquify/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/liquify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fiatjaf/liquify" }, "release_url": "https://pypi.org/project/liquify/0.3/", "requires_dist": null, "requires_python": null, "summary": "Minify Python 2 modules", "version": "0.3" }, "last_serial": 878447, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "6b3300677007ee5fbc5def367ebc3eb5", "sha256": "d52d8f48d68c5d9f1ba8decd6d4611f68618a486278835a877da262ec70a49e5" }, "downloads": -1, "filename": "liquify-0.3.tar.gz", "has_sig": false, "md5_digest": "6b3300677007ee5fbc5def367ebc3eb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14792, "upload_time": "2013-10-01T21:58:59", "url": "https://files.pythonhosted.org/packages/60/9c/798963e6d5ebcb831718a2cb304ce4c782f1081045c641cf42d984b5ad0c/liquify-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b3300677007ee5fbc5def367ebc3eb5", "sha256": "d52d8f48d68c5d9f1ba8decd6d4611f68618a486278835a877da262ec70a49e5" }, "downloads": -1, "filename": "liquify-0.3.tar.gz", "has_sig": false, "md5_digest": "6b3300677007ee5fbc5def367ebc3eb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14792, "upload_time": "2013-10-01T21:58:59", "url": "https://files.pythonhosted.org/packages/60/9c/798963e6d5ebcb831718a2cb304ce4c782f1081045c641cf42d984b5ad0c/liquify-0.3.tar.gz" } ] }