How can I draw charts from a database in python

How can I visually model elements in a database using python?

I have a Django project that is currently simulating my home network in admin views. He currently describes which devices exist and what they are associated with. For example:

Devices:
    Computer1
    Computer2
    Laptop1
    Mobile1
    Router1
    ROuter2

ConnectionTypes:
    Wireless24ghz
    Wireless5ghz
    cat5
    cat5e
    cat6

Connections:
    host1:
        src:Computer1
        dst:Router1
        con_type:cat5e
    trunk1:
        src:Router1
        dst:Router2
        con_type:cat6
    host2:
        src:Mobile1
        dst:Router1
        con_type:Wireless24ghz

The database is a little more complicated than that, but I keep it simple for now, as it is not so important.

I am wondering how can I graphically simulate my network using python code to view database tables? By the graphical model, I mean something similar to a Visio diagram in which I can see it (and not necessarily, but a BIG bonus) to interact with it, either using a web page or application.

python, ​​? , JavaScript , , .

, , , .

+4
4
+3

Django - , ImageDraw module, Pillow ( PIL) -, .

, , , , matplotlib

+1

nwdiag blockdiag .

http://blockdiag.com/en/nwdiag/

, blockdiag , .

0

Source: https://habr.com/ru/post/1612970/


All Articles