{ "info": { "author": "Ivan Konovalov", "author_email": "rvan.mega@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Text Processing" ], "description": "This is repository is an improved version of htmlcutstring (https://code.google.com/p/cut-html-string/).\r\nI'm not the original author.\r\n\r\nDifferences between original\r\n============================\r\n1. htmlcutstr has availability to count words instead of characters\r\n2. It works fine on both Python 2.x and 3.x\r\n\r\nInstallation\r\n============\r\nRun 'setup.py install' to install this package.\r\n\r\nUsage\r\n=====\r\ncutHtmlString(string, limit, countType='c')\r\n\r\n| string is obviously the string you want to cut\r\n| limit maximum number of characters/words (depending on countType value) output string can have\r\n| countType can be equal to 'c' or 'w'\r\n| 'c' means 'count by characters'\r\n| 'w' means 'count by words'.\r\n\r\nExamples\r\n========\r\n::\r\n \r\n from htmlcutstr import cutHtmlString\r\n \r\n htmlstring = '
insert your text here
'\r\n \r\n print(cutHtmlString(htmlstring, 10)) # '
insert you
'\r\n print(cutHtmlString(htmlstring, 3, 'w')) # '
insert your text
'", "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/SPython/htmlcutstr", "keywords": "html, cut, text", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "", "name": "htmlcutstr", "package_url": "https://pypi.org/project/htmlcutstr/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/htmlcutstr/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/SPython/htmlcutstr" }, "release_url": "https://pypi.org/project/htmlcutstr/1.2.1/", "requires_dist": null, "requires_python": null, "summary": "Python module which helps to cut HTML strings by keeping HTML tags as they are", "version": "1.2.1" }, "last_serial": 1378553, "releases": { "1.2": [ { "comment_text": "", "digests": { "md5": "370200e2e20ef653cbcb8507ed2ed34f", "sha256": "6425e93f77d08ff7701946f10f5ea47b44cd577ef9a5e736aecf538e7017022e" }, "downloads": -1, "filename": "htmlcutstr-1.2.tar.gz", "has_sig": false, "md5_digest": "370200e2e20ef653cbcb8507ed2ed34f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2011, "upload_time": "2014-12-31T18:24:13", "url": "https://files.pythonhosted.org/packages/a4/e6/56155b19ea6e2fd7e6ff5f2313f09db77a6c09c5325af7b1902ed4b74641/htmlcutstr-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "b7c79ef59b56bf918ce0a537d313566e", "sha256": "a07ad4b5605ca2565669250016d04f88b8e1fa167eff8fe20544e9260a96dd35" }, "downloads": -1, "filename": "htmlcutstr-1.2.1.tar.gz", "has_sig": false, "md5_digest": "b7c79ef59b56bf918ce0a537d313566e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1994, "upload_time": "2014-12-31T18:28:22", "url": "https://files.pythonhosted.org/packages/02/a5/3a4386c5d4952010f59748d97d502e5264ffd03e641da58d994fe6eda96e/htmlcutstr-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7c79ef59b56bf918ce0a537d313566e", "sha256": "a07ad4b5605ca2565669250016d04f88b8e1fa167eff8fe20544e9260a96dd35" }, "downloads": -1, "filename": "htmlcutstr-1.2.1.tar.gz", "has_sig": false, "md5_digest": "b7c79ef59b56bf918ce0a537d313566e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1994, "upload_time": "2014-12-31T18:28:22", "url": "https://files.pythonhosted.org/packages/02/a5/3a4386c5d4952010f59748d97d502e5264ffd03e641da58d994fe6eda96e/htmlcutstr-1.2.1.tar.gz" } ] }