manusimidt / py-xbrl

Python-based parser for parsing XBRL and iXBRL files
https://py-xbrl.readthedocs.io/en/latest/
GNU General Public License v3.0
100 stars 37 forks source link

How to generate a class relationship diagram #12

Closed xareelee closed 3 years ago

xareelee commented 3 years ago

Actually, it's not a bug report.

I just wonder what tool do you use to generate this image:

manusimidt commented 3 years ago

@xareelee I used draw.io / diagrams.net.

Can only recommend it :) They also have a desktop application. But their online version is also very stable and fast.

xareelee commented 3 years ago

Thanks for reply.

Is it generated by analyzing the code automatically, or by drawing this pic manually?

manusimidt commented 3 years ago

@xareelee No, unfortunately you have to draw it manually.

But i also think generating a diagram from python code is really hard, since python has weak types. Hence the diagram tool can not know for sure which type a member of a class has.

If you find a tool that works let me know 😆