{ "info": { "author": "Thijs van Ede", "author_email": "t.s.vanede@utwente.nl", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# indentpy\nPython script to change indentations of files.\n\n## Dependencies\nThis package requires the following programs to be installed:\n 1. [Python](https://www.python.org/)\n\n## Installation\nThe installation can be done by cloning this Github repository and running the `./install.sh` script.\n\nCloning the Github repository:\n```\ngit clone https://github.com/Thijsvanede/indentpy.git\n```\n\nInstalling the script:\n```\nchmod +x ./install.sh\n./install.sh\n```\n\n## Usage\nThe python script can be used in several ways:\n 1. As a command line program after installation.\n 2. As a command line program from source.\n 3. As a python library.\n\nFor all use cases we give a usage example.\n\n### Inputting special characters\nWhen you wish to specify special characters like `\\t` or `\\n`, these can be put into a `bash` terminal by the combination `ctrl+v` followed by the key for that character. Examples:\n * `\\t`: `ctrl+v` followed by `tab`\n * `\\n`: `ctrl+v` followed by `enter`\n * `\\r\\n`: `ctrl+v` followed by `crtl+r` followed by `ctrl+v` followed by `enter`\n\n### Command-line (Installed)\nThe usage of indent is explained in the help file below.\n```\nUsage: indent [-h] [-w WRITE] [-o ORIG] [-t TO] [-d DELIM] file [file ...]\n\nChange indentation of file(s).\n\npositional arguments:\n file File(s) for which to change indentation.\n\noptional arguments:\n -h Show this help text.\n -d Line delimiter in original file (optional, default='\\n').\n -o Indentation style in original file (optional, default='\\t').\n -t Indentation style in desired file (optional, default=' ').\n -w File to write output to (optional, default writes to inputfile).\n```\n\n#### Example\nThe following example takes `infile.py`, transforms the original `\\t` indentation to 4 spaces and finally writes it to `outfile.py`.\n```\nindent -w outfile.py -o '\t' -t ' ', infile.py\n```\n\n### Command-line (From source)\nTo run the program from source, you can use both `Python 2` and `Python 3`. The usage of `indent/indent.py` is explained in the help file below.\n```\nusage: indent.py [-h] [-w WRITE] [-o ORIG] [-t TO] [-d DELIM] file [file ...]\n\nIndentation change tool.\n\npositional arguments:\n file File(s) for which to change indentation.\n\noptional arguments:\n -h, --help show this help message and exit\n -w WRITE, --write WRITE File to write output to (optional, if none is given,\n change contents of file.\n -o ORIG, --orig ORIG Indentation style in original file (optional, if none\n is given, use '\\t').\n -t TO, --to TO Indentation style in desired file (optional, if none\n is given, use 4 spaces).\n -d DELIM, --delim DELIM Line delimiter in original file (optional, if none is\n given, use '\\n')\n```\n\n#### Example\nThe following example takes `infile.py`, transforms the original `\\t` indentation to 4 spaces and finally writes it to `outfile.py`.\n```\npython indent/indent.py -w outfile.py -o '\t' -t ' ', infile.py\n```\n\n### Python\nTODO\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Thijsvanede/indentpy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "indentpy", "package_url": "https://pypi.org/project/indentpy/", "platform": "", "project_url": "https://pypi.org/project/indentpy/", "project_urls": { "Homepage": "https://github.com/Thijsvanede/indentpy" }, "release_url": "https://pypi.org/project/indentpy/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Python utility to change indentations of files.", "version": "1.0.0" }, "last_serial": 4180683, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c9083a1f21793a265d052fc65b08cbbe", "sha256": "0eaa99b73586cc727ca6a7682adb919d93ea5538d38d53ebe4f348fb6a99b052" }, "downloads": -1, "filename": "indentpy-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c9083a1f21793a265d052fc65b08cbbe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3782, "upload_time": "2018-08-17T15:42:35", "url": "https://files.pythonhosted.org/packages/de/7d/8aa2489d86ab7d6817164a98ac2cd69e3a562f589537d2cea61e13092aa6/indentpy-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ed4665571152be215c3ed8268bd931fb", "sha256": "d6c26525995ba0ad355dbcac47fc98b161b066a00f44763dbec50d9b72dc9711" }, "downloads": -1, "filename": "indentpy-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ed4665571152be215c3ed8268bd931fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3480, "upload_time": "2018-08-17T15:42:36", "url": "https://files.pythonhosted.org/packages/a4/e5/35c1a1334d735b5da36a61ba4402c4bf752fd4d9618bb6cedc7d78c42d0f/indentpy-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c9083a1f21793a265d052fc65b08cbbe", "sha256": "0eaa99b73586cc727ca6a7682adb919d93ea5538d38d53ebe4f348fb6a99b052" }, "downloads": -1, "filename": "indentpy-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c9083a1f21793a265d052fc65b08cbbe", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3782, "upload_time": "2018-08-17T15:42:35", "url": "https://files.pythonhosted.org/packages/de/7d/8aa2489d86ab7d6817164a98ac2cd69e3a562f589537d2cea61e13092aa6/indentpy-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ed4665571152be215c3ed8268bd931fb", "sha256": "d6c26525995ba0ad355dbcac47fc98b161b066a00f44763dbec50d9b72dc9711" }, "downloads": -1, "filename": "indentpy-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ed4665571152be215c3ed8268bd931fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3480, "upload_time": "2018-08-17T15:42:36", "url": "https://files.pythonhosted.org/packages/a4/e5/35c1a1334d735b5da36a61ba4402c4bf752fd4d9618bb6cedc7d78c42d0f/indentpy-1.0.0.tar.gz" } ] }