Skip to main content

A cross-platform easy-to-use ip geolocation & mapping tool.

Project description

Docker Image CI CodeQL GitHub top language PyPI PyPI - Status

English readme简体中文 readme正體中文 readmeLengua española readmeDeutsche readmeSvenska readme한국어 readmeFrançais readmeहिन्दी readmePortuguês readmeItalian readmeРусский readmeIndonesian readmeفارسی readmeTürkçe readmePolskie readme

IPMap geolocates a given ip address/addresses from a file, then generates a leaflet map pin-pointing the location of each ip address on it (with the right argument).

Features

  • Looks up ip address(es) and returns the associated information.
  • Looks up an ip address(es) and returns the associated information then pin points the location of the ip address(es) on a generated leaflet map.
  • Opens Google Earth on the specified coordinates (format: latitude longitude).
  • Generated maps are saved to the maps directory which is created on runtime if it does not exist.
  • Does not use external dependencies for the map, instead uses an already written html map template.

Installation

PyPI

IPMap can be installed from PyPI by running the folloing command in terminal/command prompt

pip install ipmap

GitHub

Or if you prefer to install it from source, you can run the following command

pip install git+https://github.com/rly0nheart/ipmap.git

Build from source

# install poetry
pip install poetry

# clone the project
git clone https://github.com/rly0nheart/ipmap

# move to the ipmap directory
cd ipmap

# build the wheel file
poetry build

# install the built wheel (Linux)
pip install dist/*.whl

# install built wheel (Windows)
pip install .\dist\generated-wheel-file-name.whl

Usage

To see the usage, you can simply run

ipmap --help

The output should look like the following

usage: 
    Geolocate IP Address(es) (with an interactive map)
    --------------------------------------------------
    ipmap map --ip <ip/file_containing_ip_addresses>

    Open Google Earth on the given coordinates
    --------------------------------------------
    ipmap earth --coordinates <latitude> <longitude>

    Lookup IP Address(es) (same as map but without an interactive map)
    ------------------------------------------------------------------
    ipmap lookup --ip <ip/file_containing_ip_addresses>

modes:
    map - creates an interactive map and pin points the locations of the specified ip address(es) on it.
    earth - opens google earth on the specified coordinates
    lookup - looks up the specified ip address(es)' information.
    

IPMap (IP Mapper) — by Richard Mwewa (https://about.me/rly0nheart)

positional arguments:
  {earth,lookup,map}    init mode

options:
  -h, --help            show this help message and exit
  -i IP, --ip IP        an ip address or a file containing ip addresses
  -o OUTPUT, --output OUTPUT
                        map output name
  -c COORDINATES COORDINATES, --coordinates COORDINATES COORDINATES
                        space separated latitude and longitude
  -v, --version         show program's version number and exit

A cross-platform easy-to-use ip geolocation & mapping tool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipmap-1.0.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

ipmap-1.0.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ipmap-1.0.1.tar.gz.

File metadata

  • Download URL: ipmap-1.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ipmap-1.0.1.tar.gz
Algorithm Hash digest
SHA256 40e9f2754cbedf869bb957f1200e52f3a0c4e1cbadd43e719542aa97f5e5bcbb
MD5 34f57c2fa67b01b140599c8f58c9cf21
BLAKE2b-256 63c89f86f524714b487ba786f9b4de1937d6017841f3faf0ed922e8e4fda2cbb

See more details on using hashes here.

File details

Details for the file ipmap-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ipmap-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for ipmap-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a87258f0b8d2f6a3dd6b7e43aa0d665f2633bf24536fd2ad00230eb14059332d
MD5 27bba5bcafa517dfdb4b82abe889f416
BLAKE2b-256 e3efe47da7b0b4fb7e155122a74250e63dbc314368a48e113a8b7a31571afcb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page