I need to draw an UML component diagram for my code / a scientific paper. My Python project consists of a few different files (modules) and also some classes. How do you illustrate this in a UML component diagram? Do i have to use different connectors depending on the "types" of the "components"?
Let's say there are the following 'components':
1 . interacts with 2. and 3.
Basically a Python class corresponds to a UML class. A Python module can just be seen as UML component containg a set of classes. You are free to show the contained classes and/or to show interfaces with the component. Probably for Python the latter is less appropriate. You can use dependency from a class to show that it needs a module. Here you can especially utilitze «use» relations.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With