{ "info": { "author": "Ronie Martinez", "author_email": "ronmarti18@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# IPToCC\n\n Get ISO country code of IPv4/IPv6 address. Address lookup is done locally.\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
LicenseVersion
Travis CICoverage
AppVeyorSupported versions
WheelImplementation
StatusDownloads
Show your support
\n\n## Features\n\n- [x] No external API call\n- [x] No paid GeoIP service\n- [x] Thread-safe\n- [x] Offline\n\nTo learn about using IP addresses for geolocation, read the [Wikipedia article](https://en.wikipedia.org/wiki/Geolocation_software) to gain a basic understanding.\n\n## Install\n\n```bash\npip install IPToCC\n```\n\n## Usage\n\n```python\nfrom iptocc import get_country_code\ncountry_code = get_country_code('')\n```\n\n## Databases\n\n- ftp://ftp.afrinic.net/stats/afrinic/delegated-afrinic-extended-latest\n- ftp://ftp.arin.net/pub/stats/arin/delegated-arin-extended-latest\n- ftp://ftp.apnic.net/public/apnic/stats/apnic/delegated-apnic-extended-latest\n- ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-extended-latest\n- ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest\n\n## Dependencies\n\n- [pandas](https://github.com/pandas-dev/pandas)\n- [ipaddress](https://github.com/phihag/ipaddress)\n- [backports.functools_lru_cache import lru_cache](https://github.com/jaraco/backports.functools_lru_cache)\n\n## References\n\n- [RIR Statistics Exchange Format](https://www.apnic.net/about-apnic/corporate-documents/documents/resource-guidelines/rir-statistics-exchange-format/)\n- [How can I compile an IP address to country lookup database to make available for free?](https://webmasters.stackexchange.com/questions/34628/how-can-i-compile-an-ip-address-to-country-lookup-database-to-make-available-for)\n- [ISO 3166 Country Codes](https://dev.maxmind.com/geoip/legacy/codes/iso3166/)\n\n## Maintainers\n\n- [Ronie Martinez](mailto:ronmarti18@gmail.com)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/roniemartinez/IPToCC/tarball/2.1.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/roniemartinez/IPToCC", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "IPToCC", "package_url": "https://pypi.org/project/IPToCC/", "platform": "", "project_url": "https://pypi.org/project/IPToCC/", "project_urls": { "Download": "https://github.com/roniemartinez/IPToCC/tarball/2.1.1", "Homepage": "https://github.com/roniemartinez/IPToCC" }, "release_url": "https://pypi.org/project/IPToCC/2.1.1/", "requires_dist": [ "pandas (==0.23.4)" ], "requires_python": "", "summary": "Get country code of IPv4/IPv6 address. Address lookup is done offline.", "version": "2.1.1" }, "last_serial": 4689034, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "6ae9d8a42b4571c241abc971cc1a540f", "sha256": "0cdd7057bc2d61edec392558a0ef25e09c5d6cd0a5a9d32ecc9e5599ae55b60a" }, "downloads": -1, "filename": "IPToCC-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6ae9d8a42b4571c241abc971cc1a540f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1977, "upload_time": "2017-05-20T05:42:34", "url": "https://files.pythonhosted.org/packages/03/09/08529f9d9d70fd77fd9a9377362f73592f0a29ad6825d3b74b215556dd34/IPToCC-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "0050206b4ed21da560ef193a9df2b801", "sha256": "e7d6e90e2b719c40097550808be37940181731665c224a610aee82afab2ec65b" }, "downloads": -1, "filename": "IPToCC-1.0.2.tar.gz", "has_sig": false, "md5_digest": "0050206b4ed21da560ef193a9df2b801", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1935151, "upload_time": "2017-05-20T05:54:07", "url": "https://files.pythonhosted.org/packages/a4/a9/be2c823ca6655124ade4ef68251a2f4c296423936379abf20c3f9b4dce52/IPToCC-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "a5796898f8a2a39596be9fc4fa8af6a1", "sha256": "3eef625a52572d2cefcc31a72ec8153f32beb2f92b20504944dc0f405e673306" }, "downloads": -1, "filename": "IPToCC-1.0.3.tar.gz", "has_sig": false, "md5_digest": "a5796898f8a2a39596be9fc4fa8af6a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6467973, "upload_time": "2017-05-21T14:15:20", "url": "https://files.pythonhosted.org/packages/39/fe/a6f12ff286e4ae88d3a9ea730f8f52142d49a86704f6fbe674d39f44f12a/IPToCC-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "8ae01504d77af6e34b9668bf8f67a57f", "sha256": "d1fc8e9fcd7a73de57c57c87dcbb80ac7ca1aabbf078d63144fb902ee809f206" }, "downloads": -1, "filename": "IPToCC-1.0.4.tar.gz", "has_sig": false, "md5_digest": "8ae01504d77af6e34b9668bf8f67a57f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6467977, "upload_time": "2017-05-21T14:23:44", "url": "https://files.pythonhosted.org/packages/03/3d/11ce7352bfc4cc830373229b62cbafce741854964c94362251a0f852069f/IPToCC-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "80cd1b45a7325ac947c67775c26cc41c", "sha256": "e75bdd558d26a01e9a4402a1c0bbb46a2b25f79e2206b45a349f9809a97f6871" }, "downloads": -1, "filename": "IPToCC-1.0.5.tar.gz", "has_sig": false, "md5_digest": "80cd1b45a7325ac947c67775c26cc41c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6467876, "upload_time": "2017-05-21T15:21:04", "url": "https://files.pythonhosted.org/packages/24/c8/d93ea14bd8e7fd9a91296035dce6b510bc676750a99bca2a9ed2027046a1/IPToCC-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "d43264ffd11dc36e58315590ecd97b9d", "sha256": "a9a2916966c7b1629c264137acd7cdb0ab81b22d6f86eaefb840ebe89eddabcb" }, "downloads": -1, "filename": "IPToCC-1.0.6.tar.gz", "has_sig": false, "md5_digest": "d43264ffd11dc36e58315590ecd97b9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1312857, "upload_time": "2017-05-22T05:38:57", "url": "https://files.pythonhosted.org/packages/67/fc/d0c5520bbd444a51a6a0287bdf695d92152691f09dff586e4c2350ac59bc/IPToCC-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "11344282fb859a70814bf32ef7d2db9e", "sha256": "46d84cb308c6b850e8ad3228a7d50f091b489333016a851f93bcec85337b24d9" }, "downloads": -1, "filename": "IPToCC-1.0.7.tar.gz", "has_sig": false, "md5_digest": "11344282fb859a70814bf32ef7d2db9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1312533, "upload_time": "2017-05-22T06:24:48", "url": "https://files.pythonhosted.org/packages/76/02/0cb86312014b9d5208614c7e68cff7b51b54577b5c54453c6e23c271a6f5/IPToCC-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "23aa1aa7f9cf803854d3b624210357cf", "sha256": "b7904b3bff59b4728e02b9e72611fe50344b68d7e93496852f8235636a36e882" }, "downloads": -1, "filename": "IPToCC-1.0.8.tar.gz", "has_sig": false, "md5_digest": "23aa1aa7f9cf803854d3b624210357cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1312591, "upload_time": "2017-05-22T06:36:21", "url": "https://files.pythonhosted.org/packages/82/cd/bc2ab91c1ce35284f12221a2ea4911849daa36ea15d26aad1094d8bf952b/IPToCC-1.0.8.tar.gz" } ], "1.1.1a0": [ { "comment_text": "", "digests": { "md5": "12fe5b9ec430d61dff55c6888753cd7e", "sha256": "76c40d887d9d324f38533996baf060243be770528d5ff34cd48c16458d03dc73" }, "downloads": -1, "filename": "IPToCC-1.1.1a0.tar.gz", "has_sig": false, "md5_digest": "12fe5b9ec430d61dff55c6888753cd7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1998329, "upload_time": "2018-05-24T06:29:36", "url": "https://files.pythonhosted.org/packages/32/40/7083a92f3258d9443e52aafca4c201b3d9937151b9f8cc60a04415c88f72/IPToCC-1.1.1a0.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "28658924e2ed50a3c562d3e45631ea04", "sha256": "175a9267bd66491412da8d4a440c7ddcafcae656e8dd2ade4649bb9380036b3a" }, "downloads": -1, "filename": "IPToCC-1.1.2.tar.gz", "has_sig": false, "md5_digest": "28658924e2ed50a3c562d3e45631ea04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1999986, "upload_time": "2018-05-24T06:14:20", "url": "https://files.pythonhosted.org/packages/f2/97/402133b4c44db78af20fac6d0f16748dd710a7002442f45f5b68a79161f8/IPToCC-1.1.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "84d901ca3a7b17097e691d4851da1f0a", "sha256": "5e147866520c0c442ceae350a0da839f297be38c1ba331ac98eeda5c6212dcc3" }, "downloads": -1, "filename": "IPToCC-2.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "84d901ca3a7b17097e691d4851da1f0a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6852971, "upload_time": "2018-10-14T12:37:36", "url": "https://files.pythonhosted.org/packages/2c/11/9ace47c13abdbfa4291a52591abe17b14d5b8225e3af8cd14ad9814fbf65/IPToCC-2.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2b50122e591ecfee88a0852eca7d8f88", "sha256": "2b568cb83e52c0286162d919851d6ed4ba2077dc6f84c478d1b53ae9797635a7" }, "downloads": -1, "filename": "IPToCC-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2b50122e591ecfee88a0852eca7d8f88", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6852944, "upload_time": "2018-10-14T12:37:25", "url": "https://files.pythonhosted.org/packages/c9/0f/4cde0ffa7cd6f4ebdc703e269b89c530058010ced025ea1c86066393d947/IPToCC-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf88829051e8be32ece5064f8b38595d", "sha256": "3b0e98cca60176574b4f02e21a632b68dca45c86d467639cde745cabf9d80a6d" }, "downloads": -1, "filename": "IPToCC-2.0.0.tar.gz", "has_sig": false, "md5_digest": "cf88829051e8be32ece5064f8b38595d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6684271, "upload_time": "2018-10-14T12:37:28", "url": "https://files.pythonhosted.org/packages/e7/7b/47ff1f979285ad8f8b5d615a95be2fca3a2211d16df8ebde63f2ec473bca/IPToCC-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "d02973dde690ca86d4eec295dccb910b", "sha256": "f50c6b0058145c85379cc707930cd937994a9fd01321ffb3857ee7dcbd3ea779" }, "downloads": -1, "filename": "IPToCC-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d02973dde690ca86d4eec295dccb910b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6853052, "upload_time": "2018-10-17T05:49:58", "url": "https://files.pythonhosted.org/packages/be/11/c030e0c2b378c90683cb1d9ec7526a92404d645f689187801cb48b4e0515/IPToCC-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "102ec351420293bf57431a2d84632eee", "sha256": "17fa3d3b409d4aa7250eb7568404321326f8f6fa70108e9a9359cde13da6f8b2" }, "downloads": -1, "filename": "IPToCC-2.0.1.tar.gz", "has_sig": false, "md5_digest": "102ec351420293bf57431a2d84632eee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6684641, "upload_time": "2018-10-17T05:50:01", "url": "https://files.pythonhosted.org/packages/a1/ea/0e7f3b882506ec27f3ab6cb7e226ed81f2734b923185f0d004273702a391/IPToCC-2.0.1.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "cbb1d3b17fe33af8676fc39f66795749", "sha256": "9741b1b089ed728882521980cf5e5fc5b419ca5801f75b57ab84bb3a9a07ea88" }, "downloads": -1, "filename": "IPToCC-2.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cbb1d3b17fe33af8676fc39f66795749", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6855628, "upload_time": "2018-10-17T14:18:10", "url": "https://files.pythonhosted.org/packages/18/6f/d5576202d38e1a8290ca4fae2880c77d19cdea8502b4fe9a67f2b7384d9d/IPToCC-2.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f208db99837d449e310da31407288c0f", "sha256": "1504ec8d2d4b9dbc51c222ade5f1b0546c4e0c8d11369838fc5e4c66d28e3a98" }, "downloads": -1, "filename": "IPToCC-2.1.0.tar.gz", "has_sig": false, "md5_digest": "f208db99837d449e310da31407288c0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6688464, "upload_time": "2018-10-17T14:18:12", "url": "https://files.pythonhosted.org/packages/25/9d/0e2cc72156389b458edfea8b5b099694245583e0f25799fe239508e4d769/IPToCC-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "18639a8a9bdc82233ce797a8f910716c", "sha256": "58310be2a82a555fdb4c19a1d82ab403c49e6c341b95c0210e82f0274b1c5256" }, "downloads": -1, "filename": "IPToCC-2.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "18639a8a9bdc82233ce797a8f910716c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6855617, "upload_time": "2019-01-12T19:39:41", "url": "https://files.pythonhosted.org/packages/39/1b/4ea59d0a61370b9b976d8ce8e48cf67be5d41f5a2f687b30fddf5725d332/IPToCC-2.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1bea1f06a537e68432983b610f823ecf", "sha256": "971a2d0a306071b550cdf1f4ef69f1f022f61b68e2835245b5c3c87662a8ae3b" }, "downloads": -1, "filename": "IPToCC-2.1.1.tar.gz", "has_sig": false, "md5_digest": "1bea1f06a537e68432983b610f823ecf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6688447, "upload_time": "2019-01-12T19:39:43", "url": "https://files.pythonhosted.org/packages/51/a8/85ba18f91fee2c6bb78824cc0308a5e810f82b41763d123f3f6027068efe/IPToCC-2.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "18639a8a9bdc82233ce797a8f910716c", "sha256": "58310be2a82a555fdb4c19a1d82ab403c49e6c341b95c0210e82f0274b1c5256" }, "downloads": -1, "filename": "IPToCC-2.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "18639a8a9bdc82233ce797a8f910716c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6855617, "upload_time": "2019-01-12T19:39:41", "url": "https://files.pythonhosted.org/packages/39/1b/4ea59d0a61370b9b976d8ce8e48cf67be5d41f5a2f687b30fddf5725d332/IPToCC-2.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1bea1f06a537e68432983b610f823ecf", "sha256": "971a2d0a306071b550cdf1f4ef69f1f022f61b68e2835245b5c3c87662a8ae3b" }, "downloads": -1, "filename": "IPToCC-2.1.1.tar.gz", "has_sig": false, "md5_digest": "1bea1f06a537e68432983b610f823ecf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6688447, "upload_time": "2019-01-12T19:39:43", "url": "https://files.pythonhosted.org/packages/51/a8/85ba18f91fee2c6bb78824cc0308a5e810f82b41763d123f3f6027068efe/IPToCC-2.1.1.tar.gz" } ] }