Questions tagged [pyreverse]
32 questions
2
votes
0 answers
Is there a way to make Pyreverse display arrows for lists?
I noticed that when a class has a single instance of another class that the arrow between the two classes is being displayed without any problems. But Pyreverse doesn't display arrows between classes if the instance variable is a list. Is there any…

Dennis Davari
- 61
- 5
2
votes
1 answer
pyreverse not connecting classes in UML class diagram
I'm trying to create a UML diagram of a python project that shows inheritance relationships between classes using pyreverse.
Here's a small example to reproduce
Foo.py:
class Foo():
def print_foo(self):
print("hi")
Bar.py:
from Foo…

karpfen
- 489
- 8
- 19
2
votes
1 answer
Pyreverse doesn't detect that the parent class is a Composite... why?
Suppose I have the following directory structure:
Folder PATH listing
Volume serial number is 986C-80E1
C:.
test.py
__init__.py
No subfolders exist
__init__.py is blank. In test.py. I have the following code:
class Employee:
def…

user32882
- 5,094
- 5
- 43
- 82
2
votes
1 answer
How can I tell pyreverse to include classes within modules within packages?
I have this folder structure:
.
└── src
├── a
│ ├── __init__.py
│ ├── a.py
│ └── b.py
└── main.py
Contents of a/a.py:
class A:
def __init__(self):
self.name = 'a'
Contents of a/b.py
from a.a import A
class…

CowKeyMan
- 133
- 1
- 8
2
votes
1 answer
How to make pyreverse accept and priotize type hints?
I want to automatically generate a UML class diagram based on my Python(3) source code. The challenge in this case is that not all information is available at the time of instantiation of the object. Some attributes have to be assigned later,…

achnichtsowichtig
- 179
- 2
- 10
2
votes
1 answer
Pyreverse: how to add return types for methods and properties when generating uml reports?
I am successfully generating UML reports from Python modules using pyreverse and graphviz. I can see that pylint is smart enough to say for some properties what is the output data type, but not for all and none for the methods.
The source code:
def…

Alex Tereshenkov
- 3,340
- 8
- 36
- 61
2
votes
2 answers
draw class diagram for django application
I am just half way writing my django application and my employer wants me to fetch him class diagram of the whole code written until now. As I'm really short in timeI started thinking of a tool that will do it for me in a shorter time. I have tried…

AmiNadimi
- 5,129
- 3
- 39
- 55
1
vote
0 answers
Pyreverse dont take relationship when I type data like List[class]
Hello I have the following clas
class Page(BaseModel):
index_page:int
content:str
class Book(BaseModel):
name:str
pages: List[Page] = []
The problem is that when I execute pyreverse it isn't set the relationship between Book and…

Tlaloc-ES
- 4,825
- 7
- 38
- 84
1
vote
0 answers
Using Pycharm I can't able to generate UMLDiagram due to an error down below
parsing C:\Users\USER\Documents_init_.py...
Failed to import module init with error:
No module named init.

Thewodros Fikre
- 11
- 2
1
vote
1 answer
How to make pyreverse work when system can see pylint
I have installed pylint in my system. I use python 3.6. When I call pylint from python command, I can see pylint. But when I try to call pyreverse, because I want to use it to create dot files, the system does not recognize the pyreverse command.…

emekadavid
- 45
- 6
1
vote
0 answers
How to generate graphs using pylint pyreverse in Spyder IDE
I am using pylint in spyder notebook to perform static code analysis. I came to know that pyreverse is included into pylint to generate graphs. Can someone help me to understand how to invoke pyreserve and use it to generate code analysis graphs.

LOrD_ARaGOrN
- 3,884
- 3
- 27
- 49
1
vote
1 answer
Pyreverse fails to generate any output files (png, jpg) other than .dot files
I am attempting to use pylint's pyreverse to generate uml diagrams of some .
When I run pyreverse from the command shell
pyreverse
It executes just fine and returns a *.dot file as it should. If I attempt to use output options such as…

msl
- 21
- 1
- 3
0
votes
1 answer
Does pyreverse work when some of the modules are provided in Cyton format ?(*.so files)
I am tryint to learn a module that I would like to have the UML diagrams for it
Some of the classes are in binary format (.so)
Will pyreverse work in this case ?

MiniMe
- 1,057
- 4
- 22
- 47
0
votes
1 answer
pyreverse classes.png only shows imports, not attributes
Hey I was trying to create a class diagram from pyreverse but it doesn't really show what I need.
I typed pyreverse -o png -p folder .
This is what I expected
This is what my packages.png looks like:
This is what the entire classes.png looks…

user2875404
- 3,048
- 3
- 25
- 47
0
votes
0 answers
getting pyreverse not to produce blank output files (eg PDF or png is blank)
Whenever I follow the pyreverse guides and attempt
To generate a UML diagram for my filename.py, I get a blank png file or blank PDF file, depending on which output file type I pick. Has someone experienced this? Can you help me sort this out?

Arvn
- 1