Skip to content

Instantly share code, notes, and snippets.

@brabect1
Created June 22, 2024 10:12
Show Gist options
  • Save brabect1/60c04f689bc33a20c5fa8bb9032ea4df to your computer and use it in GitHub Desktop.
Save brabect1/60c04f689bc33a20c5fa8bb9032ea4df to your computer and use it in GitHub Desktop.
#python #uml #diagrams

Python Prductivity Tips

UML Class Diagrams

Pyreverse (part of Pylint):

  • natively supports .dot (GraphViz), UMLet and PlantUML outputs

  • useful options

    • -k: show only class names
    • -f: what class attributes to show
    • -c: generate diagram for a specific class only
    pyreverse -o dot -k -c docutils.nodes.paragraph docutils
    pyreverse -o dot docutils docutils.nodes
    
    # follow with GraphViz conversion
    dot -Tpdf docutils.nodes.paragraph.dot -o docutils.nodes.paragraph.pdf
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment