Skip to main content
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

Release files for properties-inheritance-graph 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for properties-inheritance-graph 1.0.0
File Size Uploaded
properties-inheritance-graph-1.0.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for properties-inheritance-graph 1.0.0
File Interpreter ABI Platform
properties_inheritance_graph-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / properties-inheritance-graph-1.0.0.tar.gz

Download URL properties-inheritance-graph-1.0.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
82ee9126c293c25476d484505876f056568d4345dce2521031042779293939d9
BLAKE2b-256 checksum
How to use checksums
f9d9a9d977a4117a51485df0203b7d22be7d446259d0fdb6ece8c31f4eefb2af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

Release files / properties_inheritance_graph-1.0.0-py3-none-any.whl

Download URL properties_inheritance_graph-1.0.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27c0f483a88b02ef8f5d794ce8ae4c6fabd65b3a493a03c0f84360a7c3088316
BLAKE2b-256 checksum
How to use checksums
1b6209198cf4888e1dd3f373d81624716dde5ed9292c27b58e0e827a9b840922
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page