{ "info": { "author": "guyskk", "author_email": "guyskk@qq.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 3", "Topic :: Software Development :: Build Tools" ], "description": "# PyBeautifier\n\nPython beautifier tcp server based on autopep8, yapf, isort. \nOnly suport python3.3+ currently.\n\n## Why\n\nBefore this, I use atom-beautify to format my code, but it's too slow(about 3 seconds) because every format operation will create a new python process.\n\nSo I write the beautifier server in python and beautifier client in node.js, they communicate by tcp socket. It's performance is much better(about 300 ms).\n\nThe client not merged yet. \nSee also: https://github.com/guyskk/atom-beautify\n\n## Install\n\n $ pip install pybeautifier\n\nBesides, you should install one or more of autopep8, yapf, isort based on your needs.\n\n## Usage\n\n $ pybeautifier # front ground process\n $ pybeautifier -d # daemon process, logging to /tmp/pybeautifier-xx.log\n\nIt will listening tcp://127.0.0.1:36805\n\nStart at boot via systemd(Ubuntu16 or Arch Linux):\n \n $ wget https://raw.githubusercontent.com/guyskk/pybeautifier/master/pybeautifier.service\n $ cp pybeautifier.service /usr/lib/systemd/system/\n $ systemctl start pybeautifier\n $ systemctl enable pybeautifier\n\n## Protocol\n\nRequest(JSON):\n\n {\n 'data': 'text_need_format',\n 'formaters': [\n {\n 'name': 'formater_name',\n 'config': {} # None or dict\n },\n ... # formaters\n ]\n }\n\nResponse(JSON):\n \n {\n 'error': 'error message',\n 'data': 'formated text'\n }", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/guyskk/pybeautifier", "keywords": "beautifier autopep8 yapf isort", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pybeautifier", "package_url": "https://pypi.org/project/pybeautifier/", "platform": "", "project_url": "https://pypi.org/project/pybeautifier/", "project_urls": { "Homepage": "https://github.com/guyskk/pybeautifier" }, "release_url": "https://pypi.org/project/pybeautifier/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Python beautifier tcp server", "version": "0.1.1" }, "last_serial": 2808767, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "808e402f30fc1a467a937bf330490938", "sha256": "27777bf33cf3083e31083e1866f45b7385cff73b04ba4e2c1516281baad00ca2" }, "downloads": -1, "filename": "pybeautifier-0.0.1.tar.gz", "has_sig": false, "md5_digest": "808e402f30fc1a467a937bf330490938", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3202, "upload_time": "2016-11-20T01:36:03", "url": "https://files.pythonhosted.org/packages/31/7b/c54cc4eb8a085f8e96f84a636902e30f8372ee77fb979daade096d6608c1/pybeautifier-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d0542547bc94413e6c091e9f963310cc", "sha256": "77e955f7060d396242a1737fe45ca2c711acd22d897a37536a8da60d5594c36b" }, "downloads": -1, "filename": "pybeautifier-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d0542547bc94413e6c091e9f963310cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3375, "upload_time": "2016-11-20T01:43:19", "url": "https://files.pythonhosted.org/packages/eb/9b/f8b2ee6ef4e195eaef57803154061e32a02fc0910058df03be9f851f754a/pybeautifier-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "e68b00a01c416471ac08f3872a38b4c0", "sha256": "ffc0aa2f2881eb1a8f0f6cea764829fa17ad181cb5aa67db3d284181f1c30bde" }, "downloads": -1, "filename": "pybeautifier-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e68b00a01c416471ac08f3872a38b4c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3388, "upload_time": "2017-03-18T09:14:59", "url": "https://files.pythonhosted.org/packages/13/07/4dd568d31cd09c1d1278d797ea805a29ae73bcd5efb402a9b105dc2ebfc9/pybeautifier-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ce80d4f66a784b5a136a822b9f47120a", "sha256": "d6e48db506c6cf92a2d8c362c7cb5a9455c26ad2c077d721f69116e050a97d59" }, "downloads": -1, "filename": "pybeautifier-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ce80d4f66a784b5a136a822b9f47120a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3469, "upload_time": "2017-04-17T14:24:09", "url": "https://files.pythonhosted.org/packages/77/a6/c6a804e6224cb8d9721ae81c9a280f0afe7e2a63198031c2d09f5673ac91/pybeautifier-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ce80d4f66a784b5a136a822b9f47120a", "sha256": "d6e48db506c6cf92a2d8c362c7cb5a9455c26ad2c077d721f69116e050a97d59" }, "downloads": -1, "filename": "pybeautifier-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ce80d4f66a784b5a136a822b9f47120a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3469, "upload_time": "2017-04-17T14:24:09", "url": "https://files.pythonhosted.org/packages/77/a6/c6a804e6224cb8d9721ae81c9a280f0afe7e2a63198031c2d09f5673ac91/pybeautifier-0.1.1.tar.gz" } ] }