{ "info": { "author": "Antonis Christofides", "author_email": "antonis@antonischristofides.com", "bugtrack_url": null, "classifiers": [], "description": "=========================================\ntextbisect - Binary search in a text file\n=========================================\n\n.. image:: https://travis-ci.org/aptiko/textbisect.svg?branch=master\n :alt: Build button\n :target: https://travis-ci.org/aptiko/textbisect\n\nDescription\n===========\n\nThis Python 3 module provides functionality to search inside sorted text\nfiles. The lines of the files need not be all of the same length. The\nmodule contains the following functions:\n\n* ``text_bisect_left(a, x, lo=0, hi=None, key=lambda x: x)`` locates the\n insertion point for line *x* in seekable filelike object *a*\n consisting of a number of lines; *x* must be specified without a\n trailing newline. *a* must use ``\\n`` as the newline character and\n must not perform any line endings translation (use ``open(...,\n newline='\\n')``). The parameters *lo* and *hi*, if specified, must be\n absolute positions within object *a*, and specify which part of *a* to\n search; the default is to search the entire *a*. The character pointed\n to by *hi* (or the last character of the object, if *hi* is\n unspecified) must be a newline. *key* is a function that is used to\n compare each line of *a* with *x*; line endings are removed from the\n lines of *a* before comparison. *a* must be sorted or the result will\n be undefined. If *x* compares equal to a line in *a*, the returned\n insertion point is the beginning of that line. The initial position of\n *a* is discarded. The function returns the insertion point, which is\n an integer between *lo* and *hi+1*, pointing to the beginning of a\n line; when it exits, *a* is positioned there.\n\n* ``text_bisect_right()`` is the same as ``text_bisect_left()``, except\n that if *x* compares equal to a line in *a*, the returned insertion\n point is the beginning of the next line.\n\n* ``text_bisect()`` is the same as ``text_bisect_right()``.\n\nLicense\n=======\n\n| Copyright (C) 2016 Antonis Christofides\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .\n", "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/openmeteo/textbisect", "keywords": null, "license": "GPL3", "maintainer": null, "maintainer_email": null, "name": "textbisect", "package_url": "https://pypi.org/project/textbisect/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/textbisect/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/openmeteo/textbisect" }, "release_url": "https://pypi.org/project/textbisect/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Binary search in a sorted text file", "version": "0.1.0" }, "last_serial": 2205216, "releases": { "0.0.0": [], "0.1.0": [ { "comment_text": "", "digests": { "md5": "c26dcea494c51506223f199aecdaca4a", "sha256": "73bf13291176ab9b0db1583c471ae7b8a50f561ea3cd24e5da3060c07c58b362" }, "downloads": -1, "filename": "textbisect-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c26dcea494c51506223f199aecdaca4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16522, "upload_time": "2016-07-06T09:33:25", "url": "https://files.pythonhosted.org/packages/a9/d9/f9e0d39f4abed418444814368a348d2cd06117983a03bf50866e2b4a6cca/textbisect-0.1.0.tar.gz" } ], "0.1.0a1": [ { "comment_text": "", "digests": { "md5": "e9118ac567ac95b90ced082c71097ad6", "sha256": "ef650dcc5c9fe28fa2a8086aca2f53fcca9ff69f54bccbe67ea50cab0f72ac0f" }, "downloads": -1, "filename": "textbisect-0.1.0a1.tar.gz", "has_sig": false, "md5_digest": "e9118ac567ac95b90ced082c71097ad6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16492, "upload_time": "2016-07-06T08:26:06", "url": "https://files.pythonhosted.org/packages/87/5f/7e377892dd20b97e11f70ccf02cfbff5d3bae01e36b8302db46f43e71b88/textbisect-0.1.0a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c26dcea494c51506223f199aecdaca4a", "sha256": "73bf13291176ab9b0db1583c471ae7b8a50f561ea3cd24e5da3060c07c58b362" }, "downloads": -1, "filename": "textbisect-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c26dcea494c51506223f199aecdaca4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16522, "upload_time": "2016-07-06T09:33:25", "url": "https://files.pythonhosted.org/packages/a9/d9/f9e0d39f4abed418444814368a348d2cd06117983a03bf50866e2b4a6cca/textbisect-0.1.0.tar.gz" } ] }