IP2Locationpy


NameIP2Locationpy JSON
Version 8.1.2 PyPI version JSON
download
home_pagehttps://github.com/ip2location/ip2location-lookup-py
SummaryA Python tool to display geolocation information in the traceroute.
upload_time2024-10-04 05:01:38
maintainerNone
docs_urlNone
authorIP2Location
requires_python!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7
licenseMIT
keywords ip2location geolocation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # IP2Locationpy

IP2Locationpy is a Python tool allowing user to get IP address information such as country, region, city, latitude, longitude, zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation, usage type, address type, IAB category, district, autonomous system number (ASN) and autonomous system (AS) by IP address (IPv4 or IPv6) from IP2Location BIN database.

For more details, please visit:
https://www.ip2location.com/free/applications

### Installation

You can install this tool by using pip in Windows or Linux. To install this tool in Windows and Linux, just type `pip install IP2Locationpy` in your console and IP2Location-Lookup will be installed in your machine.

*Note: This tool require [IP2Location](https://github.com/chrislim2888/IP2Location-Python) library to work with. If pip did not install the dependency for you, you can manually install it by using `pip install IP2Location`.*

### Usage

Query an IP address and display the result

```
ip2locationpy -d [IP2LOCATION BIN DATA PATH] --ip [IP ADDRESS]  
```

Query all IP addresses from an input file and display the result

```
ip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH]  
```

Query all IP addresses from an input file and display the result in XML format

```
ip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH] --format XML  
```

## Download More Sample Databases

```
wget https://www.ip2location.com/downloads/sample.bin.db26.zip
unzip samples-db26.zip
```

## Support

Email: [support@ip2location.com](mailto:support@ip2location.com)
URL: [https://www.ip2location.com](https://www.ip2location.com/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ip2location/ip2location-lookup-py",
    "name": "IP2Locationpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
    "maintainer_email": null,
    "keywords": "IP2Location Geolocation",
    "author": "IP2Location",
    "author_email": "support@ip2location.com",
    "download_url": "https://files.pythonhosted.org/packages/c3/25/a4ddba15f5e126a022b73c7f1b640e363dd3e3a38bff47aa4889dfcfed98/ip2locationpy-8.1.2.tar.gz",
    "platform": null,
    "description": "# IP2Locationpy\r\n\r\nIP2Locationpy is a Python tool allowing user to get IP address information such as country, region, city, latitude, longitude, zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation, usage type, address type, IAB category, district, autonomous system number (ASN) and autonomous system (AS) by IP address (IPv4 or IPv6) from IP2Location BIN database.\r\n\r\nFor more details, please visit:\r\nhttps://www.ip2location.com/free/applications\r\n\r\n### Installation\r\n\r\nYou can install this tool by using pip in Windows or Linux. To install this tool in Windows and Linux, just type `pip install IP2Locationpy` in your console and IP2Location-Lookup will be installed in your machine.\r\n\r\n*Note: This tool require [IP2Location](https://github.com/chrislim2888/IP2Location-Python) library to work with. If pip did not install the dependency for you, you can manually install it by using `pip install IP2Location`.*\r\n\r\n### Usage\r\n\r\nQuery an IP address and display the result\r\n\r\n```\r\nip2locationpy -d [IP2LOCATION BIN DATA PATH] --ip [IP ADDRESS]  \r\n```\r\n\r\nQuery all IP addresses from an input file and display the result\r\n\r\n```\r\nip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH]  \r\n```\r\n\r\nQuery all IP addresses from an input file and display the result in XML format\r\n\r\n```\r\nip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH] --format XML  \r\n```\r\n\r\n## Download More Sample Databases\r\n\r\n```\r\nwget https://www.ip2location.com/downloads/sample.bin.db26.zip\r\nunzip samples-db26.zip\r\n```\r\n\r\n## Support\r\n\r\nEmail: [support@ip2location.com](mailto:support@ip2location.com)\r\nURL: [https://www.ip2location.com](https://www.ip2location.com/)\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python tool to display geolocation information in the traceroute.",
    "version": "8.1.2",
    "project_urls": {
        "Homepage": "https://github.com/ip2location/ip2location-lookup-py",
        "Official Website": "https://www.ip2location.com"
    },
    "split_keywords": [
        "ip2location",
        "geolocation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7c632bc8c73ee2b0244aed3db27cc69a74a173d875f2e0d605e17ad4fa6a3f92",
                "md5": "48356804af960ac18d0abcca6883ccbc",
                "sha256": "f429bd59f78d5ccfb2332aca50b6e0bbc5887c0733bba5f42240d93f1407af84"
            },
            "downloads": -1,
            "filename": "IP2Locationpy-8.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48356804af960ac18d0abcca6883ccbc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
            "size": 7307,
            "upload_time": "2024-10-04T05:01:36",
            "upload_time_iso_8601": "2024-10-04T05:01:36.624236Z",
            "url": "https://files.pythonhosted.org/packages/7c/63/2bc8c73ee2b0244aed3db27cc69a74a173d875f2e0d605e17ad4fa6a3f92/IP2Locationpy-8.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c325a4ddba15f5e126a022b73c7f1b640e363dd3e3a38bff47aa4889dfcfed98",
                "md5": "8652a82dd03619976036f36743dcf4fb",
                "sha256": "6ef512f1ed70768ffaf0e5beb2ebd907dbbb340e8a7a143357cbb6a4b8edee88"
            },
            "downloads": -1,
            "filename": "ip2locationpy-8.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "8652a82dd03619976036f36743dcf4fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
            "size": 6903,
            "upload_time": "2024-10-04T05:01:38",
            "upload_time_iso_8601": "2024-10-04T05:01:38.251205Z",
            "url": "https://files.pythonhosted.org/packages/c3/25/a4ddba15f5e126a022b73c7f1b640e363dd3e3a38bff47aa4889dfcfed98/ip2locationpy-8.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-04 05:01:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ip2location",
    "github_project": "ip2location-lookup-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ip2locationpy"
}
        
Elapsed time: 0.36048s