Skip to content

To display in a nice HTML/CSS format a content of Network Map json endpoint.

Notifications You must be signed in to change notification settings

przemolb/networkmap-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

90c6b07 · Oct 1, 2020

History

15 Commits
Oct 1, 2020
Feb 18, 2019
Mar 27, 2019
Mar 27, 2019
Feb 18, 2019
Aug 1, 2019
Apr 29, 2019
Apr 21, 2019
Apr 20, 2019
Apr 21, 2019

Repository files navigation

Display Network Map's Node information using Python/Flask

A simple python script to display Network Map's nodes information in a web browser.

What does it do

It displays the content of JSON endpoint from Network Map: An example

Prerequisites

  • python 3

    plus python 3 packages:

    • flask
    • flask_table
    • configparser
    • json
    • os
    • requests

How to use

  • git clone https://github.com/przemolb/networkmap-json
  • cd networkmap-json
  • add nmapjson.ini file with definitions of endpoints in the following format:
[short_name_1]
url=https://URL1/network-map/json/node-infos
description=Full description of environment_1

[short_name_2]
url=https://URL2/network-map/json/node-infos
description=Full description of environment_2

  • run ./run.it
  • click one of the available environments at the top of web page

Notes

  • the nmapjson.ini file is being re-read every time you refresh a web page - no need to restart this application after adding new environments
  • it is supposed to be run locally on your workstation/laptop - Flask builtin web server is not recommended to run in production

About

To display in a nice HTML/CSS format a content of Network Map json endpoint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published