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

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