{ "info": { "author": "Mathieu D. (MatToufoutu)", "author_email": "mattoufootu@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "FixIndents\n==========\n\nA simple yet flexible utility to convert indentation in your source code files.\n\nWhy?\n----\n\nI needed to convert indentations in a source code file, and I wasn't\nable to find anything really flexible to do this. So, this is an attempt\nto code something flexible enough to handle any possible use-case.\n\nInstallation\n-------------\n\nFrom GitHub\n~~~~~~~~~~~\n\nTo install the latest revision, just clone the repository and run the ``setup.py`` script:\n\n::\n\n git clone https://github.com/mattoufoutu/FixIndents.git\n cd FixIndents\n python setup.py install\n\nFrom PyPI\n~~~~~~~~~\n\nAs usual...:\n\n::\n\n pip install FixIndents\n\nUsage\n-----\n\nfixindents -h\n~~~~~~~~~~~~~\n\n::\n\n usage: fixindents.py [-h] [--version] (--source-tabs | --source-size SIZE)\n (--dest-tabs | --dest-size SIZE) --source SOURCE\n (--dest DEST | --debug) [--exclude FOLDERS]\n [--extensions EXTENSIONS]\n\n A simple yet flexible utility to convert indentation.\n\n optional arguments:\n -h, --help show this help message and exit\n --version show program's version number and exit\n --source-tabs Source file uses tabs for indentation.\n --source-size SIZE Indents size in source file(s).\n --dest-tabs Use tabs for indentation in destination file.\n --dest-size SIZE Indents size in destination file.\n --source SOURCE File of folder from which code should be read.\n --dest DEST File or folder to which code should be written.\n --debug Output converted data to console, don't write\n anything.\n --exclude FOLDERS Comma-separated list of directory names to ignore.\n Only useful when SOURCE is a directory.\n --extensions EXTENSIONS\n Comma-separated list of specific file extensions to\n convert. Only useful when SOURCE is a directory.\n\nExemples\n~~~~~~~~\n\nConvert ``fixindents.py`` 4-spaces indents to tab indents, write to ``fixendents_tabs.py``:\n\n::\n\n fixindents.py --source-size 4 --dest-tabs --source fixindents.py --dest fixindents_tabs.py\n\nConvert previously created ``fixindents_tabs.py`` to 2-spaces indents, write to ``fixindents_space.py``:\n\n::\n\n fixindents.py --source-tabs --dest-size 2 --source fixindents_tabs.py --dest fixindents_space.py\n\nConvert all files in the ``FixIndents`` folder from 4-spaces to tabs, write to the ``FixIndentsTabs`` folder:\n\n::\n\n fixindents.py --source-size 4 --dest-tabs --source FixIndents --dest FixIndentsTabs\n\nConvert 4-spaces ``.py`` files in the ``FixIndents`` folder to tabs, write to the ``FixIndentsTabs`` folder:\n\n::\n\n fixindents.py --source-size 4 --dest-tabs --source FixIndents --dest FixIndentsTabs --extentions \".py\"\n\nContribute\n----------\n\nFeel free to fork this repository and improve the code, any pull-request\nwill be welcome.", "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/mattoufoutu/FixIndents", "keywords": "indentation indent tab space convert", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "FixIndents", "package_url": "https://pypi.org/project/FixIndents/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/FixIndents/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mattoufoutu/FixIndents" }, "release_url": "https://pypi.org/project/FixIndents/0.2/", "requires_dist": null, "requires_python": null, "summary": "A simple yet flexible utility to convert indentation.", "version": "0.2" }, "last_serial": 845646, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c0fc44a18e81dfd9ef129b12d7b40224", "sha256": "a3c67ce02013caf2b4b74c91496050d0f03d7badd601a135d54f94368b3386b9" }, "downloads": -1, "filename": "FixIndents-0.1.tar.gz", "has_sig": false, "md5_digest": "c0fc44a18e81dfd9ef129b12d7b40224", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2611, "upload_time": "2013-08-19T13:31:43", "url": "https://files.pythonhosted.org/packages/02/74/b251ce3368ec27933a03ddcf694e2c178ecc63553f4e94cb25aa04e676f9/FixIndents-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "508a4c48c23dce9f8981e51ec20ff25a", "sha256": "8aa3993f931cdce22a0748ecd85b195e656ecbbe9d547d6a18055f8b86f5aadc" }, "downloads": -1, "filename": "FixIndents-0.2.tar.gz", "has_sig": false, "md5_digest": "508a4c48c23dce9f8981e51ec20ff25a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2616, "upload_time": "2013-08-22T06:39:27", "url": "https://files.pythonhosted.org/packages/bc/9e/60c4e679e942e9c628bc0a14b6f8e2cdb8633455ecc4d0abb7b0622c5493/FixIndents-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "508a4c48c23dce9f8981e51ec20ff25a", "sha256": "8aa3993f931cdce22a0748ecd85b195e656ecbbe9d547d6a18055f8b86f5aadc" }, "downloads": -1, "filename": "FixIndents-0.2.tar.gz", "has_sig": false, "md5_digest": "508a4c48c23dce9f8981e51ec20ff25a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2616, "upload_time": "2013-08-22T06:39:27", "url": "https://files.pythonhosted.org/packages/bc/9e/60c4e679e942e9c628bc0a14b6f8e2cdb8633455ecc4d0abb7b0622c5493/FixIndents-0.2.tar.gz" } ] }