{
"info": {
"author": "Laurent Peuch",
"author_email": "cortex@worlddomination.be",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Utilities"
],
"description": "PyFmt\n=====\n\n``Pyfmt`` is an autoformatting source code tool for ``python``, in more\nor less the same spirit than `gofmt `_. It\nfollows the ``pep8`` and uses\n`Baron `_ to do its work in one\npass.\n\n**``Pyfmt`` is in its early stage of developpement, it already do a good\njob at formatting most of python code but it doesn't handle yet\nsplitting a too long line and might end up putting back into one line a\nline that you have split.** But it should be fine for ~80% of the cases.\n\nFeedback is very welcome.\n\nYou can see it in action\n`here `_.\n\nInstallation\n============\n\n``PyFmt`` can be installed using ``$ pip install pyfmt``\n\nUsage\n=====\n\n::\n\n pyfmt file.py # output to standard output\n pyfmt -i file.py # replace the content of the file, like -i of sed\n\nFrom ``python``:\n\n::\n\n from pyfmt import format_code\n\n format_code(source_code)\n\nCommunity\n=========\n\nYou can reach us on\n`irc.freenode.net#baron `_\n\nTests\n=====\n\nYou can run the tests using ``$ py.test test_pyfmt.py``\n\nOperations\n==========\n\nThings that ``pyfmt`` do (if it's not already done in the code):\n\n- render ALL nodes of the python language according to the ``pep8``\n- if a datastructure is indented, keep the indentation and indent it\n according to the pep8\n- put 2 spaces before comments after code, put a space after the \"#\" of\n the comment (don't do for shebang)\n- split compound statements written on one line on two lines (example:\n ``if a: pass`` -> ``if a:\\n`` pass\", same for every other statements\n that wait for a block of code)\n- replace ``stuff`` by repr(stuff)\n- split multiple import across multiple lines\n- replace tabs with space\n- correctly indent the whole file using 4 spaces\n- convert windows ``'\\r\\n``' to ``'\\n'``\n- if not present, put two blank lines around functions or class\n definitions at the root level of the file\n- if not present, put one blank line around method definition in a\n class\n- replace <> with !=\n\nThings that ``pyfmt`` don't do or don't do yet and that can be annoying:\n\n- properly formatting the content of a \"from x import (lot of stuff)\"\n- properly splitting too long lines, it may ends up putting back on one\n line a splited line\n- removing extra blank lines\n\n\n\nChangelog\n=========\n\n0.1 (2014-09-07)\n----------------\n\n- Init",
"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/Psycojoker/pyfmt",
"keywords": "pep8 formatting baron fst code fmt gofmt",
"license": "gplv3+",
"maintainer": null,
"maintainer_email": null,
"name": "pyfmt",
"package_url": "https://pypi.org/project/pyfmt/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/pyfmt/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/Psycojoker/pyfmt"
},
"release_url": "https://pypi.org/project/pyfmt/0.1/",
"requires_dist": null,
"requires_python": null,
"summary": "automatic code formatter for python following pep8 using baron FST, like gofmt",
"version": "0.1"
},
"last_serial": 1215783,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "c6e94d10808baf80eb64369802a80a5d",
"sha256": "5015b2724c783ca8b35cdbce8a239cbb9a4fdc74aee84e0f82255fcdb95d5a70"
},
"downloads": -1,
"filename": "pyfmt-0.1-py2.7.egg",
"has_sig": false,
"md5_digest": "c6e94d10808baf80eb64369802a80a5d",
"packagetype": "bdist_egg",
"python_version": "2.7",
"requires_python": null,
"size": 6369,
"upload_time": "2014-09-07T09:43:20",
"url": "https://files.pythonhosted.org/packages/da/2f/3a4af5b4b0a0399ec7311ae50686902ad45435b815d407de3378bd02f140/pyfmt-0.1-py2.7.egg"
},
{
"comment_text": "",
"digests": {
"md5": "c35baaffecc4b5f919fd915611c2e933",
"sha256": "de35a46a688fb831d3e9370f85876614d4f4adf2349c768387c039ec2618fa1d"
},
"downloads": -1,
"filename": "pyfmt-0.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "c35baaffecc4b5f919fd915611c2e933",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 8945,
"upload_time": "2014-09-07T09:43:17",
"url": "https://files.pythonhosted.org/packages/03/c2/c71be43b8740d342519c037504f37ae268413e03864384e68e03ae1c54b8/pyfmt-0.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "13cd71ab5bbef3994a1ece1b6e1346a0",
"sha256": "c67708e6c3117af9cd4756d4fa75493e9e827d8efa176291a79467ffd0f9b4ec"
},
"downloads": -1,
"filename": "pyfmt-0.1.tar.gz",
"has_sig": false,
"md5_digest": "13cd71ab5bbef3994a1ece1b6e1346a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6709,
"upload_time": "2014-09-07T09:43:15",
"url": "https://files.pythonhosted.org/packages/5e/79/c088f551dbc968f5c89ff9409efac84354a7ff7a42b96ca4d4ef3b63faed/pyfmt-0.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c6e94d10808baf80eb64369802a80a5d",
"sha256": "5015b2724c783ca8b35cdbce8a239cbb9a4fdc74aee84e0f82255fcdb95d5a70"
},
"downloads": -1,
"filename": "pyfmt-0.1-py2.7.egg",
"has_sig": false,
"md5_digest": "c6e94d10808baf80eb64369802a80a5d",
"packagetype": "bdist_egg",
"python_version": "2.7",
"requires_python": null,
"size": 6369,
"upload_time": "2014-09-07T09:43:20",
"url": "https://files.pythonhosted.org/packages/da/2f/3a4af5b4b0a0399ec7311ae50686902ad45435b815d407de3378bd02f140/pyfmt-0.1-py2.7.egg"
},
{
"comment_text": "",
"digests": {
"md5": "c35baaffecc4b5f919fd915611c2e933",
"sha256": "de35a46a688fb831d3e9370f85876614d4f4adf2349c768387c039ec2618fa1d"
},
"downloads": -1,
"filename": "pyfmt-0.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "c35baaffecc4b5f919fd915611c2e933",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 8945,
"upload_time": "2014-09-07T09:43:17",
"url": "https://files.pythonhosted.org/packages/03/c2/c71be43b8740d342519c037504f37ae268413e03864384e68e03ae1c54b8/pyfmt-0.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "13cd71ab5bbef3994a1ece1b6e1346a0",
"sha256": "c67708e6c3117af9cd4756d4fa75493e9e827d8efa176291a79467ffd0f9b4ec"
},
"downloads": -1,
"filename": "pyfmt-0.1.tar.gz",
"has_sig": false,
"md5_digest": "13cd71ab5bbef3994a1ece1b6e1346a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6709,
"upload_time": "2014-09-07T09:43:15",
"url": "https://files.pythonhosted.org/packages/5e/79/c088f551dbc968f5c89ff9409efac84354a7ff7a42b96ca4d4ef3b63faed/pyfmt-0.1.tar.gz"
}
]
}