Python Forum
How to get pyreverse to work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get pyreverse to work
#4
If python is in environment variables path,then eg pyreverse --help shall work from command line(from any place).
It get installed in Scripts(pyreverse.exe) folder root python.
Quick test.
Output:
E:\div_code\class λ pyreverse --help Usage: pyreverse [options] <packages> create UML diagrams for classes and modules in <packages> Options: -h, --help show this help message and exit -f <mode>, --filter-mode=<mode> filter attributes and functions according to <mode>. Correct modes are : 'PUB_ONLY' filter all non public attributes [DEFAULT], equivalent to PRIVATE+SPECIAL_A 'ALL' no filter 'SPECIAL' filter Python special functions except constructor 'OTHER' filter protected and private attributes [current: PUB_ONLY] -c <class>, --class=<class> create a class diagram with all classes related to <class>; this uses by default the options -ASmy [current: none] -a <ancestor>, --show-ancestors=<ancestor> show <ancestor> generations of ancestor classes not in <projects> -A, --all-ancestors show all ancestors off all classes in <projects> -s <association_level>, --show-associated=<association_level> show <association_level> levels of associated classes not in <projects> -S, --all-associated show recursively all associated off all associated classes -b, --show-builtin include builtin objects in representation of classes -m [yn], --module-names=[yn] include module name in representation of classes -k, --only-classnames don't show attributes and methods in the class boxes; this disables -f values -o <format>, --output=<format> create a *.<format> output file if format available. [current: dot] --ignore=<file[,file...]> Add files or directories to the blacklist. They should be base names, not paths. [current: CVS] -p <project name>, --project=<project name> set the project name. [current: none]
Usage:
# Install graphviz
E:\div_code\class
λ choco install graphviz
Chocolatey v0.10.15
Installing the following packages:
graphviz
By installing you accept licenses for the packages.
Progress: Downloading Graphviz 2.38.0.20190211... 100%
.....
Added C:\ProgramData\chocolatey\bin\dot.exe shim pointed to 'c:\program files (x86)\graphviz2.38\bin\dot.exe'.
The install of graphviz was successful.

# Test pyreverse
E:\div_code\class
λ pyreverse dog_pet.py -a1 -s1
parsing dog_pet.py...

# Use .dot file generated bye pyreverse
E:\div_code\class
λ dot -Tpdf classes.dot -o output.pdf
   
Reply


Messages In This Thread
How to get pyreverse to work - by Emekadavid - Jun-02-2020, 03:42 PM
RE: How to get pyreverse to work - by snippsat - Jun-02-2020, 04:44 PM
RE: How to get pyreverse to work - by Emekadavid - Jun-03-2020, 02:22 AM
RE: How to get pyreverse to work - by snippsat - Jun-03-2020, 06:20 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020