{ "info": { "author": "John Thorvald Wodder II", "author_email": "linesep@varonathe.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Text Processing", "Topic :: Utilities" ], "description": ".. image:: http://www.repostatus.org/badges/latest/wip.svg\n :target: http://www.repostatus.org/#wip\n :alt: Project Status: WIP \u2013 Initial development is in progress, but there\n has not yet been a stable, usable release suitable for the public.\n\n.. image:: https://travis-ci.org/jwodder/linesep.svg?branch=master\n :target: https://travis-ci.org/jwodder/linesep\n\n.. image:: https://coveralls.io/repos/github/jwodder/linesep/badge.svg?branch=master\n :target: https://coveralls.io/github/jwodder/linesep?branch=master\n\n.. image:: https://img.shields.io/pypi/pyversions/linesep.svg\n :target: https://pypi.python.org/pypi/linesep\n\n.. image:: https://img.shields.io/github/license/jwodder/linesep.svg\n :target: https://opensource.org/licenses/MIT\n :alt: MIT License\n\n`GitHub `_\n| `PyPI `_\n| `Issues `_\n\nThis module provides basic functions for reading & writing text with custom\nline separators that can occur either before, between, or after lines \u2014 though\nits primary purpose is actually to allow me to experiment with proper Python\npackaging & testing procedures. Being actually useful is not its #1 goal.\n\n\nInstallation\n============\n\nJust use `pip `_ (You have pip, right?) to install\n``linesep``::\n\n pip install linesep\n\n\nExamples\n========\n\nReading paragraphs separated by a blank line::\n\n with open('text.txt') as fp:\n for entry in linesep.read_separated(fp, '\\n\\n'):\n ...\n\nParsing output from ``find -print0``::\n\n find = subprocess.Popen(\n ['find', '/', '-some', '-complicated', '-condition', '-print0'],\n stdout=subprocess.PIPE,\n )\n for filepath in linesep.read_terminated(find.stdout, '\\0'):\n ...\n\nA poor man's JSON Sequence parser::\n\n for entry in linesep.read_preceded(fp, '\\x1E'):\n try:\n obj = json.loads(entry)\n except ValueError:\n pass\n else:\n yield obj\n\n\nSee Also\n========\n\nPrior art: \n\n\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/jwodder/linesep", "keywords": "linebreak line break separator line-ending newline delimiters", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "linesep", "package_url": "https://pypi.org/project/linesep/", "platform": "", "project_url": "https://pypi.org/project/linesep/", "project_urls": { "Homepage": "https://github.com/jwodder/linesep" }, "release_url": "https://pypi.org/project/linesep/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Handling lines with arbitrary separators", "version": "0.1.1" }, "last_serial": 2907137, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "93ef66706fffa6f2f9917cc5fcf9b2ac", "sha256": "59b36a6050d78c095a71da376d1363a01a8a13ddf2ce9a44d9f5b6e5a3e7bc31" }, "downloads": -1, "filename": "linesep-0.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "93ef66706fffa6f2f9917cc5fcf9b2ac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6126, "upload_time": "2017-01-16T01:58:54", "url": "https://files.pythonhosted.org/packages/5f/54/7e746b3afde3b336a31acd4f97883508f23759a4b1ef44df9019234a2153/linesep-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1dd9d8f35675679c4b914f6ebadfaf6", "sha256": "42745aaa7bfb78d913a4792b0f773a979eea3653da5e4bf82a4c6c4a21ca0589" }, "downloads": -1, "filename": "linesep-0.1.0.tar.gz", "has_sig": true, "md5_digest": "f1dd9d8f35675679c4b914f6ebadfaf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7270, "upload_time": "2017-01-16T01:58:56", "url": "https://files.pythonhosted.org/packages/e6/50/74802839b42419e356d5996fc59b21f5a71d1f1a63b3e735a1065d418924/linesep-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bbddd50fed2528fc87af82b8349c4f93", "sha256": "0ed20270cfeab99f757dc0d5190be7c0d60f5d3fda906d736d808a420fdab9d9" }, "downloads": -1, "filename": "linesep-0.1.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "bbddd50fed2528fc87af82b8349c4f93", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7080, "upload_time": "2017-05-29T17:53:27", "url": "https://files.pythonhosted.org/packages/c9/dc/4e9627d0330995bea1220032772d116d7603b92cf183087ef24945b7dacd/linesep-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e827085329bc821cd8f634fb35ec1d2", "sha256": "e2922deeb5fec3fffa087d67977b0dabc41673252488aa4065dc67c2098c3fd8" }, "downloads": -1, "filename": "linesep-0.1.1.tar.gz", "has_sig": true, "md5_digest": "1e827085329bc821cd8f634fb35ec1d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8604, "upload_time": "2017-05-29T17:53:28", "url": "https://files.pythonhosted.org/packages/46/a4/0be513bc93a5ed215fa64a4176ac91a043bd025fa0379d7fafe16cd5ffa8/linesep-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bbddd50fed2528fc87af82b8349c4f93", "sha256": "0ed20270cfeab99f757dc0d5190be7c0d60f5d3fda906d736d808a420fdab9d9" }, "downloads": -1, "filename": "linesep-0.1.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "bbddd50fed2528fc87af82b8349c4f93", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7080, "upload_time": "2017-05-29T17:53:27", "url": "https://files.pythonhosted.org/packages/c9/dc/4e9627d0330995bea1220032772d116d7603b92cf183087ef24945b7dacd/linesep-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1e827085329bc821cd8f634fb35ec1d2", "sha256": "e2922deeb5fec3fffa087d67977b0dabc41673252488aa4065dc67c2098c3fd8" }, "downloads": -1, "filename": "linesep-0.1.1.tar.gz", "has_sig": true, "md5_digest": "1e827085329bc821cd8f634fb35ec1d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8604, "upload_time": "2017-05-29T17:53:28", "url": "https://files.pythonhosted.org/packages/46/a4/0be513bc93a5ed215fa64a4176ac91a043bd025fa0379d7fafe16cd5ffa8/linesep-0.1.1.tar.gz" } ] }