IP2Locationpy


NameIP2Locationpy JSON
Version 8.1.0 PyPI version JSON
download
home_pagehttps://github.com/ip2location/ip2location-lookup
SummaryA Python tool to display geolocation information in the traceroute.
upload_time2023-05-09 00:47:37
maintainer
docs_urlNone
authorIP2Location
requires_python>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
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",
    "name": "IP2Locationpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
    "maintainer_email": "",
    "keywords": "IP2Location Geolocation",
    "author": "IP2Location",
    "author_email": "support@ip2location.com",
    "download_url": "https://files.pythonhosted.org/packages/8d/1e/a64e61ec1a14bbc61f50e05738ed5ddca9f9040e7f74dd44e2aab1f277ac/IP2Locationpy-8.1.0.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.0",
    "project_urls": {
        "Homepage": "https://github.com/ip2location/ip2location-lookup",
        "Official Website": "https://www.ip2location.com"
    },
    "split_keywords": [
        "ip2location",
        "geolocation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d1ea64e61ec1a14bbc61f50e05738ed5ddca9f9040e7f74dd44e2aab1f277ac",
                "md5": "5d6bced4f42cbafbaace9282ed359da5",
                "sha256": "66f8084e85c5373778b72870aec8f885f7d15927faa7d3af6afd1616eda7192e"
            },
            "downloads": -1,
            "filename": "IP2Locationpy-8.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5d6bced4f42cbafbaace9282ed359da5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
            "size": 6766,
            "upload_time": "2023-05-09T00:47:37",
            "upload_time_iso_8601": "2023-05-09T00:47:37.535912Z",
            "url": "https://files.pythonhosted.org/packages/8d/1e/a64e61ec1a14bbc61f50e05738ed5ddca9f9040e7f74dd44e2aab1f277ac/IP2Locationpy-8.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-09 00:47:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ip2location",
    "github_project": "ip2location-lookup",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ip2locationpy"
}
        
Elapsed time: 0.06020s