{ "info": { "author": "Tomaz Solc", "author_email": "tomaz.solc@tablix.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: Name Service (DNS)" ], "description": "Public Suffix List module for Python\n====================================\n\nThis module allows you to get the public suffix of a domain name using the\nPublic Suffix List from http://publicsuffix.org\n\nA public suffix is one under which Internet users can directly register\nnames. Some examples of public suffixes are .com, .co.uk and pvt.k12.wy.us.\nAccurately knowing the public suffix of a domain is useful when handling\nweb browser cookies, highlighting the most important part of a domain name\nin a user interface or sorting URLs by web site.\n\nIt's up the user to provide this module with an appropriate version of the\nPublic Suffix List. A convenience function is provided that downloads the most\nrecent version available on http://publicsuffix.org\n\n\nModule content\n--------------\n\nThe `fetch()` function downloads the most recent version of the list and\nreturns a file object. You should cache the data as appropriate for your\napplication::\n\n >>> from publicsuffix import fetch\n >>> psl_file = fetch()\n\nAlternatively, if you have the list already downloaded by other means::\n\n >>> import codecs\n >>> psl_file = codecs.open('publicsuffix/public_suffix_list.dat', encoding='utf8')\n\nThe `PublicSuffixList` class parses the Public Suffix List and allows queries\nfor individual domain names::\n\n >>> from publicsuffix import PublicSuffixList\n >>> psl = PublicSuffixList(psl_file)\n >>> psl.get_public_suffix(\"www.example.com\")\n 'example.com'\n\nPlease note that the ``host`` part of an URL can contain strings that are\nnot plain DNS domain names (IP addresses, Punycode-encoded names, name in\ncombination with a port number or an username, etc.). It is up to the\ncaller to ensure only domain names are passed to the get_public_suffix()\nmethod.\n\n\n\nInstallation\n------------\n\nTo install from the source distribution and run unit tests, use these\ncommands::\n\n $ python setup.py install\n $ python setup.py test\n\n\nSource\n------\n\nYou can get a local copy of the development repository with::\n\n git clone http://www.tablix.org/~avian/git/publicsuffix.git\n\n\nNotes on backwards compatibility\n--------------------------------\n\nThis module ships with an out-dated copy of the Public Suffix List for\ncompatiblity with older versions. Use of this list is deprecated since it\nencouraged applications that never updated the Public Suffix List data. The\nbuilt-in list will be removed in a future version.\n\nIf you are using the `PublicSuffixList` constructor without any arguments,\nplease use the `fetch()` function and implement an appropriate cache, as shown\nabove.\n\n\nSupport\n-------\n\nQuestions, bug reports, useful code bits, and suggestions should be sent to\ntomaz.solc@tablix.org\n\n..\n vim: set filetype=rst:\n\n\nLicense\n-------\n\nCopyright (c) 2015 Toma\u017e \u0160olc \n\nPython module included in this distribution is based on the code downloaded\nfrom http://code.google.com/p/python-public-suffix-list/, which is\navailable under the following license:\n\nCopyright (c) 2009 David Wilson\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\n\n\nThe Public Suffix List included in this distribution has been downloaded\nfrom http://publicsuffix.org/ and is covered by a separate license. Please\nsee the license block at the top of the file itself.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "publicsuffix", "package_url": "https://pypi.org/project/publicsuffix/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/publicsuffix/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/publicsuffix/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "Get a public suffix for a domain name using the Public Suffix List.", "version": "1.1.0" }, "last_serial": 1624290, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d0cbe3bbf20328c290523a282686a0b4", "sha256": "398a92db14269ed68bb83a94c9d61420fb9d349faf915a6c8d09bf17d6d54cf4" }, "downloads": -1, "filename": "publicsuffix-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d0cbe3bbf20328c290523a282686a0b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28727, "upload_time": "2011-07-29T12:38:47", "url": "https://files.pythonhosted.org/packages/aa/56/6d04db58a5a8dd7ef5557018ade7210bb27a21c82ce347bd71b06074adae/publicsuffix-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "88b212c04928acaf9ed522f254a64e6e", "sha256": "5a61b63b2cde6bfb15d3974e384805c35b7134b79623fee5ee198816a5c66a91" }, "downloads": -1, "filename": "publicsuffix-1.0.1.tar.gz", "has_sig": false, "md5_digest": "88b212c04928acaf9ed522f254a64e6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28925, "upload_time": "2011-09-22T16:41:58", "url": "https://files.pythonhosted.org/packages/26/8e/6aff91d98f6b6269f223f8a44baceb9fe532674a5ea8f5a970758802fa9b/publicsuffix-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f86babf56f6e58b564d3853adebcf37a", "sha256": "f6dfcb8a33fb3ac4f09e644cd26f8af6a09d1a45a019d105c8da58e289ca0096" }, "downloads": -1, "filename": "publicsuffix-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f86babf56f6e58b564d3853adebcf37a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28992, "upload_time": "2011-10-10T14:48:20", "url": "https://files.pythonhosted.org/packages/41/a5/88252a46556880e1085b81e1984b3561f3c27d2a8e78944d8247ff95a6fb/publicsuffix-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "cc272147a0b22afb5b783fd914c08eb7", "sha256": "90c9af65b1a8657da619e34dcdd195daa70deb501e4bea26a7539feb05a39aae" }, "downloads": -1, "filename": "publicsuffix-1.0.3.tar.gz", "has_sig": false, "md5_digest": "cc272147a0b22afb5b783fd914c08eb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38932, "upload_time": "2013-01-02T09:22:12", "url": "https://files.pythonhosted.org/packages/39/5b/bff980a6c434fe4016718cfff79e3eff948f0d93eab50dd9a521748aa249/publicsuffix-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "00f0d39cdfc3d6ab45d7a3910346d9b3", "sha256": "aef229ed2260ed9c7c415bd09749dca173a5ac7bb1d4c278cd4bf2e3531c46ea" }, "downloads": -1, "filename": "publicsuffix-1.0.4.tar.gz", "has_sig": false, "md5_digest": "00f0d39cdfc3d6ab45d7a3910346d9b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39000, "upload_time": "2013-01-02T10:20:33", "url": "https://files.pythonhosted.org/packages/c0/6b/a0db31c2a4b1d8f795c9cd3b3134c9dddefb990e1a8ff99ad95cf2075476/publicsuffix-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "8f8c0b8749e8fb448661f21b65503a5f", "sha256": "7ad1bcd781909e99aa125e446141c89875038be9dd7734dd4dae4fd8f9389c66" }, "downloads": -1, "filename": "publicsuffix-1.0.5.tar.gz", "has_sig": false, "md5_digest": "8f8c0b8749e8fb448661f21b65503a5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44061, "upload_time": "2014-01-24T09:28:34", "url": "https://files.pythonhosted.org/packages/a2/92/00aa2bd3093b6a7b4a77a2fa4cbfb257619eb128202d21920afa4de7ee7e/publicsuffix-1.0.5.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "3342905389812d4ad7e6c50699eba6b4", "sha256": "ae77593d269e1e5131723259cc1142c25690c20c59f2e98f67e227228028bda9" }, "downloads": -1, "filename": "publicsuffix-1.1.0.tar.gz", "has_sig": false, "md5_digest": "3342905389812d4ad7e6c50699eba6b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61602, "upload_time": "2015-07-08T12:00:18", "url": "https://files.pythonhosted.org/packages/76/8e/2be900ba8397bafe88c9d17fab456faddab7af22d7105df18699d3dd97de/publicsuffix-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3342905389812d4ad7e6c50699eba6b4", "sha256": "ae77593d269e1e5131723259cc1142c25690c20c59f2e98f67e227228028bda9" }, "downloads": -1, "filename": "publicsuffix-1.1.0.tar.gz", "has_sig": false, "md5_digest": "3342905389812d4ad7e6c50699eba6b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61602, "upload_time": "2015-07-08T12:00:18", "url": "https://files.pythonhosted.org/packages/76/8e/2be900ba8397bafe88c9d17fab456faddab7af22d7105df18699d3dd97de/publicsuffix-1.1.0.tar.gz" } ] }