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简体中文正體中文Lengua españolaDeutscheSvenska한국어Françaisहिन्दीPortuguêsItalianРусскийIndonesianفارسیعربيTürkçePolskie

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 location of the specified ip address(es).
  • Generated maps are saved to the maps directory in the user's home 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 following 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 <ip> --map

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

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

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

positional arguments:
  ip                    target ip address

options:
  -h, --help            show this help message and exit
  -e, --earth           Open Google Earth on the location of a given ip
  -l, --lookup          Lookup an ip (like --map, but without an interactive
                        map)
  -m, --map             Geolocate an ip (with an interactive map)
  -o OUTPUT, --output OUTPUT
                        map output name (default ipmap)
  -v, --version         show program's version number and exit

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

You can also pass a file containing ip addresses to --ip, IPMap will process the file accordingly and read each ip line by line.

Translations

If you'd like to translate the project's README in any language, or if you can improve the (Google translated) translations of the already existing README's, feel free to open a pull request with your translations. I'd be more than happy to include them in the project :).

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.2.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

ipmap-1.2.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ipmap-1.2.0.tar.gz
Algorithm Hash digest
SHA256 46bb16020b672b862234b1b0002c73cd2238a6b7cff169f6bd575100814f16ec
MD5 bddd02416bbe512c87dfd1f911a03430
BLAKE2b-256 98e83da87c334cce51e92afee371787c89d54c8a2f91c16668e6d8aa4be2805d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipmap-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0941fc0a0f490b52189f938500b7557d19a2018e7a06fa5aa90cb96160534ac
MD5 26f965d723cf7e7d8b9ab6abacbdf659
BLAKE2b-256 e5d4cb327111bd4f77e17d9e71ae84465aeddd7c30b0cf741bdf175f44cdc0e6

See more details on using hashes here.

Supported by

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