{ "info": { "author": "AJ Bowen", "author_email": "aj@gandi.net", "bugtrack_url": null, "classifiers": [], "description": "# IDNCheck\r\n\r\nIDNcheck performs safety checks on international domain names.\r\nThis might be useful if you want to see how likely a given domain\r\nis to be used for nefarious purposes such as phishing.\r\nIt returns the unicode restriction level passed by a string, as described\r\nin Unicode Technical Standard #39, Unicode Security Mechanisms (see References).\r\n\r\nNote: On first run, it will automatically download a file if it doesn't exist:\r\nhttp://www.unicode.org/Public/UNIDATA/Scripts.txt\r\n\r\n## How to use\r\n\r\nTypical usage might look something like this:\r\n\r\n python\r\n >>> import idncheck\r\n >>> idncheck.idncheck(\"hello\")\r\n 1\r\n >>> idncheck.idncheck(\"\u03c6iloso\u03c6ia\")\r\n 42\r\n >>> idncheck.idncheck(\"\u03c6iloso\u03c6ia\", 3) # FIXME\r\n True\r\n >>> idncheck.idncheck(\"paypal\")\r\n 1\r\n >>> idncheck.idncheck(\"payp\u0430l\")\r\n 4\r\n >>> idncheck.idncheck(\"\u0440\u0430\u0443\u0440\u04301\")\r\n 4\r\n\r\nor\r\n\r\n #!/usr/bin/env python\r\n\r\n import idncheck\r\n\r\n idncheck.idencheck(\"\u03c6iloso\u03c6ia\", 3): # FIXME\r\n print(\"I see what you're doing there\")\r\n\r\n\r\n## References\r\n\r\nThis tool serves as an implementation of the Restriction-Level detection described\r\nin Unicode Technical Standard #39, Unicode Security Mechanisms: \r\n\r\n- [TR 39](http://www.unicode.org/reports/tr39/#Restriction_Level_Detection)\r\n\r\n\r\nAdditional use cases and details are available in these blog posts:\r\n\r\n- [Gmail post](http://googleonlinesecurity.blogspot.com/2014/08/protecting-gmail-in-global-world.html)\r\n- [Another Google post](http://googleenterprise.blogspot.com/2014/08/protecting-gmail-in-global-world.html)\r\n\r\n## TODO\r\n\r\n- Create a web service on a Gandi Python Simple Hosting instance", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "idncheck-old", "package_url": "https://pypi.org/project/idncheck-old/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/idncheck-old/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/idncheck-old/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Returns IDN restriction level of a string.", "version": "0.1.0" }, "last_serial": 1343881, "releases": { "0.1.0": [] }, "urls": [] }