Questions tagged [pyreverse]
32 questions
36
votes
3 answers
Graph is too large for cairo-renderer bitmaps
Im trying to use pyreverse to generate UML images for a project source code. When I run the pyreverse command and specify to generate png images, it runs and then after a while, it shows:
dot: graph is too large for cairo-renderer bitmaps. Scaling…

omega
- 40,311
- 81
- 251
- 474
31
votes
4 answers
Pyreverse complaining even after having Graphviz
I want to be able to save the output in PNG and have installed Graphviz. Still it complains saying Graphviz is not installed:
The output format 'output.png' is currently not available. Please
install 'Graphviz' to have other output formats than…

KanwarG
- 1,024
- 2
- 11
- 18
9
votes
1 answer
How to use pyreverse on Windows
I would like to create diagram class using pyreverse. I download it, and when I use this command:
pyreverse.bat -c PyreverseCommand -a1 -s1 -f ALL -o png test.py
I get an error "The name 'dot' is not recognized....". What is "dot", how can I…

Kamilos
- 167
- 1
- 2
- 10
8
votes
6 answers
Positioning of classes in UML diagram
I'm creating a tool for displaying Python project as an UML diagram (+ displaying some code error detection using GUI).
I scan some project using Pyreverse and I have all data I need for drawing UML diagram.
The problem is positioning of the class…

Jan Vorcak
- 19,261
- 14
- 54
- 90
7
votes
3 answers
How to get Class diagram from Python source code?
I try to get a class diagram from Python source code in Client folder with pyreverse but it requires __init__.py
(venv) C:\Users\User\Desktop\project> pyreverse Client
parsing Client\__init__.py...
Failed to import module Client\__init__.py with…

huy
- 1,648
- 3
- 14
- 40
5
votes
1 answer
Pyreverse UML with complex type hints (Union, List, ...)
I am trying to generate a UML diagram for a class that uses Unions and List typehints.
An example of it would be
from dataclasses import dataclass
from typing import Union
@dataclass
class ClassA:
name: str
@dataclass
class ClassB:
…

Drooppi
- 51
- 1
- 3
5
votes
1 answer
pyreverse not showing composition relationships in the UMLs when using absolute imports
I am having trouble generating UMLs with pyreverse, in particular with composition relationships when classes are not part of the same module, and when using absolute imports.
To illustrate the problem, I have the following two modules a.py and b.py…

GsB
- 75
- 4
5
votes
1 answer
How can I make dot (graphviz) layout unconnected nodes vertically instead of horizontally?
I use pyreverse to create class diagrams from python code and this results in graphs like this:
as can be seen, some classes are not related. I would like to have the subgraphs laid out below each other so that I can include the image in a…

oarfish
- 4,116
- 4
- 37
- 66
5
votes
0 answers
Hiding member variables in the class diagram generated by pyreverse
I have used pyreverse to create class diagrams from python codes.
By default, it shows both the member variables and methods. But usually, I only want to see methods.
If -k option is used, then it will disable both the member variables and methods,…

chanwcom
- 4,420
- 8
- 37
- 49
5
votes
3 answers
pyreverse: How to set output directory for generated diagrams
Documentation on pyreverse is sparse and half of the pages that google presented me, redirect to some exotic pages that will require some explaining should your boss find them in your browser history.
Due to the way how pyreverse seems to work, you…

CoffeeBasedLifeform
- 2,296
- 12
- 27
5
votes
1 answer
pyreverse doesn't draw relationships/arrows/connections
Hey I kinda got Pyreverse to work, it's now showing my classes but it doesn't draw connections between the classes.
In one class I got
class webserver:
print('stuff')
getcaller1 = getcaller.GetCaller()
device_dict =…

user2875404
- 3,048
- 3
- 25
- 47
4
votes
1 answer
pyreverse uml diagram with customized color
I'm trying to generate a UML diagram with pyreverse but I want all the nodes of the diagram to be coloured blue. There is currently an option called --colorized (see here) that puts different colours to different nodes, but I don't know how to make…

Luis
- 41
- 3
3
votes
1 answer
Duplicate class members in pyreverse UML class diagram due to type-hinting
I'm using pyreverse to create UML class diagrams for my code base.
On classes which are type-hinted using class variables (recommended according to (https://stackoverflow.com/a/59784221/14901431) the members appear twice since they are initialized…

ira7bar
- 31
- 2
3
votes
1 answer
How to get a Class and Definitions diagram from Python code?
I have a large multi-file Python application I'd like to document graphically. But first, I made a small "dummy" app to test out different UML packages. (Note: I do have graphviz installed and in the path).
Here's my "dummy" code:
class User:
def…

ScotterMonkey
- 1,007
- 12
- 25
3
votes
1 answer
Can Python pyreverse generate UML diagram for functions?
pyreverse is a great tool to generate UML diagram from Python codes. However, I found it cannot identify all the classes that has been used within a function. I take the following example to illustrate my point:
class ClassA(object):
def…

feelfree
- 11,175
- 20
- 96
- 167