{ "info": { "author": "Alireza Savand", "author_email": "alireza.savand@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.3", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Sanitize\n\n[![Build Status](https://secure.travis-ci.org/Alir3z4/python-sanitize.png)](http://travis-ci.org/Alir3z4/python-sanitize)\n[![Coverage Status](https://coveralls.io/repos/Alir3z4/python-sanitize/badge.png)](https://coveralls.io/r/Alir3z4/python-sanitize)\n[![Downloads](https://pypip.in/d/sanitize/badge.png)](https://pypi.python.org/pypi/sanitize/)\n[![Version](https://pypip.in/v/sanitize/badge.png)](https://pypi.python.org/pypi/sanitize/)\n[![Egg?](https://pypip.in/egg/sanitize/badge.png)](https://pypi.python.org/pypi/sanitize/)\n[![Wheel?](https://pypip.in/wheel/sanitize/badge.png)](https://pypi.python.org/pypi/sanitize/)\n[![Format](https://pypip.in/format/sanitize/badge.png)](https://pypi.python.org/pypi/sanitize/)\n[![License](https://pypip.in/license/sanitize/badge.png)](https://pypi.python.org/pypi/sanitize/)\n\n`sanitize` is a Python module for making sure various things (e.g. HTML) are safe to use. \nIt was originally written by Mark Pilgrim and is distributed under the BSD license.\n\nUsage\n=====\n```\n>>> from sanitize import HTML\n>>> HTML('hello')\n'hello'\n>>> HTML('')\n''\n>>> HTML((\"hello\")\n... )\n'hello'\n>>> HTML('>> HTML('')\n''\n>>> # dangerous tags (a small sample)\n... \n>>> HTML('safe description')\n'safe description'\n>>> HTML('safe description')\n'safe description'\n>>> # bad protocols (a small sample)\n>>> HTML('bar')\n'bar'\n>>> HTML('bar')\n'bar'\n>>> \n```\nTo see more usage examples see `tests/test_sanitize_html.py`.\n\n\nInstallation\n============\n\n`python-sanitize` is available on pypi\n\nhttp://pypi.python.org/pypi/python-sanitize\n\nSo easily install it by `pip`:\n\n```\npip install sanitize\n```\n\nOr by `easy_install`:\n\n```\n$ easy_install sanitize\n```\n\nAnother way is by cloning `python-sanitize`'s git repository\n\n```\n$ git clone git://github.com/Alir3z4/python-sanitize.git\n```\n\nThen install it by running\n\n```\n$ python setup.py install\n```\n\nTests\n=====\n\nTo run unit tests:\n\n```\n$ python setup.py test\n```\n\n\nLicense\n=======\n\n`Sanitize` is distributed under BSD license.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.aaronsw.com/2002/sanitize/", "keywords": null, "license": "Redistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "sanitize", "package_url": "https://pypi.org/project/sanitize/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sanitize/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.aaronsw.com/2002/sanitize/" }, "release_url": "https://pypi.org/project/sanitize/2014.10.7/", "requires_dist": null, "requires_python": null, "summary": "Bringing sanitiy to world of messed-up data", "version": "2014.10.7" }, "last_serial": 1250991, "releases": { "0.33": [ { "comment_text": "", "digests": { "md5": "010e95b334c1068c1b6e24c07882a3b2", "sha256": "4dad3f88e143b2b9a3b1d15042e3334afce7b742716d9e0cf54f36ebdc1b4c30" }, "downloads": -1, "filename": "sanitize-0.33.tar.gz", "has_sig": false, "md5_digest": "010e95b334c1068c1b6e24c07882a3b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6710, "upload_time": "2011-12-27T18:54:41", "url": "https://files.pythonhosted.org/packages/cb/a5/1b325c4dba1e6541933664bfb5844c9d1a9cacfaaa6336451a30692154d9/sanitize-0.33.tar.gz" } ], "2014.10.7": [ { "comment_text": "", "digests": { "md5": "15505533a57f2ab146be82ca6fa7160e", "sha256": "b162126bfc18833d5d838b8a7661de02409d59806fb741312f81717708b4c586" }, "downloads": -1, "filename": "sanitize-2014.10.7.tar.gz", "has_sig": false, "md5_digest": "15505533a57f2ab146be82ca6fa7160e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11519, "upload_time": "2014-10-07T18:55:31", "url": "https://files.pythonhosted.org/packages/5f/df/d96ce02256afb9d51479face7351241d5a8cf38bd3a13d0f870525464225/sanitize-2014.10.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "15505533a57f2ab146be82ca6fa7160e", "sha256": "b162126bfc18833d5d838b8a7661de02409d59806fb741312f81717708b4c586" }, "downloads": -1, "filename": "sanitize-2014.10.7.tar.gz", "has_sig": false, "md5_digest": "15505533a57f2ab146be82ca6fa7160e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11519, "upload_time": "2014-10-07T18:55:31", "url": "https://files.pythonhosted.org/packages/5f/df/d96ce02256afb9d51479face7351241d5a8cf38bd3a13d0f870525464225/sanitize-2014.10.7.tar.gz" } ] }