is there any library or template that can help me draw servers rack , based on the server's position in this rack?
example :
- server_name - start U - End U
- servers1 - 15 - 17
- server2 - 20 - 25
- firewall - 2 - 4
- NAS - 10 - 15
thank you for your help
is there any library or template that can help me draw servers rack , based on the server's position in this rack?
example :
thank you for your help
I don't know what you need - image PNG/JPG, image SVG, text table, HTML table.
But first it would need to read data and convert to list like this
With this list it could be simpler to calculate positions for text on image, or generate text table, or generate HTML.
You could use it with
tabulateto generate text tablewhich you can display in HTML in
<pre></pre>or<code></code>Minimal working code for text table
EDIT:
If you put
rowsinpandas.DataFramethen you can use.to_html()to generate it as<table></table>But you can use
rowsalso to generate<table>manuallyResult:
EDIT:
If you use
flaskthen you can sendrowsto templateand run loop directly in template