{ "info": { "author": "Alex Seitsinger", "author_email": "alexseitsinger@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Text Processing :: General", "Topic :: Utilities" ], "description": "# Find Best String\n\n## Description\n\nFinds the best matching string in a larger string. Returns either the first match or all matches, and their match value.\n\n## Installation\n\n```\npip install find-best-string\n```\n\nor\n\n```\npipenv install find-best-string\n```\n\n## Arguments\n\n1. query - String of text to find matches of in corpus.\n2. corpus - String of text to scan for matches of query.\n3. step - Step size of first match-value scan through corpus. Can be thought of as a sort of \"scan resolution\". Should not exceed length of query.\n4. flex - Max left/right substring position adjustment value. Should not exceed length of query / 2.\n5. case_sensitive - If false, converts corpus and query to lowercase before fiding matches.\n\n## Usage\n\n```python\nfrom find_best_string import find_best_string\n\ncorpus = \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\"\nquery = \"Ipsum\"\n\nfirst_match = find_best_string(query, corpus)\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/alexseitsinger/find_best_string", "keywords": "", "license": "BSD 2-Clause License", "maintainer": "", "maintainer_email": "", "name": "find-best-string", "package_url": "https://pypi.org/project/find-best-string/", "platform": "", "project_url": "https://pypi.org/project/find-best-string/", "project_urls": { "Homepage": "https://github.com/alexseitsinger/find_best_string" }, "release_url": "https://pypi.org/project/find-best-string/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Finds the best matching string in a larger string.", "version": "0.1.0" }, "last_serial": 4259508, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "77f156db1465f231bf354aba1fec0964", "sha256": "bfb401c6c959ba1cd42b2e026290650bef38fdf5492a607fe503eb58a3800787" }, "downloads": -1, "filename": "find_best_string-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "77f156db1465f231bf354aba1fec0964", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3748, "upload_time": "2018-09-11T00:02:07", "url": "https://files.pythonhosted.org/packages/66/7b/df5c377b7acdb7720f5072193335ac6570212fcf372e15fc16cde9a7c9fb/find_best_string-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b24d99f2d1e916b3eb309470ce54a14a", "sha256": "5fe34ee681b42dd12e2de4a3a3b50364eb81adfe24ebf5f913d265fcaba08620" }, "downloads": -1, "filename": "find_best_string-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b24d99f2d1e916b3eb309470ce54a14a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13084, "upload_time": "2018-09-11T00:02:08", "url": "https://files.pythonhosted.org/packages/00/df/14f325570411b4d26f3267df13ed29c7fa1db9221ac13962c8ea68ffe4f9/find_best_string-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77f156db1465f231bf354aba1fec0964", "sha256": "bfb401c6c959ba1cd42b2e026290650bef38fdf5492a607fe503eb58a3800787" }, "downloads": -1, "filename": "find_best_string-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "77f156db1465f231bf354aba1fec0964", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3748, "upload_time": "2018-09-11T00:02:07", "url": "https://files.pythonhosted.org/packages/66/7b/df5c377b7acdb7720f5072193335ac6570212fcf372e15fc16cde9a7c9fb/find_best_string-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b24d99f2d1e916b3eb309470ce54a14a", "sha256": "5fe34ee681b42dd12e2de4a3a3b50364eb81adfe24ebf5f913d265fcaba08620" }, "downloads": -1, "filename": "find_best_string-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b24d99f2d1e916b3eb309470ce54a14a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13084, "upload_time": "2018-09-11T00:02:08", "url": "https://files.pythonhosted.org/packages/00/df/14f325570411b4d26f3267df13ed29c7fa1db9221ac13962c8ea68ffe4f9/find_best_string-0.1.0.tar.gz" } ] }