Skip to main content

Make graphs of HasProperties class networks

Project description

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

The purpose of this library is to quickly and easily create UML graphs that show inheritance structure of HasProperties class hierarchies. For more information on HasProperties classes, see properties.

To install

pip install properties_inheritance_graph

then in 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$',
)

In the above example, the properties-based OMF library is used for demonstration.

To render these graphs to file or in a Jupyter notebook, you may use nxpd. Graphviz must also be installed.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for properties-inheritance-graph, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size properties_inheritance_graph-1.0.0-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size properties-inheritance-graph-1.0.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page