跳转到主要内容

绘制HasProperties类网络的图表

项目描述

https://img.shields.io/pypi/v/properties-inheritance-graph.svg https://travis-ci.org/seequent/properties-inheritance-graph.svg?branch=master https://codecov.io/gh/seequent/properties-inheritance-graph/branch/master/graph/badge.svg?token=yyj42i2C5k

此库的目的是快速轻松地创建UML图表,显示HasProperties类层次结构的继承结构。有关HasProperties类的更多信息,请参阅properties

安装方法

pip install properties_inheritance_graph

然后在Python中

from properties_inheritance_graph import make_graph
import omf  # or any other library built on properties

graph, registry = make_graph(
    registry=omf.PointSetElement._REGISTRY,
    expand_props=True,
    only_new_props=True,
    abstract_regex='^.*Model$',
)

在上面的例子中,使用了基于属性的OMF库进行演示。

要将这些图表渲染到文件或Jupyter笔记本中,您可以使用nxpd。还需要安装Graphviz

import nxpd
nxpd.draw(graph, filename='inheritance_graph.png')
https://raw.githubusercontent.com/seequent/properties-inheritance-graph/master/docs/inheritance_graph.png

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

properties-inheritance-graph-1.0.0.tar.gz (4.6 kB 查看哈希值)

上传时间: 源代码

构建分发

properties_inheritance_graph-1.0.0-py3-none-any.whl (5.1 kB 查看散列值)

上传时间 Python 3

由以下支持

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误记录StatusPageStatusPage状态页面