pyreverse的使用

  -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 <ass_level>, --show-associated=<ass_level>
                        show <ass_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]

-c选项,常用,只追踪一个特定的类。默认会带-ASmy选项,如果不想让联系显示进来,只显示类的继承关系时,可以另外使用-s0选项指定(但有时候不会起作用),注意这里的类名要给相对路径(这个字是linux下搜狗输入法的问题)下的全名
-p选项,给输出文件添加一个标签
-my或者-mn,开关类的全名,建议在大项目的时候打开,方便看清楚不同文件类间的组织关系
-b,输出_开头的属性和方法
-k,只显示类名,不显示方法
可以输出dot文件然后自己修改

总之pyreverse是个很好用的工具
一个最新的发现是pycharm 专业版可以自动生成类图,很方便

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值