{ "info": { "author": "Kohei YOSHIDA", "author_email": "license@yosida95.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Security", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ip2country\n==========\n|travis|_ |coveralls|_ |pypibadge|_\n\n-----\nAbout\n-----\nLookup country code (iso 3166) by IP address.\n\n-------\nInstall\n-------\n\n.. code:: shell\n\n $ pip install ip2country\n\nOr\n\n.. code:: shell\n\n $ python setup.py install\n\n\n----------\nHow to use\n----------\n\nFirst: Implement IStore Interface\n---------------------------------\nYou must implement IStore interface in ip2country/interfaces.py.\n\nThere is a sample implementation in example/store.\nThis implementation is stored all records on the system memory.\n\nSecond: Store the records\n-------------------------\n.. code:: python\n\n store = Store()\n parser = Parser(store)\n with open(RECORD_FILE) as fp:\n parser.do(fp)\n\nSee examples/lookup.py:load for more detail.\n\nThird: Lookup the IPAddress\n---------------------------\n\n.. code:: python\n\n store = Store()\n record = store.lookup(IP_ADDRESS)\n if record is None:\n print('Record not found')\n else:\n print('{0} is allocated to {1}'.format(IP_ADDRESS, record.cc))\n\nSee examples/lookup.py:main for more detail.\n\n\n-------------\nRun the tests\n-------------\n\n.. code:: shell\n\n $ tox\n\n-------\nLicense\n-------\nip2country is licensed under the MIT LICENSE. See ./LICENSE.rst.\n\n\n.. _travis: https://travis-ci.org/yosida95/ip2country\n.. |travis| image:: https://travis-ci.org/yosida95/ip2country.svg?branch=master\n\n.. _coveralls: https://coveralls.io/r/yosida95/ip2country?branch=master\n.. |coveralls| image:: https://coveralls.io/repos/yosida95/ip2country/badge.png?branch=master\n\n.. _pypibadge: http://badge.fury.io/py/ip2country\n.. |pypibadge| image:: https://badge.fury.io/py/ip2country.svg?dummy", "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/yosida95/ip2country", "keywords": null, "license": "The MIT License (MIT) Copyright \u00a9 2014 Kohei YOSHIDA \n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\u201cSoftware\u201d), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "ip2country", "package_url": "https://pypi.org/project/ip2country/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ip2country/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/yosida95/ip2country" }, "release_url": "https://pypi.org/project/ip2country/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Lookup country code (iso 3166) by IP address.", "version": "0.1.1" }, "last_serial": 1098301, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ab89fa74e5a406043e97b9f45fc4b30f", "sha256": "bb7ce81f1337e4702d1158bbae8b7df7d7fcc2c1c7f9ca9e6235caf5ab584436" }, "downloads": -1, "filename": "ip2country-0.0.1-py33-none-any.whl", "has_sig": false, "md5_digest": "ab89fa74e5a406043e97b9f45fc4b30f", "packagetype": "bdist_wheel", "python_version": "3.3", "requires_python": null, "size": 6965, "upload_time": "2014-05-20T09:47:29", "url": "https://files.pythonhosted.org/packages/4c/4e/c1d06d1b54587da243fabd295caaad53c2ef7b570379eb1b1b396e206916/ip2country-0.0.1-py33-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9200401c9b95e5878faac4727acd49cf", "sha256": "fdb6d1d417eb3a44a91cbc6f0965b0c5629b74d8fe46e4392a96db798c3c0830" }, "downloads": -1, "filename": "ip2country-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9200401c9b95e5878faac4727acd49cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3951, "upload_time": "2014-05-20T09:47:43", "url": "https://files.pythonhosted.org/packages/a6/28/10d3c413a03ee8c4141ecec105d74889b3e6f7035a3da366c0c04668ead8/ip2country-0.0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "21d2c1f1d8744b2937b829c22be5c8bf", "sha256": "798c56c0c8eaf3168c5eb2285994d808fb9d5cb48ba8b4a3d387cd464b7aeff8" }, "downloads": -1, "filename": "ip2country-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "21d2c1f1d8744b2937b829c22be5c8bf", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7053, "upload_time": "2014-05-20T11:43:18", "url": "https://files.pythonhosted.org/packages/a2/e9/cf87beec6dc28965218d973c30b721e30d23587f8f15dd5dcc9a6417a736/ip2country-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d9157021fc6f4d83d6ff689f395d50b3", "sha256": "cf3a383135779155ec2763ef2ce5c18ccda2d0a4d5c410a963475780a98f4fd1" }, "downloads": -1, "filename": "ip2country-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d9157021fc6f4d83d6ff689f395d50b3", "packagetype": "bdist_wheel", "python_version": "3.3", "requires_python": null, "size": 7048, "upload_time": "2014-05-20T11:42:14", "url": "https://files.pythonhosted.org/packages/09/b4/1abf8b76a84563a977e2cec8af328012ffdf5ed74a97cc6b584117f598ee/ip2country-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db36d515061fd01bcfce6ee2b3ed5e1c", "sha256": "26d112dc2f6a9ac834757282bef2674eccc4d552d2a05ffa0f1c7260059bcd3a" }, "downloads": -1, "filename": "ip2country-0.1.1.tar.gz", "has_sig": false, "md5_digest": "db36d515061fd01bcfce6ee2b3ed5e1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4099, "upload_time": "2014-05-20T11:42:29", "url": "https://files.pythonhosted.org/packages/e8/05/1476031288bde6aaeccbbf797b802596801c35762d791a5ded50c6c5fac0/ip2country-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21d2c1f1d8744b2937b829c22be5c8bf", "sha256": "798c56c0c8eaf3168c5eb2285994d808fb9d5cb48ba8b4a3d387cd464b7aeff8" }, "downloads": -1, "filename": "ip2country-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "21d2c1f1d8744b2937b829c22be5c8bf", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7053, "upload_time": "2014-05-20T11:43:18", "url": "https://files.pythonhosted.org/packages/a2/e9/cf87beec6dc28965218d973c30b721e30d23587f8f15dd5dcc9a6417a736/ip2country-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d9157021fc6f4d83d6ff689f395d50b3", "sha256": "cf3a383135779155ec2763ef2ce5c18ccda2d0a4d5c410a963475780a98f4fd1" }, "downloads": -1, "filename": "ip2country-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d9157021fc6f4d83d6ff689f395d50b3", "packagetype": "bdist_wheel", "python_version": "3.3", "requires_python": null, "size": 7048, "upload_time": "2014-05-20T11:42:14", "url": "https://files.pythonhosted.org/packages/09/b4/1abf8b76a84563a977e2cec8af328012ffdf5ed74a97cc6b584117f598ee/ip2country-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db36d515061fd01bcfce6ee2b3ed5e1c", "sha256": "26d112dc2f6a9ac834757282bef2674eccc4d552d2a05ffa0f1c7260059bcd3a" }, "downloads": -1, "filename": "ip2country-0.1.1.tar.gz", "has_sig": false, "md5_digest": "db36d515061fd01bcfce6ee2b3ed5e1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4099, "upload_time": "2014-05-20T11:42:29", "url": "https://files.pythonhosted.org/packages/e8/05/1476031288bde6aaeccbbf797b802596801c35762d791a5ded50c6c5fac0/ip2country-0.1.1.tar.gz" } ] }