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.

Source Distribution

properties-inheritance-graph-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file properties-inheritance-graph-1.0.0.tar.gz.

File metadata

  • Download URL: properties-inheritance-graph-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for properties-inheritance-graph-1.0.0.tar.gz
Algorithm Hash digest
SHA256 82ee9126c293c25476d484505876f056568d4345dce2521031042779293939d9
MD5 534606ebf0537a23d8b1ea0bf0d1926e
BLAKE2b-256 f9d9a9d977a4117a51485df0203b7d22be7d446259d0fdb6ece8c31f4eefb2af

See more details on using hashes here.

File details

Details for the file properties_inheritance_graph-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: properties_inheritance_graph-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for properties_inheritance_graph-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27c0f483a88b02ef8f5d794ce8ae4c6fabd65b3a493a03c0f84360a7c3088316
MD5 c4f494f6eb9162f8bda0c8a3c2b2c02e
BLAKE2b-256 1b6209198cf4888e1dd3f373d81624716dde5ed9292c27b58e0e827a9b840922

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page