{ "info": { "author": "Simon Blanchard", "author_email": "bnomis@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Office/Business :: Office Suites", "Topic :: Text Processing", "Topic :: Utilities" ], "description": "x2y\n===\n\nConvert line ending between DOS, Mac (pre OS X) and Unix\n\nWhere:\n\n- DOS = '\\\\r\\\\n'\n- Mac = '\\\\r' (OS9)\n- Unix = '\\\\n'\n\nNote: Mac here is OS9 and earlier. OS X line endings are Unix.\n\nExamples\n--------\n\nConvert From Unix To DOS Line Endings\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: shell\n\n $ x2y -f unx -t dos file.txt\n\nThe above command will convert Unix line ending to DOS line endings. The\nresult is written back in to the source file.\n\nIf you want to write to another file use the -o or -d options (see\nbelow).\n\n.. code:: shell\n\n $ x2y -o output.txt -f unx -t dos file.txt\n\nWill write the converted file to output.txt\n\n.. code:: shell\n\n $ x2y -d outputs -f unx -t dos file.txt\n\nWill save converted files to the outputs directory.\n\nTo back up the source file use the -b option. For example:\n\n.. code:: shell\n\n $ x2y -b bak -f unx -t dos file.txt\n\nWill rename the source file with a \".bak\" extensions before writing the\nconverted file.\n\nInstallation\n------------\n\n.. code:: shell\n\n pip install x2y\n\nUsage\n-----\n\n.. code:: shell\n\n usage: x2y [options] --from line-ending --to line-ending File [File ...]\n\n x2y: convert line ending between DOS, Mac (pre OS X) and Unix\n\n positional arguments:\n File Files to convert\n\n optional arguments:\n -h, --help show this help message and exit\n --version show program's version number and exit\n --debug Turn on debug logging.\n --debug-log FILE Save debug logging to FILE.\n -b BACKUP EXTENTSION, --backup BACKUP EXTENTSION\n Save a backup of the input file by renaming with\n BACKUP EXTENTSION. Ignored if the -o option is given.\n Default: None.\n -d DIRECTORY, --directory DIRECTORY\n Save extracted text to DIRECTORY. Ignored if the -o\n option is given.\n -f {dos,mac,unx}, --from {dos,mac,unx}\n Line ending to convert from.\n -o FILE, --output FILE\n Save extracted text to FILE. If not given, the output\n file is named the same as the input file but with a\n txt extension. The extension can be changed with the\n -e option. Files are opened in append mode unless the\n -X option is given.\n -t {dos,mac,unx}, --to {dos,mac,unx}\n Line ending to convert to.\n -A, --suppress-file-access-errors\n Do not print file/directory access errors.", "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/bnomis/x2y", "keywords": "text,conversion", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "x2y", "package_url": "https://pypi.org/project/x2y/", "platform": "macosx,linux,unix", "project_url": "https://pypi.org/project/x2y/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bnomis/x2y" }, "release_url": "https://pypi.org/project/x2y/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "x2y: convert line ending between DOS, Mac and Unix", "version": "0.1.0" }, "last_serial": 1512529, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "54e5482b8738d2d124efc02f36ae45c6", "sha256": "65966d93d4b79f1e10fc085760ae7fe19a9772ab5ad7862f7c11c7779ef8561a" }, "downloads": -1, "filename": "x2y-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "54e5482b8738d2d124efc02f36ae45c6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8324, "upload_time": "2015-04-20T11:47:31", "url": "https://files.pythonhosted.org/packages/d9/68/19a4ee9688f6e9f431b9a3d1d9ed45750eb5c6e46a6745cddcecd968f2e2/x2y-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25f72db966e2692d60c08cfd6070d412", "sha256": "1dff349d608d18fa7532a92b13a831cf159fa00cfc891f74ece6cb94cab5fcbd" }, "downloads": -1, "filename": "x2y-0.1.0.tar.gz", "has_sig": false, "md5_digest": "25f72db966e2692d60c08cfd6070d412", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9260, "upload_time": "2015-04-20T11:47:35", "url": "https://files.pythonhosted.org/packages/da/11/503478d692063a6dfe38458584f4e524d2fef3e1275a05ad328ffe1015c7/x2y-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54e5482b8738d2d124efc02f36ae45c6", "sha256": "65966d93d4b79f1e10fc085760ae7fe19a9772ab5ad7862f7c11c7779ef8561a" }, "downloads": -1, "filename": "x2y-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "54e5482b8738d2d124efc02f36ae45c6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8324, "upload_time": "2015-04-20T11:47:31", "url": "https://files.pythonhosted.org/packages/d9/68/19a4ee9688f6e9f431b9a3d1d9ed45750eb5c6e46a6745cddcecd968f2e2/x2y-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25f72db966e2692d60c08cfd6070d412", "sha256": "1dff349d608d18fa7532a92b13a831cf159fa00cfc891f74ece6cb94cab5fcbd" }, "downloads": -1, "filename": "x2y-0.1.0.tar.gz", "has_sig": false, "md5_digest": "25f72db966e2692d60c08cfd6070d412", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9260, "upload_time": "2015-04-20T11:47:35", "url": "https://files.pythonhosted.org/packages/da/11/503478d692063a6dfe38458584f4e524d2fef3e1275a05ad328ffe1015c7/x2y-0.1.0.tar.gz" } ] }