Skip to content

suchak1/ip_plot

Repository files navigation

ip_plot

Build Status Linux Python 3.7 License: MIT version

ip_plot is a project that simplifies plotting a list of ip addresses to a world map by mapping the addresses to latitude / longitude coordinates.

Getting Started

Prerequisites

Obtain a free api key from ipstack. This will enable the mapping of an ip address to a geographic coordinate (latitude / longitude). Paste your api key in the keys dict in creds.py.

Installation

Linux

To install the necessary packages, simply run:

./setup.sh

Note: This setup file installs miniconda, a minified version of the Anaconda distribution of Python3. Also, this setup has only been tested on Ubuntu 16.04.6 LTS (check the build status).

Deployment

To produce a world map with locations of associated ip addresses marked, run:

python3 plot.py || python plot.py

Right now, plot.py uses random subsets of mock data from mock_data.txt and outputs map.png.

Result

Map

Files

plot.py - main driver for ip_plot

map.png - example map

mock_data.txt - 1000 random ip addresses

.travis.yml - build pipeline

environment.yml - conda build environment

License

This project is licensed under the MIT License - see the LICENSE.md file for details.


Made with Python

About

Plot a list of ip addresses directly onto a world map.

Resources

License

Stars

Watchers

Forks

Packages

No packages published