{ "info": { "author": "Bystroushaak", "author_email": "bystrousak@kitakitsune.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.7", "Topic :: Software Development", "Topic :: Text Processing" ], "description": "remove_hairs\n===============================\n\n.. image:: https://badge.fury.io/py/remove_hairs.png\n :target: http://badge.fury.io/py/remove_hairs\n\n.. image:: https://pypip.in/d/remove_hairs/badge.png\n :target: https://pypi.python.org/pypi/remove_hairs\n\n\nFunction form removing characters from both sides of string.\n\nDocumentation\n-------------\n\nThere is just one function ``remove_hairs()`` and one decorator\n``remove_hairs_decorator()``.\n\nremove_hairs()\n++++++++++++++\n\nThis function is useful, when you have string and you need to remove some\ncharacters from both sides of the string.\n\n.. code-block:: python\n\n >>> from remove_hairs import remove_hairs\n >>> remove_hairs(\",a-sd,-/\")\n 'a-sd'\n\nBy default, the function uses set of characters defined in ``.HAIRS``, which\nis defined as ``/:;,- []<>()``. You can change that using ``hairs`` parameter:\n\n.. code-block:: python\n\n >>> remove_hairs(\" - a sd: --\", \" -\")\n 'a sd:'\n\nremove_hairs_decorator()\n++++++++++++++++++++++++\n\nAs the name say, ``remove_hairs_decorator()`` is just decorator for ``remove_hairs()``:\n\n.. code-block:: python\n\n @remove_hairs_decorator\n def x():\n return \",a-sd,-/\"\n\n assert x() == \"a-sd\"\n\nOr with ``hairs`` parameter:\n\n.. code-block:: python\n\n @remove_hairs_decorator(hairs=\" -\")\n def y():\n return \" - a sd: --\"\n\n assert y() == \"a sd:\"\n\nInstallation\n------------\n\nThe code is hosted at `PYPI `_,\nand you can easily install it using the following command:\n\n.. code-block:: bash\n\n sudo pip install remove_hairs\n\nTesting\n-------\n\nThis project uses `py.test `_ for testing. Just run\n``py.test`` from the root of the project::\n\n $ py.test\n ============================= test session starts ==============================\n platform linux2 -- Python 2.7.6 -- py-1.4.26 -- pytest-2.6.4\n collected 2 items \n\n tests/test_remove_hairs.py ..\n\n =========================== 2 passed in 0.02 seconds ===========================\n\n\nChangelog\n=========\n\n1.0.1\n-----\n - Fixed ``setup.py``.\n\n1.0.0\n-----\n - Project created.", "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/Bystroushaak/remove_hairs", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "remove_hairs", "package_url": "https://pypi.org/project/remove_hairs/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/remove_hairs/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Bystroushaak/remove_hairs" }, "release_url": "https://pypi.org/project/remove_hairs/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Function form removing characters from both sides of string.", "version": "1.0.1" }, "last_serial": 1475166, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b000fba30b469bbc69b21b50be29d80c", "sha256": "4a2108c3d3ef3edf674de5dee34095ad066988dc6a995bc33652baf34b1790bb" }, "downloads": -1, "filename": "remove_hairs-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b000fba30b469bbc69b21b50be29d80c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3465, "upload_time": "2015-03-24T11:18:18", "url": "https://files.pythonhosted.org/packages/5a/73/57b01f1c11cfbc936241b09c226c93d41f6b819a05cd7ff94e894fe9f12a/remove_hairs-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "07e5f387e8aae752e586beb400d2d981", "sha256": "2921c1cbb28c37615e1105b0319c09514400bb53ee61b4b74901898d47747a10" }, "downloads": -1, "filename": "remove_hairs-1.0.1.tar.gz", "has_sig": false, "md5_digest": "07e5f387e8aae752e586beb400d2d981", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4056, "upload_time": "2015-03-24T13:21:24", "url": "https://files.pythonhosted.org/packages/4e/9d/d0a8cd5181cb3f63005dc8ba792d2f1fc9c773cbebb3b1ff0b80a5a529c4/remove_hairs-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "07e5f387e8aae752e586beb400d2d981", "sha256": "2921c1cbb28c37615e1105b0319c09514400bb53ee61b4b74901898d47747a10" }, "downloads": -1, "filename": "remove_hairs-1.0.1.tar.gz", "has_sig": false, "md5_digest": "07e5f387e8aae752e586beb400d2d981", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4056, "upload_time": "2015-03-24T13:21:24", "url": "https://files.pythonhosted.org/packages/4e/9d/d0a8cd5181cb3f63005dc8ba792d2f1fc9c773cbebb3b1ff0b80a5a529c4/remove_hairs-1.0.1.tar.gz" } ] }